2024-09-25 23:03:56 -04:00
|
|
|
project(
|
|
|
|
'graphics-test',
|
|
|
|
'cpp',
|
|
|
|
version: '0.1.0',
|
|
|
|
default_options: [
|
|
|
|
'cpp_std=c++20',
|
|
|
|
'warning_level=everything',
|
2024-09-28 13:00:48 -04:00
|
|
|
'buildtype=debugoptimized'
|
2024-09-25 23:03:56 -04:00
|
|
|
],
|
|
|
|
)
|
|
|
|
|
|
|
|
cpp = meson.get_compiler('cpp')
|
|
|
|
|
|
|
|
common_cpp_args = [
|
|
|
|
'-Wno-c++20-compat',
|
|
|
|
'-Wno-c++20-extensions',
|
|
|
|
'-Wno-c++98-compat',
|
|
|
|
'-Wno-c++98-compat-pedantic',
|
|
|
|
'-Wno-disabled-macro-expansion',
|
|
|
|
'-Wno-missing-prototypes',
|
|
|
|
'-Wno-padded',
|
|
|
|
'-Wno-pre-c++20-compat-pedantic',
|
|
|
|
'-Wno-switch-default',
|
|
|
|
'-Wno-unsafe-buffer-usage',
|
|
|
|
'-Wunused-function',
|
|
|
|
'-fvisibility=hidden',
|
|
|
|
]
|
|
|
|
|
|
|
|
add_project_arguments(cpp.get_supported_arguments(common_cpp_args), language: 'cpp')
|
|
|
|
|
|
|
|
source_file_names = [
|
|
|
|
'src/main.cpp',
|
|
|
|
]
|
|
|
|
|
|
|
|
sources = []
|
|
|
|
|
|
|
|
foreach file : source_file_names
|
|
|
|
sources += files(file)
|
|
|
|
endforeach
|
|
|
|
|
|
|
|
deps = [
|
|
|
|
dependency('fmt', static: true),
|
|
|
|
dependency('glfw3'),
|
|
|
|
dependency('glm'),
|
2024-09-26 17:18:45 -04:00
|
|
|
dependency('vulkan')
|
2024-09-25 23:03:56 -04:00
|
|
|
]
|
|
|
|
|
|
|
|
|
|
|
|
executable(
|
|
|
|
'graphics-test',
|
|
|
|
sources,
|
|
|
|
dependencies: deps,
|
|
|
|
)
|