diff options
author | Scott Anderson <scott@anderso.nz> | 2020-01-24 20:37:34 +1300 |
---|---|---|
committer | Scott Anderson <scott@anderso.nz> | 2020-01-24 09:10:28 +0000 |
commit | 70a084c119695c7d82b4e3a97c35555d0af91d62 (patch) | |
tree | 9020ac3dabd1fb65bebad56a9f33117664e14b36 /examples | |
parent | 57ffb35de009611d8edecb297bc2fd10a9a86702 (diff) |
meson: Fix protocol includes for compositor examples
Diffstat (limited to 'examples')
-rw-r--r-- | examples/meson.build | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/examples/meson.build b/examples/meson.build index 90ac7611..c52ef57c 100644 --- a/examples/meson.build +++ b/examples/meson.build @@ -42,6 +42,7 @@ compositors = { }, 'fullscreen-shell': { 'src': 'fullscreen-shell.c', + 'proto': ['fullscreen-shell-unstable-v1'], }, } @@ -151,9 +152,14 @@ clients = { } foreach name, info : compositors + extra_src = [] + foreach p : info.get('proto', []) + extra_src += get_variable(p.underscorify() + '_server_h') + endforeach + executable( name, - info.get('src'), + [info.get('src'), extra_src], dependencies: wlroots, include_directories: [wlr_inc, proto_inc], build_by_default: get_option('examples'), @@ -164,7 +170,7 @@ foreach name, info : clients extra_src = [] foreach p : info.get('proto') extra_src += get_variable(p.underscorify() + '_c') - extra_src += get_variable(p.underscorify() + '_h') + extra_src += get_variable(p.underscorify() + '_client_h') endforeach executable( |