meson: common static library

This commit is contained in:
Tony Crisci 2017-11-30 06:25:13 -05:00
parent 739bafbd8e
commit cc310cffb0
2 changed files with 13 additions and 9 deletions

View file

@ -1,8 +1,11 @@
sway_common = files(
'log.c',
'list.c',
'util.c',
'stringop.c',
'readline.c',
'ipc-client.c'
lib_sway_common = static_library('sway-common',
files(
'log.c',
'list.c',
'util.c',
'stringop.c',
'readline.c',
'ipc-client.c'
),
include_directories: sway_inc
)

View file

@ -1,4 +1,4 @@
sway_sources = sway_common + files(
sway_sources = files(
'main.c',
'server.c',
'commands.c',
@ -25,5 +25,6 @@ executable(
'sway',
sway_sources,
include_directories: [sway_inc],
dependencies: sway_deps
dependencies: sway_deps,
link_with: [lib_sway_common]
)