use meson subdirectories
This commit is contained in:
parent
ba6246ada1
commit
88cc7e3178
8
common/meson.build
Normal file
8
common/meson.build
Normal file
|
@ -0,0 +1,8 @@
|
||||||
|
sway_common = files(
|
||||||
|
'log.c',
|
||||||
|
'list.c',
|
||||||
|
'util.c',
|
||||||
|
'stringop.c',
|
||||||
|
'readline.c',
|
||||||
|
'ipc-client.c'
|
||||||
|
)
|
35
meson.build
35
meson.build
|
@ -30,37 +30,6 @@ add_project_arguments('-DSWAY_VERSION="5"', language: 'c')
|
||||||
|
|
||||||
sway_inc = include_directories('include')
|
sway_inc = include_directories('include')
|
||||||
|
|
||||||
sway_sources = [
|
subdir('common')
|
||||||
'sway/main.c',
|
subdir('sway')
|
||||||
'sway/server.c',
|
|
||||||
'sway/commands.c',
|
|
||||||
'sway/commands/exit.c',
|
|
||||||
'sway/ipc-json.c',
|
|
||||||
'sway/ipc-server.c',
|
|
||||||
'sway/desktop/output.c',
|
|
||||||
'sway/desktop/xdg_shell_v6.c',
|
|
||||||
'sway/tree/container.c',
|
|
||||||
'sway/tree/layout.c',
|
|
||||||
'sway/tree/workspace.c',
|
|
||||||
'common/log.c',
|
|
||||||
'common/list.c',
|
|
||||||
'common/stringop.c',
|
|
||||||
'common/readline.c',
|
|
||||||
'common/ipc-client.c',
|
|
||||||
]
|
|
||||||
|
|
||||||
sway_deps = [
|
|
||||||
pixman,
|
|
||||||
wayland_server,
|
|
||||||
jsonc,
|
|
||||||
wlroots,
|
|
||||||
libcap,
|
|
||||||
math,
|
|
||||||
]
|
|
||||||
|
|
||||||
executable(
|
|
||||||
'sway',
|
|
||||||
sway_sources,
|
|
||||||
include_directories: [sway_inc],
|
|
||||||
dependencies: sway_deps
|
|
||||||
)
|
|
||||||
|
|
29
sway/meson.build
Normal file
29
sway/meson.build
Normal file
|
@ -0,0 +1,29 @@
|
||||||
|
sway_sources = sway_common + files(
|
||||||
|
'main.c',
|
||||||
|
'server.c',
|
||||||
|
'commands.c',
|
||||||
|
'commands/exit.c',
|
||||||
|
'ipc-json.c',
|
||||||
|
'ipc-server.c',
|
||||||
|
'desktop/output.c',
|
||||||
|
'desktop/xdg_shell_v6.c',
|
||||||
|
'tree/container.c',
|
||||||
|
'tree/layout.c',
|
||||||
|
'tree/workspace.c',
|
||||||
|
)
|
||||||
|
|
||||||
|
sway_deps = [
|
||||||
|
pixman,
|
||||||
|
wayland_server,
|
||||||
|
jsonc,
|
||||||
|
wlroots,
|
||||||
|
libcap,
|
||||||
|
math,
|
||||||
|
]
|
||||||
|
|
||||||
|
executable(
|
||||||
|
'sway',
|
||||||
|
sway_sources,
|
||||||
|
include_directories: [sway_inc],
|
||||||
|
dependencies: sway_deps
|
||||||
|
)
|
Loading…
Reference in a new issue