aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDrew DeVault <sir@cmpwn.com>2018-05-05 07:24:39 -0400
committerGitHub <noreply@github.com>2018-05-05 07:24:39 -0400
commita3fd284876b2d2e12101fc912c012936a04df198 (patch)
treec5d51741f4b01d6af0c5c10ccde15c4caad1f8da
parent1265eff9b3376a260dfe070b3cba2433efbe084c (diff)
parentd68a27fd79e1ddadbdf63d734ae04a7a8983dabc (diff)
Merge pull request #956 from Flow-It/add-options-to-exclude-rootston-and-examples
Add options to exclude rootston and examples at compilation
-rw-r--r--meson.build9
-rw-r--r--meson_options.txt2
2 files changed, 9 insertions, 2 deletions
diff --git a/meson.build b/meson.build
index 19d334e3..362de9f6 100644
--- a/meson.build
+++ b/meson.build
@@ -201,8 +201,13 @@ summary = [
message('\n'.join(summary))
-subdir('rootston')
-subdir('examples')
+if get_option('enable-rootston')
+ subdir('rootston')
+endif
+
+if get_option('enable-examples')
+ subdir('examples')
+endif
pkgconfig = import('pkgconfig')
pkgconfig.generate(
diff --git a/meson_options.txt b/meson_options.txt
index de29e401..e474b8aa 100644
--- a/meson_options.txt
+++ b/meson_options.txt
@@ -4,3 +4,5 @@ option('enable-elogind', type: 'combo', choices: ['auto', 'true', 'false'], valu
option('enable-xcb_errors', type: 'combo', choices: ['auto', 'true', 'false'], value: 'auto', description: 'Use xcb-errors util library')
option('enable-xwayland', type: 'boolean', value: true, description: 'Enable support X11 applications')
option('enable-x11_backend', type: 'boolean', value: true, description: 'Enable X11 backend')
+option('enable-rootston', type: 'boolean', value: true, description: 'Build the rootston example compositor')
+option('enable-examples', type: 'boolean', value: true, description: 'Build example applications')