-
Notifications
You must be signed in to change notification settings - Fork 4
/
CMakeLists.txt
152 lines (137 loc) · 4.83 KB
/
CMakeLists.txt
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
cmake_minimum_required(VERSION 3.6)
set(CMAKE_CXX_STANDARD 20)
set(CMAKE_C_STANDARD 11)
include("PrimeAPI2/PrimeAPI.cmake")
project(prime-practice-native C CXX)
#include_directories(PrimeAPI/include)
include_directories(src/include)
include_directories(src)
include_directories(ext/imgui)
include_directories(ext/QRCode/src)
set(IMGUI_H_DEFINE [=[-DIMGUI_USER_CONFIG="\"pracc_imconfig.h\""]=])
set(QR_DEFINE "-DLOCK_VERSION=4")
#set(QR_DEFINE "")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${IMGUI_H_DEFINE} ${QR_DEFINE}")
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${IMGUI_H_DEFINE} ${QR_DEFINE}")
if(CMAKE_BUILD_TYPE STREQUAL "Debug")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -DDEBUG")
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -DDEBUG")
else()
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Os")
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Os")
endif()
message(${CMAKE_CXX_FLAGS})
set(SOURCE_FILES
src/include/PrimeAPI.h
src/include/rstl/string.h
src/include/rstl/rstl.h
src/include/rstl/vector.h
src/include/rstl/auto_ptr.h
src/include/rstl/list.h
src/include/dvd.h
src/include/types.h
src/include/os.h
src/include/utils.hpp
src/include/MathyTypes.hpp
src/include/prime/fnAddr.cpp
src/include/prime/CStateManager.hpp
src/include/prime/CMemoryCardSys.hpp
src/include/prime/CSimplePool.hpp
src/include/prime/CPauseScreen.hpp
src/include/prime/CFinalInput.hpp
src/include/prime/CSfxManager.hpp
src/include/prime/CTextGui.hpp
src/include/prime/CColor.hpp
src/include/prime/CGraphics.hpp
src/include/prime/CGameGlobalObjects.hpp
src/include/prime/CHealthInfo.hpp
src/include/prime/CMemory.hpp
src/include/prime/CPlayerGun.hpp
src/include/prime/CPlayerState.hpp
src/include/prime/CWorld.hpp
src/include/prime/CPhysicsActor.hpp
src/include/prime/CPhysicsState.hpp
src/include/prime/CPlayer.hpp
src/include/prime/CWorldTransManager.hpp
src/include/prime/CMain.hpp
src/include/prime/CMainFlow.hpp
src/include/prime/CArchitectureMessage.hpp
src/include/prime/CMFGame.hpp
src/include/prime/CIOWinManager.hpp
src/include/prime/CGameAllocator.hpp
src/include/prime/CDvdFile.hpp
src/include/prime/CIOWin.hpp
src/include/prime/CObjectList.hpp
src/include/prime/CActor.hpp
src/include/prime/CScriptTimer.hpp
src/include/prime/CScriptTrigger.hpp
src/include/prime/CScriptDock.hpp
src/include/prime/CEntity.hpp
src/include/prime/CFontEndUI.hpp
src/include/prime/CArchitectureQueue.hpp
src/include/prime/CScriptRelay.hpp
src/include/prime/CScriptDoor.hpp
src/include/prime/CScriptCameraHint.hpp
src/include/prime/CCameraBobber.hpp
src/include/prime/CCameraManager.hpp
src/include/prime/CGameCamera.hpp
src/include/prime/CFirstPersonCamera.hpp
src/include/prime/CBallCamera.hpp
src/include/prime/CResFactory.hpp
src/include/prime/CAutoMapper.hpp
src/include/prime/CInGameGuiManager.hpp
src/include/prime/CGameArchitectureSupport.hpp
src/include/prime/CRandom16.hpp
src/include/STriggerRenderConfig.hpp
src/include/NewPauseScreen.hpp
src/include/GetField.hpp
src/include/settings.hpp
src/include/ImHelpers.hpp
src/include/GX.hpp
ext/imgui/imgui.cpp
# ext/imgui/imgui_demo.cpp
ext/imgui/imgui_draw.cpp
ext/imgui/imgui_tables.cpp
ext/imgui/imgui_widgets.cpp
# ext/imgui/imgui_demo.cpp
ext/imgui/imgui.h
ext/imgui/imgui_internal.h
# imgui/imgui_draw.cpp
ext/QRCode/src/qrcode.c
src/include/pracc_imconfig.h
src/CrashAssert.h
src/CrashAssert.cpp
src/libc/printf.h
src/libc/printf.c
src/libc/sscanf.c
src/version.h
src/new.cpp
src/NewPauseScreen.cpp
src/duk_mem.h
src/duk_mem.cpp
src/prime-practice.cpp
src/settings.cpp
src/font_atlas.hpp
src/ImGuiEngine.cpp
src/ImGuiEngine.hpp
src/libc/libc.c
src/UI/WarpMenu.h
src/UI/WarpMenu.cpp
src/UI/PlayerMenu.hpp
src/UI/PlayerMenu.cpp
src/UI/InventoryMenu.hpp
src/UI/InventoryMenu.cpp
src/UI/MonitorWindow.hpp
src/UI/MonitorWindow.cpp
src/UI/SettingsMenu.cpp
src/UI/SettingsMenu.hpp
src/UI/BombJumping.hpp
src/UI/BombJumping.cpp
src/UI/RoomMenu.cpp
src/UI/RoomMenu.hpp
src/UI/QR.cpp
src/UI/QR.hpp
src/world/WorldRenderer.cpp
src/world/WorldRenderer.hpp
)
add_prime_binary(prime-practice src/prime-practice.lst default.dol ${SOURCE_FILES})