-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbuild_local.bat
executable file
·84 lines (68 loc) · 3.51 KB
/
build_local.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
rem RUN THIS COMMAND TO SETUP ANDROID SDK TO BUILD RCBASIC (Don't need to uncomment this because it only needs to be ran once):
rem sdkmanager --sdk_root=%ANDROID_SDK_ROOT% "platform-tools" "platforms;android-28" "build-tools;28.0.3" "system-images;android-28;google_apis;x86_64" "ndk;21.4.7075529"
rem 32-BIT AND 64-BIT MINGW COMPILERS
set GCC_PATH=C:\codeblocks-17.12mingw-nosetup\MinGW\bin
set GCC_PATH_64=C:\mingw-w64\x86_64-8.1.0-posix-seh-rt_v6-rev0\mingw64\bin
rem THE ROOT DIRECTORY WHERE WXWIDGETS IS LOCATED
set WX_HOME=C:\dev_libs\wx
rem THE MINGW VERSION THAT WXWIDGETS WAS BUILT WITH
set wx_gcc_version=gcc510TDM
rem THE ROOT DIRECTORIES FOR OGG, VORBIS, AND THEORA
set OGG_HOME=C:\dev_libs\ogg
set VORBIS_HOME=C:\dev_libs\vorbis
set THEORA_HOME=C:\dev_libs\theora
rem THE ROOT DIRECTORIES FOR THE SDL LIBRARIES
set SDL_HOME=C:\dev_libs\SDL2-2.0.22
set SDL_IMAGE_HOME=C:\dev_libs\SDL2_image-2.0.5
set SDL_MIXER_HOME=C:\dev_libs\SDL2_mixer-2.0.4
set SDL_NET_HOME=C:\dev_libs\SDL2_net-2.0.1
set SDL_TTF_HOME=C:\dev_libs\SDL2_ttf-2.0.15
set PATH=%GCC_PATH%;%TMP_PATH%
rem NOTE: SDL_GFX IS ALSO NEEDED BUT YOU ONLY NEED TO PUT ALL THE SOURCE FILES IN THE SDL2 INCLUDE FOLDER
rem YOU SHOULD NOT NEED TO CHANGE ANY OF THE LINES BELOW
set INCLUDE_PATH=-I%WX_HOME%\lib\%wx_gcc_version%_dll\mswu ^
-I%OGG_HOME%\x86\include ^
-I%THEORA_HOME%\x86\include ^
-I%VORBIS_HOME%\x86\include ^
-I%WX_HOME%\include ^
-I%SDL_HOME%\i686-w64-mingw32\include ^
-I%SDL_IMAGE_HOME%\i686-w64-mingw32\include ^
-I%SDL_MIXER_HOME%\i686-w64-mingw32\include ^
-I%SDL_NET_HOME%\i686-w64-mingw32\include ^
-I%SDL_TTF_HOME%\i686-w64-mingw32\include ^
-I%SDL_HOME%\i686-w64-mingw32\include\SDL2
set LIB_PATH=-L%WX_HOME%\lib\%wx_gcc_version%_dll ^
-L%OGG_HOME%\x86\lib ^
-L%THEORA_HOME%\x86\lib ^
-L%VORBIS_HOME%\x86\lib ^
-L%SDL_HOME%\i686-w64-mingw32\lib ^
-L%SDL_IMAGE_HOME%\i686-w64-mingw32\lib ^
-L%SDL_MIXER_HOME%\i686-w64-mingw32\lib ^
-L%SDL_NET_HOME%\i686-w64-mingw32\lib ^
-L%SDL_TTF_HOME%\i686-w64-mingw32\lib
set INCLUDE_64_PATH=-I%OGG_HOME%\x64\include ^
-I%THEORA_HOME%\x64\include ^
-I%VORBIS_HOME%\x64\include ^
-I%SDL_HOME%\x86_64-w64-mingw32\include ^
-I%SDL_IMAGE_HOME%\x86_64-w64-mingw32\include ^
-I%SDL_MIXER_HOME%\x86_64-w64-mingw32\include ^
-I%SDL_NET_HOME%\x86_64-w64-mingw32\include ^
-I%SDL_TTF_HOME%\x86_64-w64-mingw32\include ^
-I%SDL_HOME%\x86_64-w64-mingw32\include\SDL2
set LIB_64_PATH=-L%OGG_HOME%\x64\lib ^
-L%THEORA_HOME%\x64\lib ^
-L%VORBIS_HOME%\x64\lib ^
-L%SDL_HOME%\x86_64-w64-mingw32\lib ^
-L%SDL_IMAGE_HOME%\x86_64-w64-mingw32\lib ^
-L%SDL_MIXER_HOME%\x86_64-w64-mingw32\lib ^
-L%SDL_NET_HOME%\x86_64-w64-mingw32\lib ^
-L%SDL_TTF_HOME%\x86_64-w64-mingw32\lib
pushd %~dp0
if not exist obj mkdir obj
if not exist obj\Release mkdir obj\Release
if not exist obj\Release64 mkdir obj\Release64
if not exist bin mkdir bin
if not exist bin\Release mkdir bin\Release
if not exist bin\Release64 mkdir bin\Release64
call build.bat
popd