module/i3: use our own copy of i3/ipc.h

The main advantage is when targeting sway/wayland instead of i3/x11;
sway doesn't package ipc.h. There *is* an ipc.h in the sway sources,
but it doesn't define e.g the header format, and has different names
for the constants.
This commit is contained in:
Daniel Eklöf 2019-03-31 12:08:44 +02:00
parent 065c40a9e6
commit 7dc5694965
5 changed files with 117 additions and 8 deletions

View file

@ -33,10 +33,6 @@ target_link_libraries(clock module-sdk)
list(APPEND enabled clock)
pkg_check_modules(json REQUIRED IMPORTED_TARGET json-c)
find_file(I3_IPC_H i3/ipc.h)
if (NOT I3_IPC_H)
message(FATAL_ERROR "cannot find header file: i3/ipc.h")
endif ()
add_library(i3-common STATIC EXCLUDE_FROM_ALL i3-common.c i3-common.h)
target_link_libraries(i3-common PkgConfig::json)
if (ENABLE_X11)