Skip to content

Commit db2cf2b

Browse files
mateuszborynstefankiesz
authored andcommitted
kvssink .so with static linkage to cproducer
1 parent 7acf272 commit db2cf2b

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

CMakeLists.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ include(GNUInstallDirs)
1212
option(BUILD_GSTREAMER_PLUGIN "Build kvssink GStreamer plugin" OFF)
1313
option(BUILD_JNI "Build C++ wrapper for JNI to expose the functionality to Java/Android" OFF)
1414
option(BUILD_STATIC "Build with static linkage" OFF)
15+
option(BUILD_GSTREAMER_PLUGIN_STATIC "If building GStreamer plugin, build it as a static library" ${BUILD_STATIC})
1516
option(ADD_MUCLIBC "Add -muclibc c flag" OFF)
1617
option(BUILD_DEPENDENCIES "Whether or not to build depending libraries from source" ON)
1718
option(BUILD_OPENSSL_PLATFORM "If buildng OpenSSL what is the target platform" OFF)
@@ -214,7 +215,7 @@ if(BUILD_GSTREAMER_PLUGIN)
214215
include_directories(${GST_APP_INCLUDE_DIRS})
215216
link_directories(${GST_APP_LIBRARY_DIRS})
216217

217-
if(BUILD_STATIC)
218+
if(BUILD_GSTREAMER_PLUGIN_STATIC)
218219
add_library(gstkvssink STATIC ${GST_PLUGIN_SOURCE_FILES})
219220
else()
220221
add_library(gstkvssink MODULE ${GST_PLUGIN_SOURCE_FILES})

README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,9 @@ Please note that GStreamer is not cross-compiled as a part of the cross-compilat
8282
#### CMake Arguments
8383
You can pass the following options to `cmake ..`.
8484

85-
* `-DBUILD_GSTREAMER_PLUGIN` -- Build kvssink GStreamer plugin
85+
* `-DBUILD_GSTREAMER_PLUGIN` -- Build kvssink GStreamer plugin. Default is OFF.
86+
* `-DBUILD_STATIC` -- Build as static libraries. Default is OFF.
87+
* `-DBUILD_GSTREAMER_PLUGIN_STATIC` -- If building GStreamer plugin, build it as a static library. Default is BUILD_STATIC.
8688
* `-DBUILD_JNI` -- Build C++ wrapper for JNI to expose the functionality to Java/Android
8789
* `-DBUILD_DEPENDENCIES` -- Build depending libraries from source
8890
* `-DBUILD_TEST=TRUE` -- Build unit/integration tests, may be useful for confirm support for your device. `./tst/producerTest`

0 commit comments

Comments
 (0)