diff --git a/lib/src/sv_internal.h b/lib/src/sv_internal.h index ba691d3b..f91dd703 100644 --- a/lib/src/sv_internal.h +++ b/lib/src/sv_internal.h @@ -50,7 +50,7 @@ #define DEFAULT_HASH_SIZE (256 / 8) #define SV_VERSION_BYTES 3 -#define SIGNED_VIDEO_VERSION "v2.2.5" +#define SIGNED_VIDEO_VERSION "v2.2.6" #define SV_VERSION_MAX_STRLEN 19 // Longest possible string including 'ONVIF' prefix #define DEFAULT_AUTHENTICITY_LEVEL SV_AUTHENTICITY_LEVEL_FRAME diff --git a/meson.build b/meson.build index cd47f492..70463a2d 100644 --- a/meson.build +++ b/meson.build @@ -1,5 +1,5 @@ project('signed-video-framework', 'c', - version : '2.2.5', + version : '2.2.6', meson_version : '>= 0.53.0', default_options : [ 'warning_level=2', 'werror=true', @@ -74,14 +74,24 @@ install_headers( signedvideoframework_deps = [ openssl_dep, plugin_deps, mediasigningframework_dep ] -signedvideoframework = shared_library( - 'signed-video-framework', - signedvideoframework_sources, - include_directories : [ svsrcinc, omssrcinc ], - version : meson.project_version(), - dependencies : signedvideoframework_deps, - install : true, -) +if get_option('staticlibrary') + signedvideoframework = static_library( + 'signed-video-framework', + signedvideoframework_sources, + include_directories : [ svsrcinc, omssrcinc ], + dependencies : signedvideoframework_deps, + install : true, + ) +else + signedvideoframework = shared_library( + 'signed-video-framework', + signedvideoframework_sources, + include_directories : [ svsrcinc, omssrcinc ], + version : meson.project_version(), + dependencies : signedvideoframework_deps, + install : true, + ) +endif pkgconfig = import('pkgconfig') pkgconfig.generate( diff --git a/meson_options.txt b/meson_options.txt index 1aee7bea..d4ce22cf 100644 --- a/meson_options.txt +++ b/meson_options.txt @@ -14,3 +14,7 @@ option('generatetestkeys', type : 'boolean', value : false, description : 'Generate signing keys for tests') +option('staticlibrary', + type : 'boolean', + value : false, + description : 'Build a static library instead of a shared one')