mirror of
https://github.com/swaywm/sway.git
synced 2024-11-22 07:51:28 +00:00
build: drop intermediate libraries for protocols
This commit is contained in:
parent
e5475d9310
commit
af8a5a8918
|
@ -20,7 +20,6 @@ protocols = [
|
||||||
]
|
]
|
||||||
|
|
||||||
wl_protos_src = []
|
wl_protos_src = []
|
||||||
wl_protos_headers = []
|
|
||||||
|
|
||||||
foreach xml : protocols
|
foreach xml : protocols
|
||||||
wl_protos_src += custom_target(
|
wl_protos_src += custom_target(
|
||||||
|
@ -29,38 +28,16 @@ foreach xml : protocols
|
||||||
output: '@BASENAME@-protocol.c',
|
output: '@BASENAME@-protocol.c',
|
||||||
command: [wayland_scanner, 'private-code', '@INPUT@', '@OUTPUT@'],
|
command: [wayland_scanner, 'private-code', '@INPUT@', '@OUTPUT@'],
|
||||||
)
|
)
|
||||||
wl_protos_headers += custom_target(
|
wl_protos_src += custom_target(
|
||||||
xml.underscorify() + '_server_h',
|
xml.underscorify() + '_server_h',
|
||||||
input: xml,
|
input: xml,
|
||||||
output: '@BASENAME@-protocol.h',
|
output: '@BASENAME@-protocol.h',
|
||||||
command: [wayland_scanner, 'server-header', '@INPUT@', '@OUTPUT@'],
|
command: [wayland_scanner, 'server-header', '@INPUT@', '@OUTPUT@'],
|
||||||
)
|
)
|
||||||
wl_protos_headers += custom_target(
|
wl_protos_src += custom_target(
|
||||||
xml.underscorify() + '_client_h',
|
xml.underscorify() + '_client_h',
|
||||||
input: xml,
|
input: xml,
|
||||||
output: '@BASENAME@-client-protocol.h',
|
output: '@BASENAME@-client-protocol.h',
|
||||||
command: [wayland_scanner, 'client-header', '@INPUT@', '@OUTPUT@'],
|
command: [wayland_scanner, 'client-header', '@INPUT@', '@OUTPUT@'],
|
||||||
)
|
)
|
||||||
endforeach
|
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,
|
|
||||||
)
|
|
||||||
|
|
|
@ -222,7 +222,6 @@ sway_deps = [
|
||||||
pcre2,
|
pcre2,
|
||||||
glesv2,
|
glesv2,
|
||||||
pixman,
|
pixman,
|
||||||
server_protos,
|
|
||||||
threads,
|
threads,
|
||||||
wayland_server,
|
wayland_server,
|
||||||
wlroots,
|
wlroots,
|
||||||
|
@ -237,7 +236,7 @@ endif
|
||||||
|
|
||||||
executable(
|
executable(
|
||||||
'sway',
|
'sway',
|
||||||
sway_sources,
|
sway_sources + wl_protos_src,
|
||||||
include_directories: [sway_inc],
|
include_directories: [sway_inc],
|
||||||
dependencies: sway_deps,
|
dependencies: sway_deps,
|
||||||
link_with: [lib_sway_common],
|
link_with: [lib_sway_common],
|
||||||
|
|
|
@ -8,7 +8,6 @@ tray_files = have_tray ? [
|
||||||
|
|
||||||
swaybar_deps = [
|
swaybar_deps = [
|
||||||
cairo,
|
cairo,
|
||||||
client_protos,
|
|
||||||
gdk_pixbuf,
|
gdk_pixbuf,
|
||||||
jsonc,
|
jsonc,
|
||||||
math,
|
math,
|
||||||
|
@ -32,7 +31,8 @@ executable(
|
||||||
'main.c',
|
'main.c',
|
||||||
'render.c',
|
'render.c',
|
||||||
'status_line.c',
|
'status_line.c',
|
||||||
tray_files
|
tray_files,
|
||||||
|
wl_protos_src,
|
||||||
],
|
],
|
||||||
include_directories: [sway_inc],
|
include_directories: [sway_inc],
|
||||||
dependencies: swaybar_deps,
|
dependencies: swaybar_deps,
|
||||||
|
|
|
@ -5,11 +5,11 @@ executable(
|
||||||
'render.c',
|
'render.c',
|
||||||
'swaynag.c',
|
'swaynag.c',
|
||||||
'types.c',
|
'types.c',
|
||||||
|
wl_protos_src,
|
||||||
],
|
],
|
||||||
include_directories: [sway_inc],
|
include_directories: [sway_inc],
|
||||||
dependencies: [
|
dependencies: [
|
||||||
cairo,
|
cairo,
|
||||||
client_protos,
|
|
||||||
pango,
|
pango,
|
||||||
pangocairo,
|
pangocairo,
|
||||||
wayland_client,
|
wayland_client,
|
||||||
|
|
Loading…
Reference in a new issue