mirror of
https://github.com/ETLCPP/etl.git
synced 2026-04-30 19:09:10 +08:00
* updated the version handling - Introduces a new version.txt file - This file is parsed by CMake to determine the current version * assign version in project call * use version variable * Meson update 1. Minor fix for GCC build 2. Use external version file which can be used by CMake as well * get version from git tag now * ci/cd broke.. * maybe this solves the error * updated workflow files * one last test * remove git describe call
30 lines
724 B
Meson
30 lines
724 B
Meson
project('etl',
|
|
['cpp'],
|
|
default_options : [
|
|
'warning_level=2',
|
|
'werror=false',
|
|
# `build.*` options affect `native: true targets`
|
|
# plain options affect `native: false` targets.
|
|
'cpp_std=c++17', 'build.cpp_std=c++17',
|
|
],
|
|
meson_version: '>=0.57.0',
|
|
version: files('version.txt')
|
|
)
|
|
|
|
compile_args = []
|
|
if get_option('use_stl')
|
|
compile_args += '-DETL_NO_STL=0'
|
|
elif
|
|
compile_args += '-DETL_NO_STL=1'
|
|
endif
|
|
|
|
etl_dep = declare_dependency(
|
|
include_directories: include_directories('include'),
|
|
compile_args: compile_args
|
|
)
|
|
|
|
# Only register tests with the test runner when built as a primary project
|
|
if meson.is_subproject() == false
|
|
subdir('test')
|
|
endif
|