-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathmeson.build
33 lines (24 loc) · 1.25 KB
/
meson.build
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
project('chisel', ['c', 'cpp'],
version: 'latest',
default_options: ['cpp_std=c++20']
)
cpp = meson.get_compiler('cpp')
# ImGui: Use 32-bit Wchar to support planes 1-16
add_global_arguments('-DIMGUI_USE_WCHAR32', language: 'cpp')
windows = build_machine.system() == 'windows'
linux = build_machine.system() == 'linux'
sdl_dep = dependency('sdl2', default_options: ['with_main=false'], static: true)
fmt_dep = dependency('fmt', static: true)
glm_dep = dependency('glm', static: true)
imgui_dep = dependency('imgui', default_options: ['vulkan=disabled', 'sdl_renderer=disabled', 'opengl=disabled', 'dx12=disabled', 'dx11=disabled', 'metal=disabled', 'dx9=disabled', 'dx10=disabled', 'webgpu=disabled', 'sdl2=disabled', 'glfw=disabled'], static: true)
imguizmo_dep = dependency('imguizmo')
zstd_dep = dependency('libzstd', static: true)
dxvk_opts = [
'enable_d3d9=false',
'enable_d3d10=false',
]
d3d11_dep = windows ? cpp.find_library('d3d11') : dependency('d3d11', default_options: dxvk_opts)
dxgi_dep = windows ? cpp.find_library('dxgi') : dependency('dxgi', default_options: dxvk_opts)
offsetallocator_src = files('submodules/OffsetAllocator/offsetAllocator.cpp')
yyjson_src = files('submodules/yyjson/src/yyjson.c')
subdir('src')