diff options
-rw-r--r-- | common/meson.build | 8 | ||||
-rw-r--r-- | meson.build | 35 | ||||
-rw-r--r-- | sway/meson.build | 29 |
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 @@ | |||
1 | sway_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 | ||
31 | sway_inc = include_directories('include') | 31 | sway_inc = include_directories('include') |
32 | 32 | ||
33 | sway_sources = [ | 33 | subdir('common') |
34 | 'sway/main.c', | 34 | subdir('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 | ||
52 | sway_deps = [ | ||
53 | pixman, | ||
54 | wayland_server, | ||
55 | jsonc, | ||
56 | wlroots, | ||
57 | libcap, | ||
58 | math, | ||
59 | ] | ||
60 | |||
61 | executable( | ||
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 @@ | |||
1 | sway_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 | |||
15 | sway_deps = [ | ||
16 | pixman, | ||
17 | wayland_server, | ||
18 | jsonc, | ||
19 | wlroots, | ||
20 | libcap, | ||
21 | math, | ||
22 | ] | ||
23 | |||
24 | executable( | ||
25 | 'sway', | ||
26 | sway_sources, | ||
27 | include_directories: [sway_inc], | ||
28 | dependencies: sway_deps | ||
29 | ) | ||