This commit is contained in:
Jordon Brooks 2025-05-06 16:59:40 +01:00
parent 0460ae1a50
commit 1dca4a91d9
Signed by: jordon
GPG key ID: DBD9758CD53E786A
19 changed files with 333 additions and 156 deletions

View file

@ -2,7 +2,7 @@ project(
'FluxEngine',
'cpp',
version : '0.1.0',
meson_version : '>=0.60.0',
meson_version : '>=0.63.0',
default_options : [
'cpp_std=c++20',
'warning_level=3',
@ -21,22 +21,10 @@ else
dflag = '-D'
endif
# 3) Platform macro (all OSes)
sys = host_machine.system()
if sys == 'windows'
plat = 'FLUX_PLATFORM_WINDOWS'
elif sys == 'linux'
plat = 'FLUX_PLATFORM_LINUX'
elif sys == 'darwin'
plat = 'FLUX_PLATFORM_MACOS'
elif sys == 'freebsd'
plat = 'FLUX_PLATFORM_FREEBSD'
else
plat = 'FLUX_PLATFORM_UNKNOWN'
if meson.get_compiler('cpp').get_id() == 'msvc'
add_project_arguments('/utf-8', language: 'cpp')
endif
add_global_arguments(dflag + plat, language : 'cpp')
# 4) Build-type macros
bt = get_option('buildtype')
if bt == 'debug'