libcruft-util/meson.build

39 lines
1.3 KiB
Meson
Raw Normal View History

project(
'cruft-util',
'cpp',
version: '2024-dev',
default_options: ['cpp_std=c++23'],
)
2019-02-22 12:41:19 +11:00
#add_project_arguments('-std=c++2b', language: 'cpp')
2019-02-22 12:41:19 +11:00
add_project_arguments('-Drestrict=__restrict', language: 'cpp')
add_project_arguments('-Dpanic=panic', language: 'cpp')
add_project_arguments('-DPACKAGE="@0@"'.format(meson.project_name()), language: 'cpp')
add_project_arguments('-DPACKAGE_VERSION="@0@"'.format(meson.project_version()), language: 'cpp')
add_project_arguments('-DPACKAGE_NAME="@0@"'.format(meson.project_name()), language: 'cpp')
add_project_arguments('-DPACKAGE_STRING="@0@ @1@"'.format(meson.project_name(), meson.project_version()), language: 'cpp')
###############################################################################
pymod = import('python')
python = pymod.find_installation('python3')
2019-02-22 12:41:19 +11:00
if host_machine.system() == 'windows'
# Enable features for Windows Vista and higher
add_project_arguments('-D_WIN32_WINNT=0x0600')
endif
###############################################################################
if host_machine.endian() == 'big'
add_project_arguments('-DWORDS_BIGENDIAN')
endif
###############################################################################
subdir('src/cruft/util')
subdir('tools')
subdir('test')