From 6c897756b6340d098f50eeb0da0d39abda87fdda Mon Sep 17 00:00:00 2001 From: Simon Ser Date: Fri, 25 Nov 2022 17:36:24 +0100 Subject: build: use a configuration file for internal features This avoids re-building the whole project when switching one Meson option. This shrinks down the compiler invocation command line, making it more readable and making it easier to inspect which flags are passed in (the generated file can be opened). Additionally this is more consistent with our external feature handling, which uses already. --- meson.build | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) (limited to 'meson.build') diff --git a/meson.build b/meson.build index fc3f88af..0a584621 100644 --- a/meson.build +++ b/meson.build @@ -99,6 +99,7 @@ internal_features = { 'xcb-errors': false, 'egl': false, } +internal_config = configuration_data() wayland_project_options = ['tests=false', 'documentation=false'] wayland_server = dependency('wayland-server', @@ -158,13 +159,6 @@ subdir('xwayland') subdir('include') -foreach name, have : internal_features - add_project_arguments( - '-DHAS_@0@=@1@'.format(name.underscorify().to_upper(), have.to_int()), - language: 'c', - ) -endforeach - wlr_inc = include_directories('include') proto_inc = include_directories('protocol') -- cgit v1.2.3