Commit 6a1ce14d authored by Adrien Plazas's avatar Adrien Plazas
Browse files

meson: Add config.h

This will be used to factorize project-related information like APP_ID.
parent b8b10ad9
......@@ -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')
......
......@@ -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)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment