-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathbuild.bat
More file actions
62 lines (51 loc) · 1.29 KB
/
Copy pathbuild.bat
File metadata and controls
62 lines (51 loc) · 1.29 KB
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
@echo off
:: uMRC Build batch file for MinGW on Windows
::
:: Use with MinGW32 and/or MinGW64
::
:: Point path_to_x64_gcc and path_to_x86_gcc
:: to your actual gcc.exe paths.
::
::
set path_to_x86_gcc=C:\mingw32\bin\gcc.exe
set path_to_x64_gcc=C:\mingw64\bin\gcc.exe
::
::
set arc=x86
set gcc=%path_to_x86_gcc%
if not "%1"=="" (
set arc=%1
set gcc=%path_to_x64_gcc%
)
if not exist "bin" (
md bin
)
if not exist "bin\screens" (
md bin\screens
)
if not exist "bin\themes" (
md bin\themes
)
echo Building setup...
cd setup
%gcc% setup.c ..\common\common.c -o setup.exe -fcommon
copy setup.exe ..\bin
cd ..
echo Building umrc-bridge...
cd umrc-bridge
%gcc% bridge.c ..\common\common.c -I ..\lib\include -L ..\lib\%arc% -o umrc-bridge.exe -lssl -lcrypto -lcrypt32 -lWs2_32 -lMswsock -lAdvApi32 -fcommon
copy umrc-bridge.exe ..\bin
cd ..
echo Building umrc-client...
cd umrc-client
%gcc% main.c func.c ..\common\common.c -o umrc-client -L ..\lib\odoors\win-%arc% -lODoorW -lWs2_32 -lMswsock -lAdvApi32 -fcommon
copy umrc-client.exe ..\bin
cd ..
echo Copying assets...
copy lib\odoors\win-%arc%\*.dll bin /Y
copy lib\%arc%\*.dll bin /Y
copy assets\win\* bin /Y
copy assets\screens\* bin\screens /Y
copy assets\themes\* bin\themes /Y
echo All jobs done. Check the bin subfolder for the output files.
pause