memoserv/meson.build
King_DuckZ 5d5cba5e3f Add command line help/verbose options to gui too.
Refactor code to reduce code duplication across the two programs.
2020-03-20 20:02:21 +01:00

35 lines
1,006 B
Meson

project('memoserv', 'cpp',
version: '0.1.0',
meson_version: '>=0.49.2',
default_options:['debug=true', 'cpp_std=c++17', 'b_ndebug=if-release']
)
is_debug_build = 0
if get_option('buildtype').startswith('debug')
is_debug_build = 1
endif
cpp = meson.get_compiler('cpp')
conf = configuration_data()
version_arr = meson.project_version().split('.')
conf.set('PROJECT_NAME', meson.project_name())
conf.set('PROJECT_VERSION_MAJOR', version_arr[0])
conf.set('PROJECT_VERSION_MINOR', version_arr[1])
conf.set('PROJECT_VERSION_PATCH', version_arr[2])
conf.set('COMPILER_NAME', cpp.get_id())
conf.set('COMPILER_VERSION', cpp.version())
conf.set('COPYRIGHT_YEAR', '2020')
project_config_file = configure_file(
input: 'src/config.h.in',
output: 'config.h',
configuration: conf
)
app_config_model = files('src/app_config.h.in')
cxxopts_incl = include_directories('subprojects/cxxopts/include', '.')
memcard_proj = subproject('memcard')
memcard_dep = memcard_proj.get_variable('memcard_dep')
subdir('src')