File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -12,7 +12,7 @@ include(GNUInstallDirs)
1212option (BUILD_GSTREAMER_PLUGIN "Build kvssink GStreamer plugin" OFF )
1313option (BUILD_JNI "Build C++ wrapper for JNI to expose the functionality to Java/Android" OFF )
1414option (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} )
15+ option (BUILD_FORCE_GSTREAMER_PLUGIN_SHARED "If building with static linkage , build the kvssink GStreamer plugin as a shared library" OFF )
1616option (ADD_MUCLIBC "Add -muclibc c flag" OFF )
1717option (BUILD_DEPENDENCIES "Whether or not to build depending libraries from source" ON )
1818option (BUILD_OPENSSL_PLATFORM "If buildng OpenSSL what is the target platform" OFF )
@@ -215,7 +215,7 @@ if(BUILD_GSTREAMER_PLUGIN)
215215 include_directories (${GST_APP_INCLUDE_DIRS} )
216216 link_directories (${GST_APP_LIBRARY_DIRS} )
217217
218- if (BUILD_GSTREAMER_PLUGIN_STATIC )
218+ if (BUILD_STATIC AND ( NOT BUILD_FORCE_GSTREAMER_PLUGIN_SHARED) )
219219 add_library (gstkvssink STATIC ${GST_PLUGIN_SOURCE_FILES} )
220220 else ()
221221 add_library (gstkvssink MODULE ${GST_PLUGIN_SOURCE_FILES} )
Original file line number Diff line number Diff line change @@ -84,7 +84,7 @@ You can pass the following options to `cmake ..`.
8484
8585* ` -DBUILD_GSTREAMER_PLUGIN ` -- Build kvssink GStreamer plugin. Default is OFF.
8686* ` -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 .
87+ * ` -BUILD_FORCE_GSTREAMER_PLUGIN_SHARED ` -- If building with static linkage , build the kvssink GStreamer plugin as a shared library. Default is OFF .
8888* ` -DBUILD_JNI ` -- Build C++ wrapper for JNI to expose the functionality to Java/Android
8989* ` -DBUILD_DEPENDENCIES ` -- Build depending libraries from source
9090* ` -DBUILD_TEST=TRUE ` -- Build unit/integration tests, may be useful for confirm support for your device. ` ./tst/producerTest `
You can’t perform that action at this time.
0 commit comments