add aptinasrc, a source element for Aptina Imaging (ON) cameras

This commit is contained in:
Joshua M. Doe
2017-10-24 15:16:23 -04:00
parent 6a4f3fe058
commit 4f326fce02
6 changed files with 697 additions and 0 deletions

31
sys/aptina/CMakeLists.txt Normal file
View File

@@ -0,0 +1,31 @@
add_definitions(-DHAVE_ORC=TRUE)
set (SOURCES
gstaptinasrc.c)
set (HEADERS
gstaptinasrc.h)
include_directories (AFTER
${ORC_INCLUDE_DIR}
${APTINA_INCLUDE_DIR})
set (libname libgstaptina)
add_library (${libname} MODULE
${SOURCES}
${HEADERS})
target_link_libraries (${libname}
${ORC_LIBRARIES}
${GLIB2_LIBRARIES}
${GOBJECT_LIBRARIES}
${GSTREAMER_LIBRARY}
${GSTREAMER_BASE_LIBRARY}
${GSTREAMER_VIDEO_LIBRARY}
${APTINA_LIBRARIES})
set (pdbfile "${CMAKE_CURRENT_BINARY_DIR}/\${CMAKE_INSTALL_CONFIG_NAME}/${libname}.pdb")
install (FILES ${pdbfile} DESTINATION lib/gstreamer-1.0 COMPONENT pdb)
install(TARGETS ${libname}
LIBRARY DESTINATION lib/gstreamer-1.0)