39 lines
1.3 KiB
Meson
39 lines
1.3 KiB
Meson
project(
|
|
'cruft-util',
|
|
'cpp',
|
|
version: '2024-dev',
|
|
default_options: ['cpp_std=c++23'],
|
|
)
|
|
|
|
#add_project_arguments('-std=c++2b', language: 'cpp')
|
|
|
|
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')
|
|
|
|
|
|
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')
|