summaryrefslogtreecommitdiff
path: root/dbind
diff options
context:
space:
mode:
authorRafael Kitover <rkitover@gmail.com>2018-02-18 16:06:27 -0500
committerMike Gorse <mgorse@alum.wpi.edu>2018-03-05 16:43:42 -0600
commita151316c7f926e7c5b2b711a5c97fc123f1d1c53 (patch)
tree650d046655a71a7d14a4530b5bedfee9345f3a18 /dbind
parentef43d25c9ff499f14a9a7fa24ce2ac779fa52ae5 (diff)
downloadat-spi2-core-a151316c7f926e7c5b2b711a5c97fc123f1d1c53.tar.gz
support building a static library
Change the atspi library definition in meson.build to `library()` instead of `shared_library()` so that when meson is called with `--default-library static` a static library is built. For this to work, also change the `declare_dependency()` in `dbind/meson.build` to be a list of sources instead of a `link_with:` `static_library()`. https://bugzilla.gnome.org/show_bug.cgi?id=793762
Diffstat (limited to 'dbind')
-rw-r--r--dbind/meson.build10
1 files changed, 4 insertions, 6 deletions
diff --git a/dbind/meson.build b/dbind/meson.build
index e1226456..5a9f02d6 100644
--- a/dbind/meson.build
+++ b/dbind/meson.build
@@ -3,12 +3,10 @@ dbind_sources = [
'dbind-any.c',
]
-dbind = static_library('dbind', dbind_sources,
- include_directories: root_inc,
- dependencies: [ libdbus_dep, glib_dep ],
- c_args: [ '-DG_LOG_DOMAIN="dbind"' ])
-
-dbind_dep = declare_dependency(link_with: dbind)
+dbind_dep = declare_dependency(sources: dbind_sources,
+ include_directories: root_inc,
+ compile_args: [ '-DG_LOG_DOMAIN="dbind"' ],
+ dependencies: [ libdbus_dep, glib_dep ])
test('dbind-test',
executable('dbind-test', [ 'dbtest.c', '../atspi/atspi-gmain.c' ],