aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLibravatar Tony Crisci <tony@dubstepdish.com>2017-11-30 06:25:13 -0500
committerLibravatar Tony Crisci <tony@dubstepdish.com>2017-11-30 06:25:13 -0500
commitcc310cffb0bf4cd2333be26a2ae16848655a306b (patch)
tree83fe5f45fbcb7866a32ce7a9c9f132acb2860f6c
parentmake meson version configurable (diff)
downloadsway-cc310cffb0bf4cd2333be26a2ae16848655a306b.tar.gz
sway-cc310cffb0bf4cd2333be26a2ae16848655a306b.tar.zst
sway-cc310cffb0bf4cd2333be26a2ae16848655a306b.zip
meson: common static library
-rw-r--r--common/meson.build17
-rw-r--r--sway/meson.build5
2 files changed, 13 insertions, 9 deletions
diff --git a/common/meson.build b/common/meson.build
index ca1f1752..3a4282ad 100644
--- a/common/meson.build
+++ b/common/meson.build
@@ -1,8 +1,11 @@
1sway_common = files( 1lib_sway_common = static_library('sway-common',
2 'log.c', 2 files(
3 'list.c', 3 'log.c',
4 'util.c', 4 'list.c',
5 'stringop.c', 5 'util.c',
6 'readline.c', 6 'stringop.c',
7 'ipc-client.c' 7 'readline.c',
8 'ipc-client.c'
9 ),
10 include_directories: sway_inc
8) 11)
diff --git a/sway/meson.build b/sway/meson.build
index 1f17ed31..b02506c8 100644
--- a/sway/meson.build
+++ b/sway/meson.build
@@ -1,4 +1,4 @@
1sway_sources = sway_common + files( 1sway_sources = files(
2 'main.c', 2 'main.c',
3 'server.c', 3 'server.c',
4 'commands.c', 4 'commands.c',
@@ -25,5 +25,6 @@ executable(
25 'sway', 25 'sway',
26 sway_sources, 26 sway_sources,
27 include_directories: [sway_inc], 27 include_directories: [sway_inc],
28 dependencies: sway_deps 28 dependencies: sway_deps,
29 link_with: [lib_sway_common]
29) 30)