-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathinstall2.bat
executable file
·185 lines (161 loc) · 3.72 KB
/
install2.bat
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
@echo off
call :subModDown
call :install_SDL
call :setup_imgui
call :setup_dataParser
call :setup_dir
call :copy
EXIT /B
:: Functions ::
:subModDown
echo Downloading submodules
git submodule update --init --recursive
git pull --recurse-submodules
echo .
EXIT /B
:install_SDL
echo Installing SDL
cd thirdparty/SDL/include
mkdir SDL2
xcopy . SDL2
cd ../VisualC/SDL
:: msbuild /P:Configuration=Release /p:Platform=x64 SDL.vcxproj
:: cd x64/Release/
:: copy SDL2.lib "../../../../../../SDL2.lib"
:: copy SDL2.dll "../../../../../../SDL2.dll"
:: cd ../../../SDLmain/
:: msbuild /P:Configuration=Release /p:Platform=x64 SDLmain.vcxproj
:: cd x64/Release/
:: copy SDL2main.lib "../../../../../../SDL2main.lib"
:: Return to root
cd ../../../../
echo %CD%
echo .
EXIT /B
:setup_imgui
echo Setting up imgui
cd thirdparty/imgui/
cd backends/
copy imgui_impl_sdl.cpp "../imgui_impl_sdl.cpp"
copy imgui_impl_sdl.h "../imgui_impl_sdl.h"
copy imgui_impl_vulkan.cpp "../imgui_impl_vulkan.cpp"
copy imgui_impl_vulkan.h "../imgui_impl_vulkan.h"
cd ..
Rmdir /S /q backends
Rmdir /S /q examples
Rmdir /S /q docs
Rmdir /S /q misc
:: Return to root
cd ../..
echo %CD%
echo .
EXIT /B
:setup_dataParser
echo Setting up data parser
cd thirdparty/cpp-data-parsing/src
del main.cpp
:: Return to root
cd ../../../
echo .
EXIT /B
:setup_dir
echo Set up dir
mkdir include
cd thirdparty
for /d %%d in (*.*) do call :create_dir %%d
cd ..
echo .
EXIT /B
:create_dir
echo create dir %*
cd ../include
mkdir %*
cd ../thirdparty
EXIT /B
:other_thing
cd ../thirdparty
cd SDL/include
xcopy "*.h" "../../../include/SDL2/" /sy
cd ../../stb
xcopy "*.h" "../../include/stb/" /sy
cd ../cpp-data-parsing/src/
xcopy "*.h" "../../../include/cpp-data-parsing/" /sy
cd ../../imgui
xcopy "*.h" "../../include/imgui/" /sy
cd ../rang/include
xcopy "*.hpp" "../../../include/rang/" /sy
cd ../../glm/glm
xcopy "*.h" "../../../include/glm/" /sy
xcopy "*.hpp" "../../../include/glm/" /sy
xcopy "*.inl" "../../../include/glm/" /sy
cd ../../tinyobjloader
xcopy "*.h" "../../include/tinyobjloader/" /sy
cd ../implot
xcopy "*.h" "../../include/imgui/" /sy
xcopy "*.h" "../imgui/" /sy
xcopy "*.cpp" "../imgui/" /sy
EXIT /B
:: Copy stuf ::
:copy
cd thirdparty
call :copy_SDL
call :copy_stb
call :copy_cpp-data-parsing
call :copy_imgui
call :copy_rang
call :copy_glm
call :copy_tinyobjloader
call :copy_implot
call :copy_rapidxml
EXIT /B
:copy_SDL
cd SDL
mkdir include
cd include
xcopy "*.h" "../../../include/SDL2/" /sy
cd ../..
EXIT /B
:copy_stb
cd stb
xcopy "*.h" "../../include/stb/" /sy
cd ..
EXIT /B
:copy_cpp-data-parsing
cd cpp-data-parsing/src
xcopy "*.h" "../../../include/cpp-data-parsing/" /sy
cd ../..
EXIT /B
:copy_imgui
cd imgui
xcopy "*.h" "../../include/imgui/" /sy
cd ..
EXIT /B
:copy_rang
cd rang/include
xcopy "*.hpp" "../../../include/rang/" /sy
cd ../..
EXIT /B
:copy_glm
cd glm/glm
xcopy "*.h" "../../../include/glm/" /sy
xcopy "*.hpp" "../../../include/glm/" /sy
xcopy "*.inl" "../../../include/glm/" /sy
cd ../..
EXIT /B
:copy_tinyobjloader
cd tinyobjloader
xcopy "*.h" "../../include/tinyobjloader/" /sy
cd ..
EXIT /B
:copy_implot
cd implot
xcopy "*.h" "../../include/imgui/" /sy
xcopy "*.h" "../imgui/" /sy
xcopy "*.cpp" "../imgui/" /sy
cd ..
EXIT /B
:copy_rapidxml
cd rapidxml
xcopy "*.hpp" "../../include/rapidxml/" /sya
cd ..
EXIT /B