pylonsrc: merge Basler Pylon plugin from gst-pylonsrc

Merged from https://github.com/zingmars/gst-pylonsrc

This includes some changes to include running gst-indent, and
modification to allow it to compile with Visual Studio 2012/VC11.
This commit is contained in:
Joshua M. Doe
2020-04-06 14:35:50 -04:00
parent 552fae8538
commit c0f68e83d3
6 changed files with 2951 additions and 0 deletions

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

@@ -0,0 +1,31 @@
set (SOURCES
gstpylonsrc.c
)
set (HEADERS
gstpylonsrc.h)
include_directories (AFTER
${GSTREAMER_INCLUDE_DIR}/..
${PYLON_INCLUDE_DIR}
)
set (libname libgstpylon)
add_library (${libname} MODULE
${SOURCES}
${HEADERS})
target_link_libraries (${libname}
${GLIB2_LIBRARIES}
${GOBJECT_LIBRARIES}
${GSTREAMER_LIBRARY}
${GSTREAMER_BASE_LIBRARY}
${GSTREAMER_VIDEO_LIBRARY}
${PYLON_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)