swaymsg: remove build dependency on wlroots

This change significantly reduces `swaymsg` run time, by removing
many unused shared library dependencies.
This commit is contained in:
M Stoeckl 2019-01-19 13:56:07 -05:00
parent d7ffa5cd49
commit e2c4a4d420
2 changed files with 11 additions and 2 deletions

View file

@ -20,3 +20,12 @@ lib_sway_common = static_library(
],
include_directories: sway_inc
)
lib_sway_ipc_client = static_library(
'sway-ipc-client',
files(
'ipc-client.c',
),
dependencies: [],
include_directories: sway_inc
)

View file

@ -2,7 +2,7 @@ executable(
'swaymsg',
'main.c',
include_directories: [sway_inc],
dependencies: [jsonc, wlroots],
link_with: [lib_sway_common],
dependencies: [jsonc],
link_with: [lib_sway_ipc_client],
install: true
)