aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEric Engestrom2018-02-01 05:12:05 -0600
committerEric Engestrom2018-03-20 13:19:26 -0500
commit0926f0af54d654b1a95826066edcae30b8052581 (patch)
tree546efdeadf79644a90ca0c0418dbdea848b81ef4 /meson.build
parent431f1a147e33b3fae7ea78a47d40a6014b682ebd (diff)
downloadexternal-libgbm-0926f0af54d654b1a95826066edcae30b8052581.tar.gz
external-libgbm-0926f0af54d654b1a95826066edcae30b8052581.tar.xz
external-libgbm-0926f0af54d654b1a95826066edcae30b8052581.zip
meson,configure: include config.h automatically
This will prevent any more missing `#include "config.h"` bug, at the cost of having to recompile some files that didn't need to be when changing build options. Signed-off-by: Eric Engestrom <eric.engestrom@imgtec.com> Reviewed-by: Emil Velikov <emil.velikov@collabora.com>
Diffstat (limited to 'meson.build')
-rw-r--r--meson.build2
1 files changed, 1 insertions, 1 deletions
diff --git a/meson.build b/meson.build
index 100a59fa..74a541e8 100644
--- a/meson.build
+++ b/meson.build
@@ -280,7 +280,7 @@ config_file = configure_file(
280 configuration : config, 280 configuration : config,
281 output : 'config.h', 281 output : 'config.h',
282) 282)
283add_project_arguments('-DHAVE_CONFIG_H', language : 'c') 283add_project_arguments('-include', 'config.h', language : 'c')
284 284
285inc_root = include_directories('.') 285inc_root = include_directories('.')
286inc_drm = include_directories('include/drm') 286inc_drm = include_directories('include/drm')