vulkan-test/meson.build

51 lines
1.2 KiB
Meson
Raw Permalink Normal View History

2024-09-25 23:03:56 -04:00
project(
'graphics-test',
'cpp',
version: '0.1.0',
2024-10-16 23:13:55 -04:00
default_options: ['cpp_std=c++26', 'warning_level=everything', '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-pre-c++20-compat-pedantic',
2024-10-18 19:10:11 -04:00
'-Wno-padded',
2024-11-18 19:34:19 -05:00
'-Wno-switch-default',
2024-11-15 12:40:13 -05:00
'-mavx2',
2024-09-25 23:03:56 -04:00
]
add_project_arguments(cpp.get_supported_arguments(common_cpp_args), language: 'cpp')
deps = [
dependency('glfw3', include_type: 'system'),
dependency('glm', include_type: 'system'),
dependency('vulkan', include_type: 'system'),
2024-10-18 19:10:11 -04:00
dependency('shaderc', include_type: 'system'),
2024-09-25 23:03:56 -04:00
]
2024-10-18 13:35:50 -04:00
imgui_dep = dependency('imgui', required: false, include_type: 'system')
if not imgui_dep.found()
imgui_dep = cpp.find_library('imgui', required: true)
endif
2024-10-18 19:10:11 -04:00
deps += imgui_dep
2024-10-18 13:35:50 -04:00
2024-09-25 23:03:56 -04:00
executable(
'graphics-test',
2024-11-17 20:47:48 -05:00
sources: [
'src/main.cpp',
'src/camera/camera.cpp',
2024-11-18 20:15:42 -05:00
'src/gui/imgui_manager.cpp',
2024-11-17 20:47:48 -05:00
'src/init/vulkan_instance.cpp',
'src/init/debug_messenger.cpp',
2024-11-18 15:03:50 -05:00
'src/init/device_manager.cpp',
2024-11-18 13:56:19 -05:00
'src/window/window_manager.cpp',
2024-11-17 20:47:48 -05:00
],
include_directories: include_directories('include', is_system: true),
2024-09-25 23:03:56 -04:00
dependencies: deps,
2024-11-15 12:40:13 -05:00
)