2023-07-28 11:58:03 +02:00
|
|
|
# Meson file for building the preprocessor in a standalone fashion.
|
|
|
|
# It is not used when building Dynare as a whole.
|
2023-05-29 19:10:47 +02:00
|
|
|
|
|
|
|
project('dynare-preprocessor', 'cpp',
|
|
|
|
version : '6-unstable',
|
2023-09-20 11:15:41 +02:00
|
|
|
default_options : [ 'cpp_std=gnu++20', 'warning_level=2' ],
|
|
|
|
meson_version : '>=0.64.0')
|
2023-05-29 19:10:47 +02:00
|
|
|
|
|
|
|
add_global_arguments('-DPACKAGE_VERSION="' + meson.project_version() + '"', language : 'cpp')
|
|
|
|
|
2023-09-22 14:29:33 +02:00
|
|
|
if get_option('warning_level').to_int() >= 2
|
|
|
|
add_global_arguments('-Wold-style-cast', language : 'cpp')
|
|
|
|
endif
|
|
|
|
|
2023-07-28 11:58:03 +02:00
|
|
|
cpp_compiler = meson.get_compiler('cpp')
|
2023-06-08 18:01:58 +02:00
|
|
|
|
2023-07-28 11:58:03 +02:00
|
|
|
subdir('src')
|
|
|
|
subdir('doc')
|