mirror of
https://gitlab.gnome.org/GNOME/calls.git
synced 2025-01-07 12:25:31 +00:00
meson: Add config.h
This will be used to factorize project-related information like APP_ID.
This commit is contained in:
parent
b8b10ad961
commit
6a1ce14da1
2 changed files with 15 additions and 0 deletions
|
@ -26,6 +26,7 @@ project('call', 'c',
|
||||||
default_options: [ 'warning_level=1', 'buildtype=debugoptimized', 'c_std=gnu11' ],
|
default_options: [ 'warning_level=1', 'buildtype=debugoptimized', 'c_std=gnu11' ],
|
||||||
)
|
)
|
||||||
|
|
||||||
|
calls_id = 'sm.puri.Calls'
|
||||||
|
|
||||||
subdir('libgdbofono')
|
subdir('libgdbofono')
|
||||||
subdir('src')
|
subdir('src')
|
||||||
|
|
|
@ -57,6 +57,20 @@ calls_dummy_sources = ['calls-dummy-call.c', 'calls-dummy-call.h',
|
||||||
'calls-dummy-provider.c', 'calls-dummy-provider.h',
|
'calls-dummy-provider.c', 'calls-dummy-provider.h',
|
||||||
]
|
]
|
||||||
|
|
||||||
|
config_data = configuration_data()
|
||||||
|
config_data.set_quoted('APP_ID', calls_id)
|
||||||
|
|
||||||
|
config_h_in = configure_file(
|
||||||
|
output: 'config.h.in',
|
||||||
|
configuration: config_data
|
||||||
|
)
|
||||||
|
|
||||||
|
config_h = vcs_tag(
|
||||||
|
fallback: '',
|
||||||
|
input: config_h_in,
|
||||||
|
output: 'config.h',
|
||||||
|
)
|
||||||
|
|
||||||
calls_enum_headers = ['calls-call.h']
|
calls_enum_headers = ['calls-call.h']
|
||||||
calls_enum_sources = gnome.mkenums_simple('enum-types',
|
calls_enum_sources = gnome.mkenums_simple('enum-types',
|
||||||
sources : calls_enum_headers)
|
sources : calls_enum_headers)
|
||||||
|
|
Loading…
Reference in a new issue