diff options
author | Jeremy Bicha <jeremy.bicha@canonical.com> | 2022-11-17 15:42:05 -0500 |
---|---|---|
committer | Jeremy Bicha <jeremy.bicha@canonical.com> | 2023-01-05 10:48:30 -0500 |
commit | c2e09667bb902fae0eed90b6c7f5f8ccb3d394b8 (patch) | |
tree | 9d74c6e492bd2a76b178fe71603769e91eb1a058 | |
parent | 7841e2fb7d9637350ce51b615b26c298f0b6ad52 (diff) |
Meson: Do not always generate static library for test library
Follow-up from ae14127e7131e5d7e747abf3f5988f8057c8ad48
Part-of: <https://gitlab.freedesktop.org/gstreamer/orc/-/merge_requests/85>
-rw-r--r-- | orc-test/meson.build | 13 |
1 files changed, 3 insertions, 10 deletions
diff --git a/orc-test/meson.build b/orc-test/meson.build index a3ca81b..20bcd63 100644 --- a/orc-test/meson.build +++ b/orc-test/meson.build @@ -3,7 +3,7 @@ orc_test_sources = ['orctest.c', 'orcarray.c', 'orcrandom.c', 'orcprofile.c'] install_headers(orc_test_headers, subdir : 'orc-' + orc_api + '/orc-test') -orc_test_shr = shared_library ('orc-test-' + orc_api, +orc_test_lib = library ('orc-test-' + orc_api, orc_test_sources, version : libversion, soversion : soversion, @@ -13,17 +13,10 @@ orc_test_shr = shared_library ('orc-test-' + orc_api, dependencies : [libm, orc_dep], install : true) -orc_test_sta = static_library ('orc-test-' + orc_api, - objects : orc_test_shr.extract_all_objects(recursive: false), - include_directories : orc_inc, - c_args : orc_c_args + ['-DBUILDING_ORC_TEST'], - dependencies : [libm, orc_dep], - install : true) +orc_test_dep_cargs = [] if get_option('default_library') == 'static' - orc_test_lib = orc_test_sta -else - orc_test_lib = orc_test_shr + orc_test_dep_cargs += ['-DORC_STATIC_COMPILATION'] endif # pkg-config file |