36 lines
728 B
Meson
36 lines
728 B
Meson
|
project(
|
||
|
'lf2',
|
||
|
'c',
|
||
|
'cpp',
|
||
|
meson_version: '>=0.58.0',
|
||
|
default_options: [
|
||
|
'cpp_std=c++20',
|
||
|
'warning_level=2',
|
||
|
],
|
||
|
)
|
||
|
|
||
|
cppc = meson.get_compiler('cpp')
|
||
|
|
||
|
prefix = get_option('prefix')
|
||
|
data_dir = get_option('datadir')
|
||
|
lib_dir = get_option('libdir')
|
||
|
|
||
|
add_project_arguments(cppc.get_supported_arguments([
|
||
|
'-Wno-unused-parameter',
|
||
|
'-Wno-missing-field-initializers',
|
||
|
'-Wno-c99-designator',
|
||
|
'-Wno-invalid-offsetof',
|
||
|
'-Wno-unused-const-variable',
|
||
|
'-Wno-volatile', # glm warning
|
||
|
'-Wno-deprecated-volatile',
|
||
|
]), language: 'cpp')
|
||
|
|
||
|
add_project_arguments(cppc.get_supported_arguments([
|
||
|
'-ffast-math',
|
||
|
]), language: 'cpp')
|
||
|
|
||
|
sqlite3_dep = dependency('sqlite3')
|
||
|
vulkan_dep = dependency('vulkan')
|
||
|
|
||
|
subdir('src')
|