-
-
Notifications
You must be signed in to change notification settings - Fork 141
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- renamed options to `snake_case` - tests, examples and cmake config now explicitly disabled when used as a subproject - removed small_binaries (it's now implicit when building as release) - added minimum meson version 0.53
- Loading branch information
Showing
6 changed files
with
571 additions
and
510 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,33 +1,22 @@ | ||
args = [] | ||
|
||
if compiler.get_id() == 'gcc' or compiler.get_id() == 'clang' | ||
args += [ '-Wno-switch', '-Wno-switch-default', '-Wno-switch-enum' ] | ||
example_args = [] | ||
example_args += additional_arguments | ||
if is_gcc or is_clang | ||
example_args += [ '-Wno-switch', '-Wno-switch-default', '-Wno-switch-enum' ] | ||
endif | ||
|
||
simple_parser = executable( | ||
examples = [ | ||
'simple_parser', | ||
[ 'simple_parser.cpp' ], | ||
include_directories : inc, | ||
cpp_args : args | ||
) | ||
|
||
toml_to_json_transcoder = executable( | ||
'toml_to_json_transcoder', | ||
[ 'toml_to_json_transcoder.cpp' ], | ||
include_directories : inc, | ||
cpp_args : args | ||
) | ||
|
||
toml_generator = executable( | ||
'toml_generator', | ||
[ 'toml_generator.cpp' ], | ||
include_directories : inc, | ||
cpp_args : args | ||
) | ||
'error_printer' | ||
] | ||
|
||
error_printer = executable( | ||
'error_printer', | ||
[ 'error_printer.cpp' ], | ||
include_directories : inc, | ||
cpp_args : args | ||
) | ||
foreach example : examples | ||
executable( | ||
example, | ||
[ example+'.cpp' ], | ||
include_directories : include_dirs, | ||
cpp_args : example_args, | ||
override_options: overrides | ||
) | ||
endforeach |
Oops, something went wrong.