forked from Kurento/kms-markerdetector
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Change-Id: I168a5214da9301fb9202fa789d1c2fa48f249892
- Loading branch information
1 parent
5b387bb
commit 24fd928
Showing
16 changed files
with
166 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
build/ | ||
debian/ar_markerdetector |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,63 @@ | ||
cmake_minimum_required(VERSION 2.8) | ||
|
||
project ("ar-markerdetector") | ||
|
||
message ("If KurentoHelpers is not found, then it is necessary to install | ||
kms-cmake-utils package from the kurento repository") | ||
|
||
list(APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/CMake") | ||
find_package(KurentoHelpers REQUIRED) | ||
|
||
include (KurentoGitHelpers) | ||
message ("If CodeGenerator is not found, then it is necessary to install | ||
kms-core package from the kurento repository") | ||
include (CodeGenerator) | ||
|
||
get_values_from_model(PREFIX VALUE MODELS ${CMAKE_SOURCE_DIR}/src/server/interface KEYS version) | ||
|
||
get_git_version (PROJECT_VERSION ${VALUE_VERSION}) | ||
|
||
string(REPLACE "." ";" VERSION_LIST ${PROJECT_VERSION}) | ||
list(GET VERSION_LIST 0 PROJECT_VERSION_MAJOR) | ||
list (LENGTH VERSION_LIST _len) | ||
if (${_len} GREATER 1) | ||
list(GET VERSION_LIST 1 PROJECT_VERSION_MINOR) | ||
endif () | ||
if (${_len} GREATER 2) | ||
list(GET VERSION_LIST 2 PROJECT_VERSION_PATCH) | ||
endif () | ||
|
||
find_package(PkgConfig) | ||
|
||
set (GST_REQUIRED 1.3.3) | ||
set (GLIB_REQUIRED 2.38) | ||
set (OPENCV_REQUIRED 2.0.0) | ||
|
||
#gst-plugins dependencies | ||
pkg_check_modules(GSTREAMER REQUIRED gstreamer-1.0>=${GST_REQUIRED}) | ||
pkg_check_modules(GSTREAMER_BASE REQUIRED gstreamer-base-1.0>=${GST_REQUIRED}) | ||
pkg_check_modules(GSTREAMER_VIDEO REQUIRED gstreamer-video-1.0>=${GST_REQUIRED}) | ||
pkg_check_modules(GSTREAMER_CHECK REQUIRED gstreamer-check-1.0>=${GST_REQUIRED}) | ||
pkg_check_modules(KMSCORE REQUIRED kmscore) | ||
pkg_check_modules(OPENCV REQUIRED opencv>=${OPENCV_REQUIRED}) | ||
|
||
set (VERSION ${PROJECT_VERSION}) | ||
set (PACKAGE ${PROJECT_NAME}) | ||
set (GETTEXT_PACKAGE "ar-markerdetector") | ||
|
||
include(GNUInstallDirs) | ||
|
||
set (CMAKE_INSTALL_GST_PLUGINS_DIR ${CMAKE_INSTALL_LIBDIR}/gstreamer-1.0) | ||
set (KURENTO_MODULES_SO_DIR ${CMAKE_INSTALL_PREFIX}/${CMAKE_INSTALL_LIBDIR}/${KURENTO_MODULES_DIR_INSTALL_PREFIX}) | ||
|
||
configure_file(${CMAKE_CURRENT_SOURCE_DIR}/config.h.cmake ${CMAKE_CURRENT_BINARY_DIR}/config.h) | ||
|
||
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -g -DHAVE_CONFIG_H -Werror -Wall") | ||
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -g -DHAVE_CONFIG_H -Wall -Werror -std=c++11") | ||
|
||
include_directories(${CMAKE_CURRENT_BINARY_DIR}) | ||
include_directories(${CMAKE_CURRENT_SOURCE_DIR}) | ||
|
||
message(STATUS "Compiling : ${PROJECT_NAME}-${PROJECT_VERSION}") | ||
|
||
add_subdirectory (src) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
#ifndef __AR_MARKERDETECTOR_CONFIG_H__ | ||
#define __AR_MARKERDETECTOR_CONFIG_H__ | ||
|
||
/* Version */ | ||
#cmakedefine VERSION "@VERSION@" | ||
|
||
/* Package name */ | ||
#cmakedefine PACKAGE "@PACKAGE@" | ||
|
||
/* The gettext domain name */ | ||
#cmakedefine GETTEXT_PACKAGE "@GETTEXT_PACKAGE@" | ||
|
||
/* Library installation directory */ | ||
#cmakedefine KURENTO_MODULES_SO_DIR "@KURENTO_MODULES_SO_DIR@" | ||
|
||
#endif /* __AR_MARKERDETECTOR_CONFIG_H__ */ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
usr/include/kurento/modules/*/*.hpp | ||
usr/lib/*/*.so | ||
usr/lib/*/pkgconfig/*.pc | ||
usr/share/kurento/modules/*.kmd.json |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
usr/lib/*/lib*.so.* | ||
usr/lib/*/kurento/*/*.so |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
ar-markerdetector (0.0.1~rc1) testing; urgency=medium | ||
|
||
* Initial release. | ||
|
||
-- Maintainer name <maintainerMail@mail> Wed, 08 Oct 2014 12:16:34 +0300 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
9 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
Source: ar-markerdetector | ||
Section: utils | ||
Priority: optional | ||
Maintainer: Maintainer Name | ||
Build-Depends: debhelper (>= 8.0.0), | ||
cmake, | ||
pkg-config, | ||
kms-core-dev, | ||
kms-elements-dev, | ||
kms-filters-dev, | ||
libopencv-dev | ||
Standards-Version: 3.9.4 | ||
|
||
Package: ar-markerdetector | ||
Architecture: any | ||
Depends: ${shlibs:Depends}, ${misc:Depends}, | ||
Description: package description | ||
|
||
Package: ar-markerdetector-dev | ||
Architecture: any | ||
Depends: ar-markerdetector (= ${binary:Version}), | ||
kms-core-dev, | ||
kms-elements-dev, | ||
kms-filters-dev, | ||
libopencv-dev | ||
Description: dev package description |
Empty file.
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
#!/usr/bin/make -f | ||
# -*- makefile -*- | ||
|
||
# Uncomment this to turn on verbose mode. | ||
#export DH_VERBOSE=1 | ||
|
||
%: | ||
dh $@ | ||
|
||
override_dh_auto_configure: | ||
dh_auto_configure |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
3.0 (native) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
add_subdirectory(server) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
cmake_minimum_required (VERSION 2.8) | ||
|
||
include (CodeGenerator) | ||
|
||
generate_code ( | ||
MODELS ${CMAKE_CURRENT_SOURCE_DIR}/interface | ||
SERVER_STUB_DESTINATION ${CMAKE_CURRENT_SOURCE_DIR}/implementation/objects | ||
) |
20 changes: 20 additions & 0 deletions
20
src/server/interface/armarkerdetector.ArMarkerdetector.kmd.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
{ | ||
"remoteClasses": [ | ||
{ | ||
"name": "ArMarkerdetector", | ||
"extends": "OpenCVFilter", | ||
"doc": "ArMarkerdetector interface. Documentation about the module", | ||
"constructor": { | ||
"doc": "Create an element", | ||
"params": [ | ||
{ | ||
"name": "mediaPipeline", | ||
"doc": "the parent :rom:cls:`MediaPipeline`", | ||
"type": "MediaPipeline", | ||
"final": true | ||
} | ||
] | ||
} | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
{ | ||
"name": "armarkerdetector", | ||
"version": "0.0.1-dev", | ||
"kurentoVersion": "^5.0.0" | ||
} |