aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBoris Faure <billiob@gmail.com>2018-11-21 19:47:43 +0100
committerBoris Faure <billiob@gmail.com>2018-12-27 22:14:44 +0100
commit3751ce80835d056ac3b9e522ca67d416ddeacb1c (patch)
tree581d35e162ae62662341057c7c55f3dad0f6bf51
parentadd tytest, a tool to add tests on escape sequence parsing (diff)
downloadterminology-3751ce80835d056ac3b9e522ca67d416ddeacb1c.tar.gz
build: better way to compile tyfuzz/tytest
-rw-r--r--meson.build2
-rw-r--r--src/bin/meson.build2
2 files changed, 2 insertions, 2 deletions
diff --git a/meson.build b/meson.build
index ed68588..0604dea 100644
--- a/meson.build
+++ b/meson.build
@@ -109,7 +109,6 @@ endif
fuzzing = get_option('fuzzing')
if fuzzing
- config_data.set('ENABLE_FUZZING', 1)
message('Fuzzing is enabled')
else
message('Fuzzing is disabled')
@@ -117,7 +116,6 @@ endif
tests = get_option('tests')
if tests
- config_data.set('ENABLE_TESTS', 1)
message('Tests are enabled')
else
message('Tests are disabled')
diff --git a/src/bin/meson.build b/src/bin/meson.build
index 2320e5b..476c466 100644
--- a/src/bin/meson.build
+++ b/src/bin/meson.build
@@ -116,6 +116,7 @@ if fuzzing
tyfuzz_sources,
install: true,
include_directories: config_dir,
+ c_args: '-DENABLE_FUZZING=1',
dependencies: terminology_dependencies)
endif
if tests
@@ -123,5 +124,6 @@ if tests
tytest_sources,
install: true,
include_directories: config_dir,
+ c_args: '-DENABLE_TESTS=1',
dependencies: terminology_dependencies)
endif