diff options
author | Sebastian Dröge <sebastian@centricular.com> | 2017-11-20 19:16:55 +0200 |
---|---|---|
committer | Sebastian Dröge <sebastian@centricular.com> | 2017-11-20 19:16:55 +0200 |
commit | 1abd4c1730213f849bf57cf85ae1591f7c53bc5f (patch) | |
tree | d56194f10f8d601579a9cd2119f22cf5f3614984 /orc-test | |
parent | 275679cea1042ec77c36096fc52ffbc23e26678d (diff) |
Build liborc-test also as a properly versioned library with meson
Diffstat (limited to 'orc-test')
-rw-r--r-- | orc-test/meson.build | 11 | ||||
-rw-r--r-- | orc-test/orc-test.map | 6 |
2 files changed, 17 insertions, 0 deletions
diff --git a/orc-test/meson.build b/orc-test/meson.build index 506cb0d..19c9123 100644 --- a/orc-test/meson.build +++ b/orc-test/meson.build @@ -3,9 +3,20 @@ orc_test_sources = ['orctest.c', 'orcarray.c', 'orcrandom.c', 'orcprofile.c'] install_headers(orc_test_headers, subdir : 'orc-' + orc_api + '/orc-test') +if cc.get_id() != 'msvc' + link_args = ['-Wl,--version-script,' + meson.current_source_dir() + '/orc-test.map'] +else + link_args = [] +endif + orc_test_lib = library ('orc-test-' + orc_api, orc_test_sources, + version : libversion, + soversion : soversion, + include_directories : orc_inc, c_args : [ orc_c_args , '-DORC_ENABLE_UNSTABLE_API' ], dependencies : [libm, orc_dep], + link_args : link_args, + link_depends : 'orc-test.map', install : true) orc_test_dep = declare_dependency(include_directories : orc_inc, diff --git a/orc-test/orc-test.map b/orc-test/orc-test.map new file mode 100644 index 0000000..47f2b25 --- /dev/null +++ b/orc-test/orc-test.map @@ -0,0 +1,6 @@ +{ +global: + orc_*; +local: + *; +}; |