aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLibravatar Tony Crisci <tony@dubstepdish.com>2017-11-30 03:39:27 -0500
committerLibravatar Tony Crisci <tony@dubstepdish.com>2017-11-30 03:39:27 -0500
commit88cc7e31781a0d42bdd4f9eee646c02ff03857c4 (patch)
tree7cb3d493be3e01752e345bdba29ea3ba2842c4ae
parentworking meson build (diff)
downloadsway-88cc7e31781a0d42bdd4f9eee646c02ff03857c4.tar.gz
sway-88cc7e31781a0d42bdd4f9eee646c02ff03857c4.tar.zst
sway-88cc7e31781a0d42bdd4f9eee646c02ff03857c4.zip
use meson subdirectories
-rw-r--r--common/meson.build8
-rw-r--r--meson.build35
-rw-r--r--sway/meson.build29
3 files changed, 39 insertions, 33 deletions
diff --git a/common/meson.build b/common/meson.build
new file mode 100644
index 00000000..ca1f1752
--- /dev/null
+++ b/common/meson.build
@@ -0,0 +1,8 @@
1sway_common = files(
2 'log.c',
3 'list.c',
4 'util.c',
5 'stringop.c',
6 'readline.c',
7 'ipc-client.c'
8)
diff --git a/meson.build b/meson.build
index 06eed97f..a28e1097 100644
--- a/meson.build
+++ b/meson.build
@@ -30,37 +30,6 @@ add_project_arguments('-DSWAY_VERSION="5"', language: 'c')
30 30
31sway_inc = include_directories('include') 31sway_inc = include_directories('include')
32 32
33sway_sources = [ 33subdir('common')
34 'sway/main.c', 34subdir('sway')
35 'sway/server.c',
36 'sway/commands.c',
37 'sway/commands/exit.c',
38 'sway/ipc-json.c',
39 'sway/ipc-server.c',
40 'sway/desktop/output.c',
41 'sway/desktop/xdg_shell_v6.c',
42 'sway/tree/container.c',
43 'sway/tree/layout.c',
44 'sway/tree/workspace.c',
45 'common/log.c',
46 'common/list.c',
47 'common/stringop.c',
48 'common/readline.c',
49 'common/ipc-client.c',
50]
51 35
52sway_deps = [
53 pixman,
54 wayland_server,
55 jsonc,
56 wlroots,
57 libcap,
58 math,
59]
60
61executable(
62 'sway',
63 sway_sources,
64 include_directories: [sway_inc],
65 dependencies: sway_deps
66)
diff --git a/sway/meson.build b/sway/meson.build
new file mode 100644
index 00000000..1f17ed31
--- /dev/null
+++ b/sway/meson.build
@@ -0,0 +1,29 @@
1sway_sources = sway_common + files(
2 'main.c',
3 'server.c',
4 'commands.c',
5 'commands/exit.c',
6 'ipc-json.c',
7 'ipc-server.c',
8 'desktop/output.c',
9 'desktop/xdg_shell_v6.c',
10 'tree/container.c',
11 'tree/layout.c',
12 'tree/workspace.c',
13)
14
15sway_deps = [
16 pixman,
17 wayland_server,
18 jsonc,
19 wlroots,
20 libcap,
21 math,
22]
23
24executable(
25 'sway',
26 sway_sources,
27 include_directories: [sway_inc],
28 dependencies: sway_deps
29)