From e2c4a4d420ff37deea1163e0bf9d5d1f8239ecef Mon Sep 17 00:00:00 2001 From: M Stoeckl Date: Sat, 19 Jan 2019 13:56:07 -0500 Subject: [PATCH] swaymsg: remove build dependency on wlroots This change significantly reduces `swaymsg` run time, by removing many unused shared library dependencies. --- common/meson.build | 9 +++++++++ swaymsg/meson.build | 4 ++-- 2 files changed, 11 insertions(+), 2 deletions(-) diff --git a/common/meson.build b/common/meson.build index 3af1f1d56..9f9fcc37d 100644 --- a/common/meson.build +++ b/common/meson.build @@ -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 +) diff --git a/swaymsg/meson.build b/swaymsg/meson.build index b78e6cb03..2fd091dba 100644 --- a/swaymsg/meson.build +++ b/swaymsg/meson.build @@ -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 )