-
-
Notifications
You must be signed in to change notification settings - Fork 479
Expand file tree
/
Copy pathcompile.bat
More file actions
50 lines (32 loc) · 1.29 KB
/
compile.bat
File metadata and controls
50 lines (32 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
for /f %%i in ('python -c "import sys; print(str(sys.version_info[0])+str(sys.version_info[1]));"') do set PYVERSION=%%i
del "binaries\cefpython_py%PYVERSION%.pyd"
del "setup\cefpython_py%PYVERSION%.pyd"
for /R %~dp0setup\ %%f in (*.pyx) do @del "%%f"
rmdir /S /Q "%dp0setup\build\"
cd "setup"
call python "fix_includes.py"
@if %ERRORLEVEL% neq 0 pause
@if %ERRORLEVEL% neq 0 exit
call python "setup.py" build_ext --inplace
REM -- the setup above has disabled ECHO for commands, turning it back on.
ECHO ON
@if %ERRORLEVEL% neq 0 for /R %~dp0setup\ %%f in (*.pyx) do @del "%%f"
@if %ERRORLEVEL% neq 0 pause
@if %ERRORLEVEL% neq 0 exit
for /R %~dp0setup\ %%f in (*.pyx) do @del "%%f"
rmdir /S /Q "build\"
@if %ERRORLEVEL% neq 0 pause
@if %ERRORLEVEL% neq 0 exit
call "C:\Program Files\Microsoft SDKs\Windows\v6.0A\bin\mt.exe" -nologo -manifest %~dp0\cefpython.pyd.manifest -outputresource:%~dp0\setup\cefpython_py%PYVERSION%.pyd;2
@if %ERRORLEVEL% neq 0 pause
@if %ERRORLEVEL% neq 0 exit
move "cefpython_py%PYVERSION%.pyd" "../binaries/cefpython_py%PYVERSION%.pyd"
@if %ERRORLEVEL% neq 0 pause
@if %ERRORLEVEL% neq 0 exit
copy %~dp0..\..\cef1_api.py %~dp0binaries\cefpython_py%PYVERSION%.py
@if %ERRORLEVEL% neq 0 pause
@if %ERRORLEVEL% neq 0 exit
cd ..
cd binaries
call python "cefadvanced.py"
pause