1
1
Fork 0
mirror of https://github.com/swaywm/sway synced 2024-04-20 17:34:01 +02:00

build: drop intermediate libraries for protocols

This commit is contained in:
Simon Ser 2022-11-25 10:51:20 +01:00
parent e5475d9310
commit af8a5a8918
4 changed files with 6 additions and 30 deletions

View File

@ -20,7 +20,6 @@ protocols = [
]
wl_protos_src = []
wl_protos_headers = []
foreach xml : protocols
wl_protos_src += custom_target(
@ -29,38 +28,16 @@ foreach xml : protocols
output: '@BASENAME@-protocol.c',
command: [wayland_scanner, 'private-code', '@INPUT@', '@OUTPUT@'],
)
wl_protos_headers += custom_target(
wl_protos_src += custom_target(
xml.underscorify() + '_server_h',
input: xml,
output: '@BASENAME@-protocol.h',
command: [wayland_scanner, 'server-header', '@INPUT@', '@OUTPUT@'],
)
wl_protos_headers += custom_target(
wl_protos_src += custom_target(
xml.underscorify() + '_client_h',
input: xml,
output: '@BASENAME@-client-protocol.h',
command: [wayland_scanner, 'client-header', '@INPUT@', '@OUTPUT@'],
)
endforeach
lib_client_protos = static_library(
'client_protos',
wl_protos_src + wl_protos_headers,
dependencies: wayland_client.partial_dependency(compile_args: true),
)
client_protos = declare_dependency(
link_with: lib_client_protos,
sources: wl_protos_headers,
)
lib_server_protos = static_library(
'server_protos',
wl_protos_src + wl_protos_headers,
dependencies: wayland_server.partial_dependency(compile_args: true),
)
server_protos = declare_dependency(
link_with: lib_server_protos,
sources: wl_protos_headers,
)

View File

@ -222,7 +222,6 @@ sway_deps = [
pcre2,
glesv2,
pixman,
server_protos,
threads,
wayland_server,
wlroots,
@ -237,7 +236,7 @@ endif
executable(
'sway',
sway_sources,
sway_sources + wl_protos_src,
include_directories: [sway_inc],
dependencies: sway_deps,
link_with: [lib_sway_common],

View File

@ -8,7 +8,6 @@ tray_files = have_tray ? [
swaybar_deps = [
cairo,
client_protos,
gdk_pixbuf,
jsonc,
math,
@ -32,7 +31,8 @@ executable(
'main.c',
'render.c',
'status_line.c',
tray_files
tray_files,
wl_protos_src,
],
include_directories: [sway_inc],
dependencies: swaybar_deps,

View File

@ -5,11 +5,11 @@ executable(
'render.c',
'swaynag.c',
'types.c',
wl_protos_src,
],
include_directories: [sway_inc],
dependencies: [
cairo,
client_protos,
pango,
pangocairo,
wayland_client,