Inital meson

This commit is contained in:
Johannes Jöns 2024-07-04 13:09:51 +02:00
parent 903b773c5e
commit d9cc0f9a9a

35
meson.build Normal file
View file

@ -0,0 +1,35 @@
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')