-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathfirst_time.bat
54 lines (42 loc) · 2.21 KB
/
first_time.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
call "%VS110COMNTOOLS%"\vsvars32.bat
set QUICKSLINGPATH=%~dp0
if not exist "%QUICKSLINGPATH%\cef_binary\CURRENT_VERSION_3.2526.1347.gcf20046" (
GOTO dostuff
)
if not exist "%QUICKSLINGPATH%\cef_binary\Debug\libcef.dll" (
GOTO dostuff
)
if not exist "%QUICKSLINGPATH%\cef_binary\build\libcef_dll\Debug\libcef_dll_wrapper.lib" (
GOTO compilestuff
)
if not exist "%QUICKSLINGPATH%\cef_binary\build\libcef_dll\Release\libcef_dll_wrapper.lib" (
GOTO compilestuff
)
GOTO END
:dostuff
if exist "%QUICKSLINGPATH%\cef_binary\CURRENT_VERSION_*" (
del /F /S "%QUICKSLINGPATH%\cef_binary\CURRENT_VERSION_*"
)
if not exist "%QUICKSLINGPATH%\archives" (
mkdir "%QUICKSLINGPATH%\archives"
)
if not exist "%QUICKSLINGPATH%\archives\cef_binary_3.2526.1347.gcf20046_windows32.7z" (
"%QUICKSLINGPATH%\tools\wget" https://storage.googleapis.com/quicksling/build/cef_binary_3.2526.1347.gcf20046_windows32.7z -O "%QUICKSLINGPATH%archives\cef_binary_3.2526.1347.gcf20046_windows32.7z"
)
"%QUICKSLINGPATH%\tools\7za.exe" x -y -o"%QUICKSLINGPATH%" "%QUICKSLINGPATH%\archives\cef_binary_3.2526.1347.gcf20046_windows32.7z" "cef_binary_3.2526.1347.gcf20046_windows32\Debug" "cef_binary_3.2526.1347.gcf20046_windows32\Release"
robocopy "%QUICKSLINGPATH%\cef_binary_3.2526.1347.gcf20046_windows32\Debug" "%QUICKSLINGPATH%\cef_binary\Debug" /E /IS /MOVE
robocopy "%QUICKSLINGPATH%\cef_binary_3.2526.1347.gcf20046_windows32\Release" "%QUICKSLINGPATH%\cef_binary\Release" /E /IS /MOVE
rmdir /S /Q "%QUICKSLINGPATH%\cef_binary_3.2526.1347.gcf20046_windows32"
if exist "%QUICKSLINGPATH%\cef_binary\build" (
rmdir /S /Q "%QUICKSLINGPATH%\cef_binary\build"
)
if not exist "%QUICKSLINGPATH%\cef_binary\build" (
mkdir "%QUICKSLINGPATH%\cef_binary\build"
)
cmake -G "Visual Studio 12" -B"%QUICKSLINGPATH%\cef_binary\build" -H"%QUICKSLINGPATH%\cef_binary\"
set CMAKE_ERRORLEVEL=%ERRORLEVEL%
if "%CMAKE_ERRORLEVEL%" EQU "0" type nul >> "%QUICKSLINGPATH%\cef_binary\CURRENT_VERSION_3.2526.1347.gcf20046"
:compilestuff
msbuild "%QUICKSLINGPATH%\cef_binary\build\libcef_dll\libcef_dll_wrapper.vcxproj " /t:Build /p:Configuration=Debug
msbuild "%QUICKSLINGPATH%\cef_binary\build\libcef_dll\libcef_dll_wrapper.vcxproj " /t:Build /p:Configuration=Release
:END