-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathCopyLibs2Public.bat
97 lines (76 loc) · 4.02 KB
/
CopyLibs2Public.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
@echo on
set OLDDIR=%CD%
cd /d %~dp0
:begin
IF "%~2"=="" set GPAC_PUBLIC=gpac_public
IF not "%~2"=="" set GPAC_PUBLIC=%~2
IF "%~1"=="" GOTO MissingParameters
IF "%~1"=="all" GOTO win32
IF "%~1"=="x86" GOTO win32
IF "%~1"=="x64" GOTO win64
goto MissingParameters
:win32
echo Copying x86 extralibs
if not exist ..\%GPAC_PUBLIC%\extra_lib\lib\win32\debug\ mkdir ..\%GPAC_PUBLIC%\extra_lib\lib\win32\debug\
if not exist ..\%GPAC_PUBLIC%\extra_lib\lib\win32\release\ mkdir ..\%GPAC_PUBLIC%\extra_lib\lib\win32\release\
if not exist ..\%GPAC_PUBLIC%\bin\win32\debug\ mkdir ..\%GPAC_PUBLIC%\bin\win32\debug\
if not exist ..\%GPAC_PUBLIC%\bin\win32\release\ mkdir ..\%GPAC_PUBLIC%\bin\win32\release\
copy lib\win32\release\*eay* lib\win32\debug\
copy lib\win32\release\av* lib\win32\debug\
copy lib\win32\release\swscale* lib\win32\debug\
copy lib\win32\debug\*.lib ..\%GPAC_PUBLIC%\extra_lib\lib\win32\debug\
copy lib\win32\release\*.lib ..\%GPAC_PUBLIC%\extra_lib\lib\win32\release\
copy lib\win32\debug\*.dll ..\%GPAC_PUBLIC%\bin\win32\debug\
copy lib\win32\release\*.dll ..\%GPAC_PUBLIC%\bin\win32\release\
copy lib\win32\release\*.manifest ..\%GPAC_PUBLIC%\bin\win32\release\
copy lib\win32\debug\*.plg ..\%GPAC_PUBLIC%\bin\win32\debug\
copy lib\win32\release\*.plg ..\%GPAC_PUBLIC%\bin\win32\release\
copy build\msvc\2015\vc_redist.x86.exe ..\%GPAC_PUBLIC%\packagers\win32_64\nsis\
:includes
if not exist ..\%GPAC_PUBLIC%\extra_lib\include\ mkdir ..\%GPAC_PUBLIC%\extra_lib\include\
xcopy /e /k /h /i /Y include\ ..\%GPAC_PUBLIC%\extra_lib\include\
:libcaption
if not exist ..\%GPAC_PUBLIC%\extra_lib\include\caption\ mkdir ..\%GPAC_PUBLIC%\extra_lib\include\caption\
xcopy /e /k /h /i /Y libcaption\caption\ ..\%GPAC_PUBLIC%\extra_lib\include\caption
:SDL_copy
if not exist ..\%GPAC_PUBLIC%\extra_lib\include\SDL\ mkdir ..\%GPAC_PUBLIC%\extra_lib\include\SDL\
copy SDL2-VC\include\ ..\%GPAC_PUBLIC%\extra_lib\include\SDL\
copy SDL2-VC\lib\x86\*.lib ..\%GPAC_PUBLIC%\extra_lib\lib\win32\debug\
copy SDL2-VC\lib\x86\*.lib ..\%GPAC_PUBLIC%\extra_lib\lib\win32\release\
copy SDL2-VC\lib\x86\*.dll ..\%GPAC_PUBLIC%\bin\win32\debug\
copy SDL2-VC\lib\x86\*.dll ..\%GPAC_PUBLIC%\bin\win32\release\
IF "%~1"=="all" GOTO win64
GOTO done
:win64
echo Copying x64 extralibs
if not exist ..\%GPAC_PUBLIC%\extra_lib\lib\x64\debug\ mkdir ..\%GPAC_PUBLIC%\extra_lib\lib\x64\debug\
if not exist ..\%GPAC_PUBLIC%\extra_lib\lib\x64\release\ mkdir ..\%GPAC_PUBLIC%\extra_lib\lib\x64\release\
if not exist ..\%GPAC_PUBLIC%\bin\x64\debug\ mkdir ..\%GPAC_PUBLIC%\bin\win32\debug\
if not exist ..\%GPAC_PUBLIC%\bin\x64\release\ mkdir ..\%GPAC_PUBLIC%\bin\x64\release\
copy lib\x64\release\*eay* lib\x64\debug\
copy lib\x64\release\av* lib\x64\debug\
copy lib\x64\release\swscale* lib\x64\debug\
copy lib\x64\debug\*.lib ..\%GPAC_PUBLIC%\extra_lib\lib\x64\debug\
copy lib\x64\release\*.lib ..\%GPAC_PUBLIC%\extra_lib\lib\x64\release\
copy lib\x64\debug\*.dll ..\%GPAC_PUBLIC%\bin\x64\debug\
copy lib\x64\release\*.dll ..\%GPAC_PUBLIC%\bin\x64\release\
copy lib\x64\release\*.manifest ..\%GPAC_PUBLIC%\bin\x64\release\
copy build\msvc\2015\vc_redist.x64.exe ..\%GPAC_PUBLIC%\packagers\win32_64\nsis\
:includes
if not exist ..\%GPAC_PUBLIC%\extra_lib\include\ mkdir ..\%GPAC_PUBLIC%\extra_lib\include\
xcopy /e /k /h /i /Y include\ ..\%GPAC_PUBLIC%\extra_lib\include\
:libcaption
if not exist ..\%GPAC_PUBLIC%\extra_lib\include\caption\ mkdir ..\%GPAC_PUBLIC%\extra_lib\include\caption\
xcopy /e /k /h /i /Y libcaption\caption\ ..\%GPAC_PUBLIC%\extra_lib\include\caption
:SDL_copy
if not exist ..\%GPAC_PUBLIC%\extra_lib\include\SDL\ mkdir ..\%GPAC_PUBLIC%\extra_lib\include\SDL\
copy SDL2-VC\include\ ..\%GPAC_PUBLIC%\extra_lib\include\SDL\
copy SDL2-VC\lib\x64\*.lib ..\%GPAC_PUBLIC%\extra_lib\lib\x64\debug\
copy SDL2-VC\lib\x64\*.lib ..\%GPAC_PUBLIC%\extra_lib\lib\x64\release\
copy SDL2-VC\lib\x64\*.dll ..\%GPAC_PUBLIC%\bin\x64\debug\
copy SDL2-VC\lib\x64\*.dll ..\%GPAC_PUBLIC%\bin\x64\release\
GOTO done
:MissingParameters
Echo You must specified target architecture : either x86, x64 or all
:done
cd /d %OLDDIR%