meson: Support building builtin without seatd
The builtin backend relies on the seatd backend implementation. When builtin was enabled without seatd, compilation would fail due to the implementation not being included. Include the implementation if either seatd or builtin is enabled.
This commit is contained in:
parent
36f54adc2c
commit
355cc9c944
1 changed files with 4 additions and 1 deletions
|
@ -106,8 +106,11 @@ with_seatd = get_option('seatd') == 'enabled'
|
||||||
with_builtin = get_option('builtin') == 'enabled'
|
with_builtin = get_option('builtin') == 'enabled'
|
||||||
with_server = get_option('server') == 'enabled'
|
with_server = get_option('server') == 'enabled'
|
||||||
|
|
||||||
if with_seatd
|
if with_seatd or with_builtin
|
||||||
private_files += 'libseat/backend/seatd.c'
|
private_files += 'libseat/backend/seatd.c'
|
||||||
|
endif
|
||||||
|
|
||||||
|
if with_seatd
|
||||||
add_project_arguments('-DSEATD_ENABLED=1', language: 'c')
|
add_project_arguments('-DSEATD_ENABLED=1', language: 'c')
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue