Skip to content

Commit

Permalink
Initial commit
Browse files Browse the repository at this point in the history
Change-Id: I168a5214da9301fb9202fa789d1c2fa48f249892
  • Loading branch information
Petri Honkamaa authored and dfernandezlop committed Oct 31, 2014
1 parent 5b387bb commit 24fd928
Show file tree
Hide file tree
Showing 16 changed files with 166 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
build/
debian/ar_markerdetector
63 changes: 63 additions & 0 deletions CMakeLists.txt
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)
16 changes: 16 additions & 0 deletions config.h.cmake
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__ */
4 changes: 4 additions & 0 deletions debian/ar-markerdetector-dev.install
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
2 changes: 2 additions & 0 deletions debian/ar-markerdetector.install
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
usr/lib/*/lib*.so.*
usr/lib/*/kurento/*/*.so
6 changes: 6 additions & 0 deletions debian/changelog
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

1 change: 1 addition & 0 deletions debian/compat
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
9
26 changes: 26 additions & 0 deletions debian/control
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 added debian/copyright
Empty file.
Empty file added debian/docs
Empty file.
11 changes: 11 additions & 0 deletions debian/rules
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
1 change: 1 addition & 0 deletions debian/source/format
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
3.0 (native)
1 change: 1 addition & 0 deletions src/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
add_subdirectory(server)
8 changes: 8 additions & 0 deletions src/server/CMakeLists.txt
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 src/server/interface/armarkerdetector.ArMarkerdetector.kmd.json
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
}
]
}
}
]
}
5 changes: 5 additions & 0 deletions src/server/interface/armarkerdetector.kmd.json
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"
}

0 comments on commit 24fd928

Please sign in to comment.