summaryrefslogtreecommitdiffstats
path: root/contrib/meson/meson_options.txt
diff options
context:
space:
mode:
authorLzu Tao <taolzu@gmail.com>2018-12-01 05:15:53 (GMT)
committerLzu Tao <taolzu@gmail.com>2018-12-02 03:00:27 (GMT)
commit5bc119455fde697f132adbd7fd50f095954f703b (patch)
treed4b4bcffae99a9f793c735f9e59c8a452806c95b /contrib/meson/meson_options.txt
parent6689dae33ba1eb588abe3d3cb763bc5dc08878b3 (diff)
downloadlz4-5bc119455fde697f132adbd7fd50f095954f703b.zip
lz4-5bc119455fde697f132adbd7fd50f095954f703b.tar.gz
lz4-5bc119455fde697f132adbd7fd50f095954f703b.tar.bz2
Add meson build system
Diffstat (limited to 'contrib/meson/meson_options.txt')
-rw-r--r--contrib/meson/meson_options.txt24
1 files changed, 24 insertions, 0 deletions
diff --git a/contrib/meson/meson_options.txt b/contrib/meson/meson_options.txt
new file mode 100644
index 0000000..f6a4ae7
--- /dev/null
+++ b/contrib/meson/meson_options.txt
@@ -0,0 +1,24 @@
+# #############################################################################
+# Copyright (c) 2018-present lzutao <taolzu(at)gmail.com>
+# All rights reserved.
+#
+# This source code is licensed under both the BSD-style license (found in the
+# LICENSE file in the root directory of this source tree) and the GPLv2 (found
+# in the COPYING file in the root directory of this source tree).
+# #############################################################################
+
+# Read guidelines from https://wiki.gnome.org/Initiatives/GnomeGoals/MesonPorting
+
+option('debug_level', type: 'integer', min: 0, max: 7, value: 1,
+ description: 'Enable run-time debug. See lib/lz4hc.c')
+option('backtrace', type: 'boolean', value: false,
+ description: 'Display a stack backtrace when execution generates a runtime exception')
+
+option('build_programs', type: 'boolean', value: false,
+ description: 'Enable programs build')
+option('build_tests', type: 'boolean', value: false,
+ description: 'Enable tests build')
+option('build_contrib', type: 'boolean', value: false,
+ description: 'Enable contrib build')
+option('build_examples', type: 'boolean', value: false,
+ description: 'Enable examples build')