diff --git a/meson.build b/meson.build new file mode 100644 index 0000000..f3994b3 --- /dev/null +++ b/meson.build @@ -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')