Skip to content
Snippets Groups Projects
Commit c4cea444 authored by Simon McVittie's avatar Simon McVittie
Browse files

Use our own filename for config.h


This is Meson best-practice: it avoids accidentally including the wrong
config.h when using subprojects.

Signed-off-by: default avatarSimon McVittie <smcv@collabora.com>
parent 7787be65
No related branches found
No related tags found
1 merge request!82Enable and squash compiler warnings
......@@ -151,13 +151,19 @@ conf_data = configuration_data()
conf_data.set_quoted('VERSION', meson.project_version())
configure_file(
output : 'config.h',
output : '_steam-runtime-tools-config.h',
configuration : conf_data,
)
add_project_arguments(['-D_GNU_SOURCE'], language : 'c')
add_project_arguments(['-include', 'config.h'], language : 'c')
add_project_arguments(['-include', 'config.h'], language : 'cpp')
add_project_arguments(
['-include', '_steam-runtime-tools-config.h'],
language : 'c',
)
add_project_arguments(
['-include', '_steam-runtime-tools-config.h'],
language : 'cpp',
)
glib = dependency(
'glib-2.0',
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment