Inital meson
This commit is contained in:
parent
903b773c5e
commit
d9cc0f9a9a
1 changed files with 35 additions and 0 deletions
35
meson.build
Normal file
35
meson.build
Normal 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')
|
Loading…
Reference in a new issue