* Implemented xdg-activation logic * Fixed vala-lint issues * Bumped Ubuntu action version to 24.10
34 lines
995 B
Meson
34 lines
995 B
Meson
dep_scanner = dependency('wayland-scanner', native: true)
|
|
prog_scanner = find_program(dep_scanner.get_variable(pkgconfig: 'wayland_scanner'))
|
|
|
|
protocol_file = files(
|
|
'xdg-activation-v1.xml',
|
|
)
|
|
|
|
protocol_sources = []
|
|
protocol_sources += custom_target(
|
|
'xdg-activation-v1-client-protocol.h',
|
|
command: [prog_scanner, 'client-header', '@INPUT@', '@OUTPUT@'],
|
|
input: protocol_file,
|
|
output: 'xdg-activation-v1-client-protocol.h',
|
|
)
|
|
|
|
output_type = 'private-code'
|
|
if dep_scanner.version().version_compare('< 1.14.91')
|
|
output_type = 'code'
|
|
endif
|
|
protocol_sources += custom_target(
|
|
'xdg-activation-protocol.c',
|
|
command: [prog_scanner, output_type, '@INPUT@', '@OUTPUT@'],
|
|
input: protocol_file,
|
|
output: 'xdg-activation-protocol.c',
|
|
)
|
|
|
|
protocol_dep += declare_dependency(
|
|
dependencies: [
|
|
vala.find_library('xdg-activation-v1', dirs: meson.current_source_dir()),
|
|
dependency('wayland-client'),
|
|
],
|
|
include_directories: include_directories('.'),
|
|
sources: protocol_sources,
|
|
)
|