-
Notifications
You must be signed in to change notification settings - Fork 17
/
CMakeSources.cmake
282 lines (279 loc) · 11.9 KB
/
CMakeSources.cmake
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
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
# sources, headers
set(LSTGX_SRC_ROOT ${CMAKE_CURRENT_SOURCE_DIR}/frameworks)
set(GAME_HEADER
${LSTGX_SRC_ROOT}/Classes/ArrayObjectPool.hpp
${LSTGX_SRC_ROOT}/Classes/CirularQueue.hpp
${LSTGX_SRC_ROOT}/Classes/ControllerHelper.h
${LSTGX_SRC_ROOT}/Classes/LabelPool.h
${LSTGX_SRC_ROOT}/Classes/MemPoolManager.h
${LSTGX_SRC_ROOT}/Classes/RandomWELL512.h
${LSTGX_SRC_ROOT}/Classes/WindowHelper.h
${LSTGX_SRC_ROOT}/Classes/XBinaryHelper.h
${LSTGX_SRC_ROOT}/Classes/XBuffer.h
${LSTGX_SRC_ROOT}/Classes/XFileDialog.h
${LSTGX_SRC_ROOT}/Classes/XFileUtils.h
${LSTGX_SRC_ROOT}/Classes/XGifRecoder.h
${LSTGX_SRC_ROOT}/Classes/XInfoware.h
${LSTGX_SRC_ROOT}/Classes/XLabel.h
${LSTGX_SRC_ROOT}/Classes/XLatex.h
${LSTGX_SRC_ROOT}/Classes/XLuaModuleRegistry.h
${LSTGX_SRC_ROOT}/Classes/XProfiler.h
${LSTGX_SRC_ROOT}/Classes/XRand.h
${LSTGX_SRC_ROOT}/Classes/XRefAdapter.h
${LSTGX_SRC_ROOT}/Classes/XStopWatch.h
${LSTGX_SRC_ROOT}/Classes/XStream.h
${LSTGX_SRC_ROOT}/Classes/XThreadPool.hpp
${LSTGX_SRC_ROOT}/Classes/XTriangles.h
${LSTGX_SRC_ROOT}/Classes/XTrianglesCommand.h
${LSTGX_SRC_ROOT}/Classes/XZipArchive.h
${LSTGX_SRC_ROOT}/LSTG/AppFrame.h
${LSTGX_SRC_ROOT}/LSTG/CollisionDetect.h
${LSTGX_SRC_ROOT}/LSTG/Global.h
${LSTGX_SRC_ROOT}/LSTG/InputManager.h
${LSTGX_SRC_ROOT}/LSTG/LogSystem.h
${LSTGX_SRC_ROOT}/LSTG/ObjectPool.hpp
${LSTGX_SRC_ROOT}/LSTG/Renderer.h
${LSTGX_SRC_ROOT}/LSTG/RenderMode.h
${LSTGX_SRC_ROOT}/LSTG/ResourceMgr.h
${LSTGX_SRC_ROOT}/LSTG/Component/ComponentData.h
${LSTGX_SRC_ROOT}/LSTG/Component/ComponentDataAni.h
${LSTGX_SRC_ROOT}/LSTG/Component/ComponentDataBlend.h
${LSTGX_SRC_ROOT}/LSTG/Component/ComponentDataColli.h
${LSTGX_SRC_ROOT}/LSTG/Component/ComponentDataLabel.h
${LSTGX_SRC_ROOT}/LSTG/Component/ComponentDataLight.h
${LSTGX_SRC_ROOT}/LSTG/Component/ComponentDataParticle.h
${LSTGX_SRC_ROOT}/LSTG/Component/ComponentDataTrasform.h
${LSTGX_SRC_ROOT}/LSTG/Component/ComponentDataVertex.h
${LSTGX_SRC_ROOT}/LSTG/Component/ComponentManager.h
${LSTGX_SRC_ROOT}/LSTG/LuaWrapper/LuaWrapper.h
${LSTGX_SRC_ROOT}/LSTG/LuaWrapper/LWBuiltInFunction.h
${LSTGX_SRC_ROOT}/LSTG/LuaWrapper/LWColor.h
${LSTGX_SRC_ROOT}/LSTG/LuaWrapper/LWProfiler.h
${LSTGX_SRC_ROOT}/LSTG/LuaWrapper/LWRandomizer.h
${LSTGX_SRC_ROOT}/LSTG/LuaWrapper/LW_Frame.h
${LSTGX_SRC_ROOT}/LSTG/LuaWrapper/LW_Graph.h
${LSTGX_SRC_ROOT}/LSTG/LuaWrapper/LW_Input.h
${LSTGX_SRC_ROOT}/LSTG/LuaWrapper/LW_Math.h
${LSTGX_SRC_ROOT}/LSTG/LuaWrapper/LW_Object.h
${LSTGX_SRC_ROOT}/LSTG/LuaWrapper/LW_Render.h
${LSTGX_SRC_ROOT}/LSTG/LuaWrapper/LW_Text.h
${LSTGX_SRC_ROOT}/LSTG/Object/GameClass.h
${LSTGX_SRC_ROOT}/LSTG/Object/GameObject.h
${LSTGX_SRC_ROOT}/LSTG/Object/GameObjectBentLaser.h
${LSTGX_SRC_ROOT}/LSTG/Object/GameObjectManager.h
${LSTGX_SRC_ROOT}/LSTG/Object/GameObjectPool.h
${LSTGX_SRC_ROOT}/LSTG/Object/GameObjectPropertyHash.h
${LSTGX_SRC_ROOT}/LSTG/Object/GameObjectSet.h
${LSTGX_SRC_ROOT}/LSTG/Resource/GameResources.h
${LSTGX_SRC_ROOT}/LSTG/Resource/ResAnimation.h
${LSTGX_SRC_ROOT}/LSTG/Resource/ResAudio.h
${LSTGX_SRC_ROOT}/LSTG/Resource/ResBase.h
${LSTGX_SRC_ROOT}/LSTG/Resource/ResFont.h
${LSTGX_SRC_ROOT}/LSTG/Resource/ResFX.h
${LSTGX_SRC_ROOT}/LSTG/Resource/ResParticle.h
${LSTGX_SRC_ROOT}/LSTG/Resource/ResRenderTarget.h
${LSTGX_SRC_ROOT}/LSTG/Resource/ResSprite.h
${LSTGX_SRC_ROOT}/LSTG/Resource/ResTexture.h
${LSTGX_SRC_ROOT}/LSTG/Symbol/GameObjectSymbol.h
${LSTGX_SRC_ROOT}/LSTG/Symbol/GOSymbolBoolean.h
${LSTGX_SRC_ROOT}/LSTG/Symbol/GOSymbolNumber.h
${LSTGX_SRC_ROOT}/LSTG/Util/UtilColor.h
${LSTGX_SRC_ROOT}/LSTG/Util/UtilGLDefinition.h
${LSTGX_SRC_ROOT}/LSTG/Util/Utility.h
${LSTGX_SRC_ROOT}/LSTG/Util/UtilLua.h
${LSTGX_SRC_ROOT}/LSTG/Util/UtilLuaConversion.h
${LSTGX_SRC_ROOT}/LSTG/Util/UtilLuaRes.h
${LSTGX_SRC_ROOT}/LuaBindings/lua_BentLaser_auto.hpp
${LSTGX_SRC_ROOT}/LuaBindings/lua_Buffer_auto.hpp
${LSTGX_SRC_ROOT}/LuaBindings/lua_cc_configuration_auto.hpp
${LSTGX_SRC_ROOT}/LuaBindings/lua_cc_controller_auto.hpp
${LSTGX_SRC_ROOT}/LuaBindings/lua_cc_controller_manual.hpp
${LSTGX_SRC_ROOT}/LuaBindings/lua_cc_ext.hpp
${LSTGX_SRC_ROOT}/LuaBindings/lua_cc_fairygui_auto.hpp
${LSTGX_SRC_ROOT}/LuaBindings/lua_cc_fairygui_manual.hpp
${LSTGX_SRC_ROOT}/LuaBindings/lua_cc_fix.h
${LSTGX_SRC_ROOT}/LuaBindings/lua_FileDialog_auto.hpp
${LSTGX_SRC_ROOT}/LuaBindings/lua_Latex_auto.hpp
${LSTGX_SRC_ROOT}/LuaBindings/lua_LogSystem_auto.hpp
${LSTGX_SRC_ROOT}/LuaBindings/lua_ObjSym_auto.hpp
${LSTGX_SRC_ROOT}/LuaBindings/lua_Random_auto.hpp
${LSTGX_SRC_ROOT}/LuaBindings/lua_RenderMode_auto.hpp
${LSTGX_SRC_ROOT}/LuaBindings/lua_ResourceMgr_auto.hpp
${LSTGX_SRC_ROOT}/LuaBindings/lua_Resource_auto.hpp
${LSTGX_SRC_ROOT}/LuaBindings/lua_StopWatch_auto.hpp
${LSTGX_SRC_ROOT}/LuaBindings/lua_Stream_auto.hpp
${LSTGX_SRC_ROOT}/LuaBindings/lua_Triangles_auto.hpp
${LSTGX_SRC_ROOT}/LuaBindings/lua_WindowHelper_auto.hpp
${LSTGX_SRC_ROOT}/LuaBindings/lua_ZipArchive_auto.hpp
${LSTGX_SRC_ROOT}/LuaBindings/LuaBindings.h
)
set(GAME_SOURCE
${LSTGX_SRC_ROOT}/Classes/ControllerHelper.cpp
${LSTGX_SRC_ROOT}/Classes/LabelPool.cpp
${LSTGX_SRC_ROOT}/Classes/MemPoolManager.cpp
${LSTGX_SRC_ROOT}/Classes/RandomWELL512.cpp
${LSTGX_SRC_ROOT}/Classes/WindowHelper.cpp
${LSTGX_SRC_ROOT}/Classes/XBinaryHelper.cpp
${LSTGX_SRC_ROOT}/Classes/XBuffer.cpp
${LSTGX_SRC_ROOT}/Classes/XFileDialog.cpp
${LSTGX_SRC_ROOT}/Classes/XFileUtils.cpp
${LSTGX_SRC_ROOT}/Classes/XGifRecoder.cpp
${LSTGX_SRC_ROOT}/Classes/XInfoware.cpp
${LSTGX_SRC_ROOT}/Classes/XLabel.cpp
${LSTGX_SRC_ROOT}/Classes/XLatex.cpp
${LSTGX_SRC_ROOT}/Classes/XLuaModuleRegistry.cpp
${LSTGX_SRC_ROOT}/Classes/XProfiler.cpp
${LSTGX_SRC_ROOT}/Classes/XRand.cpp
${LSTGX_SRC_ROOT}/Classes/XRefAdapter.cpp
${LSTGX_SRC_ROOT}/Classes/XStopWatch.cpp
${LSTGX_SRC_ROOT}/Classes/XStream.cpp
${LSTGX_SRC_ROOT}/Classes/XTriangles.cpp
${LSTGX_SRC_ROOT}/Classes/XTrianglesCommand.cpp
${LSTGX_SRC_ROOT}/Classes/XZipArchive.cpp
${LSTGX_SRC_ROOT}/LSTG/AppFrame.cpp
${LSTGX_SRC_ROOT}/LSTG/CollisionDetect.cpp
${LSTGX_SRC_ROOT}/LSTG/InputManager.cpp
${LSTGX_SRC_ROOT}/LSTG/LogSystem.cpp
${LSTGX_SRC_ROOT}/LSTG/Renderer.cpp
${LSTGX_SRC_ROOT}/LSTG/RenderMode.cpp
${LSTGX_SRC_ROOT}/LSTG/ResourceMgr.cpp
${LSTGX_SRC_ROOT}/LSTG/Component/ComponentData.cpp
${LSTGX_SRC_ROOT}/LSTG/Component/ComponentDataAni.cpp
${LSTGX_SRC_ROOT}/LSTG/Component/ComponentDataBlend.cpp
${LSTGX_SRC_ROOT}/LSTG/Component/ComponentDataColli.cpp
${LSTGX_SRC_ROOT}/LSTG/Component/ComponentDataLabel.cpp
${LSTGX_SRC_ROOT}/LSTG/Component/ComponentDataLight.cpp
${LSTGX_SRC_ROOT}/LSTG/Component/ComponentDataParticle.cpp
${LSTGX_SRC_ROOT}/LSTG/Component/ComponentDataTrasform.cpp
${LSTGX_SRC_ROOT}/LSTG/Component/ComponentDataVertex.cpp
${LSTGX_SRC_ROOT}/LSTG/Component/ComponentManager.cpp
${LSTGX_SRC_ROOT}/LSTG/LuaWrapper/LuaWrapper.cpp
${LSTGX_SRC_ROOT}/LSTG/LuaWrapper/LWBuiltInFunction.cpp
${LSTGX_SRC_ROOT}/LSTG/LuaWrapper/LWColor.cpp
${LSTGX_SRC_ROOT}/LSTG/LuaWrapper/LWProfiler.cpp
${LSTGX_SRC_ROOT}/LSTG/LuaWrapper/LWRandomizer.cpp
${LSTGX_SRC_ROOT}/LSTG/LuaWrapper/LW_Frame.cpp
${LSTGX_SRC_ROOT}/LSTG/LuaWrapper/LW_Graph.cpp
${LSTGX_SRC_ROOT}/LSTG/LuaWrapper/LW_Input.cpp
${LSTGX_SRC_ROOT}/LSTG/LuaWrapper/LW_Math.cpp
${LSTGX_SRC_ROOT}/LSTG/LuaWrapper/LW_Object.cpp
${LSTGX_SRC_ROOT}/LSTG/LuaWrapper/LW_Render.cpp
${LSTGX_SRC_ROOT}/LSTG/LuaWrapper/LW_Text.cpp
${LSTGX_SRC_ROOT}/LSTG/Object/GameClass.cpp
${LSTGX_SRC_ROOT}/LSTG/Object/GameObject.cpp
${LSTGX_SRC_ROOT}/LSTG/Object/GameObjectBentLaser.cpp
${LSTGX_SRC_ROOT}/LSTG/Object/GameObjectManager.cpp
${LSTGX_SRC_ROOT}/LSTG/Object/GameObjectPool.cpp
${LSTGX_SRC_ROOT}/LSTG/Object/GameObjectPropertyHash.cpp
${LSTGX_SRC_ROOT}/LSTG/Object/GameObjectSet.cpp
${LSTGX_SRC_ROOT}/LSTG/Resource/ResAnimation.cpp
${LSTGX_SRC_ROOT}/LSTG/Resource/ResAudio.cpp
${LSTGX_SRC_ROOT}/LSTG/Resource/ResBase.cpp
${LSTGX_SRC_ROOT}/LSTG/Resource/ResFont.cpp
${LSTGX_SRC_ROOT}/LSTG/Resource/ResFX.cpp
${LSTGX_SRC_ROOT}/LSTG/Resource/ResParticle.cpp
${LSTGX_SRC_ROOT}/LSTG/Resource/ResRenderTarget.cpp
${LSTGX_SRC_ROOT}/LSTG/Resource/ResSprite.cpp
${LSTGX_SRC_ROOT}/LSTG/Resource/ResTexture.cpp
${LSTGX_SRC_ROOT}/LSTG/Symbol/GameObjectSymbol.cpp
${LSTGX_SRC_ROOT}/LSTG/Symbol/GOSymbolBoolean.cpp
${LSTGX_SRC_ROOT}/LSTG/Symbol/GOSymbolNumber.cpp
${LSTGX_SRC_ROOT}/LSTG/Util/UtilColor.cpp
${LSTGX_SRC_ROOT}/LSTG/Util/UtilGLDefinition.cpp
${LSTGX_SRC_ROOT}/LSTG/Util/Utility.cpp
${LSTGX_SRC_ROOT}/LSTG/Util/UtilLua.cpp
${LSTGX_SRC_ROOT}/LSTG/Util/UtilLuaConversion.cpp
${LSTGX_SRC_ROOT}/LSTG/Util/UtilLuaRes.cpp
${LSTGX_SRC_ROOT}/LSTG/Util/UtilShader.cpp
${LSTGX_SRC_ROOT}/LuaBindings/lua_BentLaser_auto.cpp
${LSTGX_SRC_ROOT}/LuaBindings/lua_Buffer_auto.cpp
${LSTGX_SRC_ROOT}/LuaBindings/lua_cc_configuration_auto.cpp
${LSTGX_SRC_ROOT}/LuaBindings/lua_cc_controller_auto.cpp
${LSTGX_SRC_ROOT}/LuaBindings/lua_cc_controller_manual.cpp
${LSTGX_SRC_ROOT}/LuaBindings/lua_cc_ext.cpp
${LSTGX_SRC_ROOT}/LuaBindings/lua_cc_fairygui_auto.cpp
${LSTGX_SRC_ROOT}/LuaBindings/lua_cc_fairygui_manual.cpp
${LSTGX_SRC_ROOT}/LuaBindings/lua_cc_fix.cpp
${LSTGX_SRC_ROOT}/LuaBindings/lua_FileDialog_auto.cpp
${LSTGX_SRC_ROOT}/LuaBindings/lua_Latex_auto.cpp
${LSTGX_SRC_ROOT}/LuaBindings/lua_LogSystem_auto.cpp
${LSTGX_SRC_ROOT}/LuaBindings/lua_ObjSym_auto.cpp
${LSTGX_SRC_ROOT}/LuaBindings/lua_Random_auto.cpp
${LSTGX_SRC_ROOT}/LuaBindings/lua_RenderMode_auto.cpp
${LSTGX_SRC_ROOT}/LuaBindings/lua_ResourceMgr_auto.cpp
${LSTGX_SRC_ROOT}/LuaBindings/lua_Resource_auto.cpp
${LSTGX_SRC_ROOT}/LuaBindings/lua_StopWatch_auto.cpp
${LSTGX_SRC_ROOT}/LuaBindings/lua_Stream_auto.cpp
${LSTGX_SRC_ROOT}/LuaBindings/lua_Triangles_auto.cpp
${LSTGX_SRC_ROOT}/LuaBindings/lua_WindowHelper_auto.cpp
${LSTGX_SRC_ROOT}/LuaBindings/lua_ZipArchive_auto.cpp
${LSTGX_SRC_ROOT}/LuaBindings/LuaBindings.cpp
)
# sources need to compile info, include dirs and source files
set(GAME_INCLUDE
${LSTGX_SRC_ROOT}
${LSTGX_SRC_ROOT}/Audio
${LSTGX_SRC_ROOT}/Classes
${LSTGX_SRC_ROOT}/imgui
${LSTGX_SRC_ROOT}/Live2D
${LSTGX_SRC_ROOT}/LSTG
${LSTGX_SRC_ROOT}/LuaBindings
${LSTGX_SRC_ROOT}/Math
${LSTGX_SRC_ROOT}/Video
)
if(NOT LSTGX_NO_FAIRY_GUI)
list(APPEND GAME_HEADER
${LSTGX_SRC_ROOT}/LuaBindings/lua_cc_fairygui_auto.hpp
${LSTGX_SRC_ROOT}/LuaBindings/lua_cc_fairygui_manual.hpp
)
list(APPEND GAME_SOURCE
${LSTGX_SRC_ROOT}/LuaBindings/lua_cc_fairygui_auto.cpp
${LSTGX_SRC_ROOT}/LuaBindings/lua_cc_fairygui_manual.cpp
)
endif()
if(ANDROID)
list(APPEND GAME_SOURCE ${RUNTIME_SRC_ROOT}/proj.android/app/jni/hellolua/main.cpp)
elseif(LINUX)
list(APPEND GAME_SOURCE ${RUNTIME_SRC_ROOT}/proj.linux/main.cpp)
elseif(IOS)
set(APP_UI_RES
${RUNTIME_SRC_ROOT}/proj.ios_mac/ios/LaunchScreen.storyboard
${RUNTIME_SRC_ROOT}/proj.ios_mac/ios/LaunchScreenBackground.png
${RUNTIME_SRC_ROOT}/proj.ios_mac/ios/Images.xcassets
)
list(APPEND GAME_HEADER
${RUNTIME_SRC_ROOT}/proj.ios_mac/ios/AppController.h
${RUNTIME_SRC_ROOT}/proj.ios_mac/ios/RootViewController.h
)
list(APPEND GAME_SOURCE
${RUNTIME_SRC_ROOT}/proj.ios_mac/ios/main.m
${RUNTIME_SRC_ROOT}/proj.ios_mac/ios/AppController.mm
${RUNTIME_SRC_ROOT}/proj.ios_mac/ios/RootViewController.mm
${RUNTIME_SRC_ROOT}/proj.ios_mac/ios/Prefix.pch
${RUNTIME_SRC_ROOT}/proj.ios_mac/ios/build-cfg.json
${APP_UI_RES}
)
elseif(MACOSX)
set(APP_UI_RES
${RUNTIME_SRC_ROOT}/proj.ios_mac/mac/Icon.icns
${RUNTIME_SRC_ROOT}/proj.ios_mac/mac/Info.plist
)
list(APPEND GAME_SOURCE
${RUNTIME_SRC_ROOT}/proj.ios_mac/mac/main.mm
${RUNTIME_SRC_ROOT}/proj.ios_mac/mac/ConsoleWindowController.m
${RUNTIME_SRC_ROOT}/proj.ios_mac/mac/Prefix.pch
${APP_UI_RES}
)
elseif(WINDOWS)
list(APPEND GAME_HEADER
${RUNTIME_SRC_ROOT}/proj.win32/main.h
${RUNTIME_SRC_ROOT}/proj.win32/resource.h
${RUNTIME_SRC_ROOT}/proj.win32/WindowHelperWin32.h
)
list(APPEND GAME_SOURCE ${cc_common_res})
list(APPEND GAME_SOURCE
${RUNTIME_SRC_ROOT}/proj.win32/main.cpp
${RUNTIME_SRC_ROOT}/proj.win32/game.rc
${RUNTIME_SRC_ROOT}/proj.win32/WindowHelperWin32.cpp
)
endif()