[nautilus/wip/ernestask/seccomp-arches: 11/11] meson.build: Use set instead of set10
- From: Carlos Soriano <csoriano src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [nautilus/wip/ernestask/seccomp-arches: 11/11] meson.build: Use set instead of set10
- Date: Tue, 9 Oct 2018 07:38:31 +0000 (UTC)
commit ea4a06c56d0824bb7b918879c5bfcf00e40a6ec1
Author: Ernestas Kulik <ernestask gnome org>
Date: Mon Oct 8 14:15:39 2018 +0300
meson.build: Use set instead of set10
Since we only care about whether those macros are defined, we can use
set to save a few lines.
meson.build | 12 +++---------
1 file changed, 3 insertions(+), 9 deletions(-)
---
diff --git a/meson.build b/meson.build
index bab01efc4..caff7720b 100644
--- a/meson.build
+++ b/meson.build
@@ -177,15 +177,9 @@ conf.set_quoted('VERSION', '@0@-@VCS_TAG@'.format(meson.project_version()))
conf.set('ENABLE_SECCOMP', seccomp.found())
conf.set('HAVE_BWRAP', seccomp.found())
-if get_option('packagekit')
- conf.set10('ENABLE_PACKAGEKIT', true)
-endif
-if get_option('profiling')
- conf.set10('ENABLE_PROFILING', true)
-endif
-if get_option('selinux')
- conf.set10('HAVE_SELINUX', true)
-endif
+conf.set('ENABLE_PACKAGEKIT', get_option('packagekit'))
+conf.set('ENABLE_PROFILING', get_option('profiling'))
+conf.set('HAVE_SELINUX', get_option('selinux'))
#############################################################
# config.h dependency, add to target dependencies if needed #
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]