summaryrefslogtreecommitdiffstats
path: root/meson.build
blob: 931a5e44caddfcdc8c33689d783647b9e2edef93 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
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'],
  build_rpath: moltenvk_library_path,
  install_rpath: moltenvk_library_path,
  dependencies: [sdl3_dep, vulkan_dep],
)
Go back to lisible.xyz