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() ...@@ -151,13 +151,19 @@ conf_data = configuration_data()
conf_data.set_quoted('VERSION', meson.project_version()) conf_data.set_quoted('VERSION', meson.project_version())
configure_file( configure_file(
output : 'config.h', output : '_steam-runtime-tools-config.h',
configuration : conf_data, configuration : conf_data,
) )
add_project_arguments(['-D_GNU_SOURCE'], language : 'c') add_project_arguments(['-D_GNU_SOURCE'], language : 'c')
add_project_arguments(['-include', 'config.h'], language : 'c') add_project_arguments(
add_project_arguments(['-include', 'config.h'], language : 'cpp') ['-include', '_steam-runtime-tools-config.h'],
language : 'c',
)
add_project_arguments(
['-include', '_steam-runtime-tools-config.h'],
language : 'cpp',
)
glib = dependency( glib = dependency(
'glib-2.0', '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