Repository navigation
Expand file tree
/
Copy pathmeson.build
More file actions
147 lines (131 loc) · 4.35 KB
/
Copy pathmeson.build
File metadata and controls
147 lines (131 loc) · 4.35 KB
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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
project(
'vkDuck', ['cpp'],
version: '0.1',
default_options: [
'buildtype=debugoptimized',
'debug=true'
]
)
# MSVC does not implement a c++23 version yet
cpp = meson.get_compiler('cpp')
if cpp.get_id() == 'msvc'
add_project_arguments('/std:c++23preview', language: 'cpp')
add_project_link_arguments('/stack:16777216', language: 'cpp')
else
add_project_arguments('-std=c++23', language: 'cpp')
endif
# vkDuck shared library (used by both editor and generated projects)
vkDuck_proj = subproject('vkDuck')
vkDuck_dep = vkDuck_proj.get_variable('vkDuck_dep')
# Dependencies
sdl3 = dependency('sdl3')
vulkan = dependency('vulkan')
glm = dependency('glm')
imgui = dependency('imgui')
imnodes = dependency('imgui-node-editor', include_type: 'system')
nlohmann_json = dependency('nlohmann_json')
shader_slang = dependency('shader-slang')
vma = dependency('vulkan-memory-allocator', include_type: 'system')
efsw = dependency('efsw')
# macOS frameworks required by efsw for FSEvents
if host_machine.system() == 'darwin'
corefoundation = dependency('appleframeworks', modules: ['CoreFoundation', 'CoreServices'])
else
corefoundation = []
endif
vulkan_files = files(
'vulkan_base/vulkan_device.cpp',
# helper.cpp removed - now using vkDuck/library.h
)
editor_files = files(
# Main editor
'vulkan_editor/editor.cpp',
# Asset management
'vulkan_editor/asset/model_manager.cpp',
# Graph - node system
'vulkan_editor/graph/node.cpp',
'vulkan_editor/graph/node_graph.cpp',
'vulkan_editor/graph/link.cpp',
'vulkan_editor/graph/pin_registry.cpp',
'vulkan_editor/graph/validation_rules.cpp',
'vulkan_editor/graph/pipeline_node.cpp',
# Singular model nodes moved to deprecated/ - using multi-model nodes instead
'vulkan_editor/graph/multi_model_source_node.cpp',
'vulkan_editor/graph/multi_model_consumer_base.cpp',
'vulkan_editor/graph/multi_vertex_data_node.cpp',
'vulkan_editor/graph/multi_ubo_node.cpp',
'vulkan_editor/graph/multi_material_node.cpp',
'vulkan_editor/graph/present_node.cpp',
'vulkan_editor/graph/light_node.cpp',
'vulkan_editor/graph/camera_node.cpp',
'vulkan_editor/graph/fixed_camera_node.cpp',
'vulkan_editor/graph/fps_camera_node.cpp',
# default_renderer.cpp moved to deprecated/ - was for singular model nodes
# Shader management
'vulkan_editor/shader/shader_manager.cpp',
'vulkan_editor/shader/shader_reflection.cpp',
'vulkan_editor/shader/shader_watcher.cpp',
# I/O and serialization
'vulkan_editor/io/file_generator.cpp',
'vulkan_editor/io/primitive_generator.cpp',
'vulkan_editor/io/graph_serializer.cpp',
# image_loader.cpp removed - using vkDuck library's image_loader
'vulkan_editor/io/directory_watcher.cpp',
'vulkan_editor/io/model_watcher.cpp',
# GPU resources and memory (split primitives)
'vulkan_editor/gpu/primitives/vertex_data.cpp',
'vulkan_editor/gpu/primitives/uniform_buffer.cpp',
'vulkan_editor/gpu/primitives/images.cpp',
'vulkan_editor/gpu/primitives/pipeline.cpp',
'vulkan_editor/gpu/primitives/descriptors.cpp',
'vulkan_editor/gpu/primitives/store.cpp',
'vulkan_editor/gpu/batched_stager.cpp',
'vulkan_editor/gpu/staging_buffer_pool.cpp',
# Utilities
'vulkan_editor/util/logger.cpp',
# Configuration
'vulkan_editor/config/vulkan_enums.cpp',
'vulkan_editor/config/recent_projects.cpp',
# UI
'vulkan_editor/asset/asset_library_ui.cpp',
'vulkan_editor/ui/pipeline_editor_ui.cpp',
'vulkan_editor/ui/pipeline_settings_ui.cpp',
# model_settings_ui.cpp moved to deprecated/ - using multi_model_settings_ui instead
'vulkan_editor/ui/multi_model_settings_ui.cpp',
'vulkan_editor/ui/camera_editor_ui.cpp',
'vulkan_editor/ui/light_editor_ui.cpp',
'vulkan_editor/ui/attachment_editor_ui.cpp',
'vulkan_editor/ui/live_view.cpp',
'vulkan_editor/ui/debug_console_ui.cpp',
'vulkan_editor/ui/user_messages_ui.cpp',
)
external_files = files(
'external/tinyfiledialogs.cpp',
'external/utilities/builders.cpp',
'external/utilities/drawing.cpp',
'external/utilities/widgets.cpp',
'external/SimpleFileDialog.cpp',
)
executable(
'main', [
'main.cpp',
vulkan_files,
editor_files,
external_files
],
dependencies: [
sdl3,
vulkan,
glm,
shader_slang,
imgui,
imnodes,
vma,
efsw,
nlohmann_json,
vkDuck_dep,
corefoundation,
],
cpp_args: ['-DVKDUCK_NO_VMA_IMPLEMENTATION'],
include_directories: ['external'],
)