1
0
Fork 0
mirror of https://gitlab.gnome.org/GNOME/calls.git synced 2024-06-25 05:09:30 +00:00

meson: Add config.h

This will be used to factorize project-related information like APP_ID.
This commit is contained in:
Adrien Plazas 2018-08-30 10:09:53 +02:00
parent b8b10ad961
commit 6a1ce14da1
2 changed files with 15 additions and 0 deletions

View file

@ -26,6 +26,7 @@ project('call', 'c',
default_options: [ 'warning_level=1', 'buildtype=debugoptimized', 'c_std=gnu11' ],
)
calls_id = 'sm.puri.Calls'
subdir('libgdbofono')
subdir('src')

View file

@ -57,6 +57,20 @@ calls_dummy_sources = ['calls-dummy-call.c', 'calls-dummy-call.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_sources = gnome.mkenums_simple('enum-types',
sources : calls_enum_headers)