-
Notifications
You must be signed in to change notification settings - Fork 11
/
meson.build
89 lines (82 loc) · 3.65 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
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
project('dagger', 'c', 'cpp', default_options : ['cpp_std=c++17' ])
deps = [
dependency('glfw3'),
dependency('fmt')
]
if (host_machine.system() == 'linux')
add_global_link_arguments([ '-lstdc++fs' ], language: 'cpp')
deps += [
dependency('tbb'),
meson.get_compiler('c').find_library('dl')
]
endif
includes = [
include_directories('source/dagger'),
include_directories('libs/sparse-map/include'),
include_directories('libs/entt/single_include'),
include_directories('libs/glm/include'),
include_directories('libs/glad/include'),
include_directories('libs/json/include'),
include_directories('libs/stb/include'),
include_directories('libs/spdlog/include'),
include_directories('libs/imgui/include'),
include_directories('libs/imgui/include/imgui'),
include_directories('libs/imgui/include/imgui/backends'),
include_directories('libs/spdlog/include'),
include_directories('libs/simpleini')
]
sources = [
'source/dagger/core/game/transforms.cpp',
'source/dagger/core/graphics/animation.cpp',
'source/dagger/core/graphics/animations.cpp',
'source/dagger/core/graphics/gui.cpp',
'source/dagger/core/graphics/shader.cpp',
'source/dagger/core/graphics/shaders.cpp',
'source/dagger/core/graphics/sprite_render.cpp',
'source/dagger/core/graphics/sprite.cpp',
'source/dagger/core/graphics/textures.cpp',
'source/dagger/core/graphics/text.cpp',
'source/dagger/core/graphics/tool_render.cpp',
'source/dagger/core/graphics/window.cpp',
'source/dagger/core/input/inputs.cpp',
'source/dagger/core/audio_linux.cpp',
'source/dagger/core/engine.cpp',
'source/dagger/core/game.cpp',
'source/dagger/gameplay/common/jiggle.cpp',
'source/dagger/gameplay/common/particles.cpp',
'source/dagger/gameplay/common/simple_collisions.cpp',
'source/dagger/gameplay/editor/editor_main.cpp',
'source/dagger/gameplay/ping_pong/ping_pong_main.cpp',
'source/dagger/gameplay/ping_pong/pingpong_ball.cpp',
'source/dagger/gameplay/ping_pong/pingpong_playerinput.cpp',
'source/dagger/gameplay/ping_pong/player_scores.cpp',
'source/dagger/gameplay/platformer/camera_focus.cpp',
'source/dagger/gameplay/platformer/parallax.cpp',
'source/dagger/gameplay/platformer/platformer_controller.cpp',
'source/dagger/gameplay/platformer/platformer_main.cpp',
'source/dagger/gameplay/platformer/character_controller_fsm.cpp',
'source/dagger/gameplay/racing/racing_car.cpp',
'source/dagger/gameplay/racing/racing_game_logic.cpp',
'source/dagger/gameplay/racing/racing_main.cpp',
'source/dagger/gameplay/racing/racing_player_car.cpp',
'source/dagger/gameplay/team_game/team_game_main.cpp',
'source/dagger/gameplay/tiles_example/tiles_example_main.cpp',
'source/dagger/tools/FileBrowser/imgui_demo.cpp',
'source/dagger/tools/FileBrowser/ImGuiFileBrowser.cpp',
'source/dagger/tools/console.cpp',
'source/dagger/tools/diagnostics.cpp',
'source/dagger/tools/ImCurveEdit.cpp',
'source/dagger/tools/ImGradient.cpp',
'source/dagger/tools/ImGuizmo.cpp',
'source/dagger/tools/ImSequencer.cpp',
'source/dagger/tools/plotvar.cpp',
'source/dagger/tools/toolmenu.cpp',
'source/dagger/main.cpp',
'libs/glad/include/glad/glad.c',
'libs/imgui/include/imgui/imgui.cpp',
'libs/imgui/include/imgui/imgui_widgets.cpp',
'libs/imgui/include/imgui/imgui_draw.cpp',
'libs/imgui/include/imgui/backends/imgui_impl_glfw.cpp',
'libs/imgui/include/imgui/backends/imgui_impl_opengl3.cpp'
]
executable('dagger', sources, dependencies : deps, include_directories : includes, cpp_args : '-DIMGUI_IMPL_OPENGL_LOADER_GLAD')