move sway specific ipc code out of common

Moves the ipc-client code out of common into a dedicated ipc library to
allow moving swaybg/swaylock into a separate project more easily
This commit is contained in:
Markus Ongyerth 2018-05-24 21:59:55 +02:00
parent 3fb60b6aed
commit 4a967f2d9d
7 changed files with 12 additions and 4 deletions

View file

@ -3,7 +3,6 @@ lib_sway_common = static_library(
files(
'background-image.c',
'cairo.c',
'ipc-client.c',
'log.c',
'list.c',
'pango.c',

8
ipc/meson.build Normal file
View file

@ -0,0 +1,8 @@
lib_sway_ipc = static_library(
'sway-ipc',
files(
'ipc-client.c',
),
dependencies: [ ],
include_directories: sway_inc
)

View file

@ -115,6 +115,7 @@ sway_inc = include_directories('include')
subdir('include')
subdir('protocols')
subdir('common')
subdir('ipc')
subdir('sway')
subdir('swaymsg')

View file

@ -143,6 +143,6 @@ executable(
sway_sources,
include_directories: [sway_inc],
dependencies: sway_deps,
link_with: [lib_sway_common],
link_with: [lib_sway_common, lib_sway_ipc],
install: true
)

View file

@ -23,6 +23,6 @@ executable(
wayland_cursor,
wlroots,
],
link_with: [lib_sway_common, lib_sway_client],
link_with: [lib_sway_common, lib_sway_client, lib_sway_ipc],
install: true
)

View file

@ -3,6 +3,6 @@ executable(
'main.c',
include_directories: [sway_inc],
dependencies: [jsonc, wlroots],
link_with: [lib_sway_common],
link_with: [lib_sway_common, lib_sway_ipc],
install: true
)