mirror of
https://github.com/swaywm/sway.git
synced 2024-12-29 16:36:26 +01:00
meson: common static library
This commit is contained in:
parent
739bafbd8e
commit
cc310cffb0
2 changed files with 13 additions and 9 deletions
|
@ -1,8 +1,11 @@
|
||||||
sway_common = files(
|
lib_sway_common = static_library('sway-common',
|
||||||
'log.c',
|
files(
|
||||||
'list.c',
|
'log.c',
|
||||||
'util.c',
|
'list.c',
|
||||||
'stringop.c',
|
'util.c',
|
||||||
'readline.c',
|
'stringop.c',
|
||||||
'ipc-client.c'
|
'readline.c',
|
||||||
|
'ipc-client.c'
|
||||||
|
),
|
||||||
|
include_directories: sway_inc
|
||||||
)
|
)
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
sway_sources = sway_common + files(
|
sway_sources = files(
|
||||||
'main.c',
|
'main.c',
|
||||||
'server.c',
|
'server.c',
|
||||||
'commands.c',
|
'commands.c',
|
||||||
|
@ -25,5 +25,6 @@ executable(
|
||||||
'sway',
|
'sway',
|
||||||
sway_sources,
|
sway_sources,
|
||||||
include_directories: [sway_inc],
|
include_directories: [sway_inc],
|
||||||
dependencies: sway_deps
|
dependencies: sway_deps,
|
||||||
|
link_with: [lib_sway_common]
|
||||||
)
|
)
|
||||||
|
|
Loading…
Reference in a new issue