diff options
| author | Clément Sibille <clements@lisible.xyz> | 2025-03-15 18:54:37 +0100 |
|---|---|---|
| committer | Clément Sibille <clements@lisible.xyz> | 2025-03-15 18:54:37 +0100 |
| commit | fda04f7e30149c493c202d2bdb0668d7147f85ea (patch) | |
| tree | adc6c4c91747f2b5400d9cd5ef4a302fc088d26e /meson.build | |
| parent | 1adcfe6082aba2bf993319691e677082287090e5 (diff) | |
Diffstat (limited to '')
| -rw-r--r-- | meson.build | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/meson.build b/meson.build index ebfbfff..931a5e4 100644 --- a/meson.build +++ b/meson.build @@ -2,10 +2,22 @@ project('vkguide', 'c', default_options: ['c_std=c17', 'warning_level=3']) cc = meson.get_compiler('c') sdl3_dep = dependency('SDL3') + +if host_machine.system() == 'darwin' +moltenvk_library_path = '/Users/clements/dev/VulkanSDK/1.4.309.0/macOS/lib' +moltenvk_include_path = '/Users/clements/dev/VulkanSDK/1.4.309.0/macOS/include' +vulkan_dep = declare_dependency( + link_args: ['-L' + moltenvk_library_path, '-lvulkan'], + include_directories: include_directories(moltenvk_include_path) +) +else vulkan_dep = dependency('vulkan') +endif executable( 'vkguide', ['src/main.c'], - dependencies: [sdl3_dep, vulkan_dep] + build_rpath: moltenvk_library_path, + install_rpath: moltenvk_library_path, + dependencies: [sdl3_dep, vulkan_dep], ) |
