merge out of sync winbuilds

This commit is contained in:
wiredfool 2014-06-11 05:26:03 +00:00
commit 38a269d561
15 changed files with 406 additions and 16 deletions

View File

@ -46,7 +46,15 @@ def extract(src, dest):
return untar(src, dest) return untar(src, dest)
def fetch_libs(): def fetch_libs():
for lib in libs.values(): for name,lib in libs.items():
if name == 'openjpeg':
filename = check_hash(fetch(lib['url']),lib['hash'])
for compiler in compilers.values():
if not os.path.exists(os.path.join(build_dir,lib['dir']+compiler['inc_dir'])):
extract(filename, build_dir)
os.rename(os.path.join(build_dir,lib['dir']),
os.path.join(build_dir,lib['dir']+compiler['inc_dir']))
else:
extract(check_hash(fetch(lib['url']),lib['hash']),build_dir) extract(check_hash(fetch(lib['url']),lib['hash']),build_dir)
def cp_tk(): def cp_tk():
@ -83,14 +91,13 @@ def nmake_openjpeg(compiler):
rem build openjpeg rem build openjpeg
setlocal setlocal
@echo on @echo on
cd /D %%OPENJPEG%% cd /D %%OPENJPEG%%%(inc_dir)s
nmake -f Makefile clean
%%CMAKE%% -DBUILD_THIRDPARTY:BOOL=ON -G "NMake Makefiles" . %%CMAKE%% -DBUILD_THIRDPARTY:BOOL=ON -G "NMake Makefiles" .
nmake -f Makefile clean
nmake -f Makefile nmake -f Makefile
copy /Y /B bin/* %%INCLIB%% copy /Y /B bin\* %%INCLIB%%
mkdir %%INCLIB%%/openjpeg-2.0 mkdir %%INCLIB%%\openjpeg-2.0
copy /Y /B src/lib/openjp2/openjpeg.h %%INCLIB%%/openjpeg-2.0 copy /Y /B src\lib\openjp2\*.h %%INCLIB%%\openjpeg-2.0
copy /Y /B src/lib/openjp2/opj_stdint.h %%INCLIB%%/openjpeg-2.0
endlocal endlocal
""" % compiler """ % compiler
@ -131,14 +138,13 @@ endlocal
rem build openjpeg rem build openjpeg
setlocal setlocal
cd /D %%OPENJPEG%% cd /D %%OPENJPEG%%%(inc_dir)s
%%CMAKE%% -DBUILD_THIRDPARTY:BOOL=ON -G "NMake Makefiles" . %%CMAKE%% -DBUILD_THIRDPARTY:BOOL=ON -G "NMake Makefiles" .
nmake -f Makefile clean nmake -f Makefile clean
nmake -f Makefile nmake -f Makefile
copy /Y /B bin/* %%INCLIB%% copy /Y /B bin\* %%INCLIB%%
mkdir %%INCLIB%%/openjpeg-2.0 mkdir %%INCLIB%%\openjpeg-2.0
copy /Y /B src/lib/openjp2/openjpeg.h %%INCLIB%%/openjpeg-2.0 copy /Y /B src\lib\openjp2\*.h %%INCLIB%%\openjpeg-2.0
copy /Y /B src/lib/openjp2/opj_stdint.h %%INCLIB%%/openjpeg-2.0
endlocal endlocal
rem Build libtiff rem Build libtiff
@ -192,9 +198,9 @@ for compiler in compilers.values():
#if True: #if True:
# compiler = compilers[(7,64)] # compiler = compilers[(7,64)]
script.append(setup_compiler(compiler)) script.append(setup_compiler(compiler))
# script.append(nmake_libs(compiler)) script.append(nmake_libs(compiler))
script.append(nmake_openjpeg(compiler)) # script.append(nmake_openjpeg(compiler))
# script.append(msbuild_libs(compiler)) script.append(msbuild_libs(compiler))
script.append(end_compiler()) script.append(end_compiler())
with open('build_deps.cmd', 'w') as f: with open('build_deps.cmd', 'w') as f:

105
winbuild/build_deps.cmd Normal file
View File

@ -0,0 +1,105 @@
setlocal
set MSBUILD=C:\Windows\Microsoft.NET\Framework64\v4.0.30319\MSBuild.exe
set CMAKE="C:\Program Files (x86)\CMake 2.8\bin\cmake.exe"
set INCLIB=%~dp0\depends
set BUILD=%~dp0\build
set OPENJPEG=%BUILD%\openjpeg-2.0.0
set TIFF=%BUILD%\tiff-4.0.3
set LCMS=%BUILD%\lcms2-2.6
set ZLIB=%BUILD%\zlib-1.2.8
set WEBP=%BUILD%\libwebp-0.4.0
set FREETYPE=%BUILD%\freetype-2.5.3
set JPEG=%BUILD%\jpeg-9a
mkdir %INCLIB%\tcl85\include\X11
copy /Y /B %BUILD%\tcl8.5.13\generic\*.h %INCLIB%\tcl85\include\
copy /Y /B %BUILD%\tk8.5.13\generic\*.h %INCLIB%\tcl85\include\
copy /Y /B %BUILD%\tk8.5.13\xlib\X11\* %INCLIB%\tcl85\include\X11\
setlocal EnableDelayedExpansion
call "%ProgramFiles%\Microsoft SDKs\Windows\v7.1\Bin\SetEnv.Cmd" /Release /x64 /vista
set INCLIB=%INCLIB%\msvcr10-x64
mkdir %INCLIB%
rem build openjpeg
setlocal
@echo on
cd /D %OPENJPEG%
nmake -f Makefile clean
%CMAKE% -DBUILD_THIRDPARTY:BOOL=ON -G "NMake Makefiles" .
nmake -f Makefile
copy /Y /B bin/* %INCLIB%
mkdir %INCLIB%/openjpeg-2.0
copy /Y /B src/lib/openjp2/openjpeg.h %INCLIB%/openjpeg-2.0
copy /Y /B src/lib/openjp2/opj_stdint.h %INCLIB%/openjpeg-2.0
endlocal
endlocal
setlocal EnableDelayedExpansion
call "%ProgramFiles%\Microsoft SDKs\Windows\v7.0\Bin\SetEnv.Cmd" /Release /x86 /xp
set INCLIB=%INCLIB%\msvcr90-x32
mkdir %INCLIB%
rem build openjpeg
setlocal
@echo on
cd /D %OPENJPEG%
nmake -f Makefile clean
%CMAKE% -DBUILD_THIRDPARTY:BOOL=ON -G "NMake Makefiles" .
nmake -f Makefile
copy /Y /B bin/* %INCLIB%
mkdir %INCLIB%/openjpeg-2.0
copy /Y /B src/lib/openjp2/openjpeg.h %INCLIB%/openjpeg-2.0
copy /Y /B src/lib/openjp2/opj_stdint.h %INCLIB%/openjpeg-2.0
endlocal
endlocal
setlocal EnableDelayedExpansion
call "%ProgramFiles%\Microsoft SDKs\Windows\v7.0\Bin\SetEnv.Cmd" /Release /x64 /vista
set INCLIB=%INCLIB%\msvcr90-x64
mkdir %INCLIB%
rem build openjpeg
setlocal
@echo on
cd /D %OPENJPEG%
nmake -f Makefile clean
%CMAKE% -DBUILD_THIRDPARTY:BOOL=ON -G "NMake Makefiles" .
nmake -f Makefile
copy /Y /B bin/* %INCLIB%
mkdir %INCLIB%/openjpeg-2.0
copy /Y /B src/lib/openjp2/openjpeg.h %INCLIB%/openjpeg-2.0
copy /Y /B src/lib/openjp2/opj_stdint.h %INCLIB%/openjpeg-2.0
endlocal
endlocal
setlocal EnableDelayedExpansion
call "%ProgramFiles%\Microsoft SDKs\Windows\v7.1\Bin\SetEnv.Cmd" /Release /x86 /xp
set INCLIB=%INCLIB%\msvcr10-x32
mkdir %INCLIB%
rem build openjpeg
setlocal
@echo on
cd /D %OPENJPEG%
nmake -f Makefile clean
%CMAKE% -DBUILD_THIRDPARTY:BOOL=ON -G "NMake Makefiles" .
nmake -f Makefile
copy /Y /B bin/* %INCLIB%
mkdir %INCLIB%/openjpeg-2.0
copy /Y /B src/lib/openjp2/openjpeg.h %INCLIB%/openjpeg-2.0
copy /Y /B src/lib/openjp2/opj_stdint.h %INCLIB%/openjpeg-2.0
endlocal
endlocal

View File

@ -0,0 +1,36 @@
setlocal
set MSBUILD=C:\Windows\Microsoft.NET\Framework64\v4.0.30319\MSBuild.exe
set CMAKE="C:\Program Files (x86)\CMake 2.8\bin\cmake.exe"
set INCLIB=%~dp0\depends
set BUILD=%~dp0\build
set LCMS=%BUILD%\lcms2-2.6
set ZLIB=%BUILD%\zlib-1.2.8
set WEBP=%BUILD%\libwebp-0.4.0
set TIFF=%BUILD%\tiff-4.0.3
set OPENJPEG=%BUILD%\openjpeg-2.0.0
set JPEG=%BUILD%\jpeg-9a
set FREETYPE=%BUILD%\freetype-2.5.3
call "%ProgramFiles%\Microsoft SDKs\Windows\v7.1\Bin\SetEnv.Cmd" /Release /x64 /vista
set INCLIB=%INCLIB%\msvcr10-x64
mkdir %INCLIB%
rem build openjpeg
setlocal
@echo on
cd /D %OPENJPEG%
%CMAKE% -DBUILD_THIRDPARTY:BOOL=ON -G "NMake Makefiles" .
nmake -f Makefile clean
nmake -f Makefile
copy /Y /B bin/* %INCLIB%
mkdir %INCLIB%/openjpeg-2.0
copy /Y /B src/lib/openjp2/openjpeg.h %INCLIB%/openjpeg-2.0
copy /Y /B src/lib/openjp2/opj_stdint.h %INCLIB%/openjpeg2.0
endlocal
endlocal

View File

@ -0,0 +1,23 @@
setlocal
set MPLSRC=%~dp0\..
set INCLIB=%~dp0\depends
set BLDOPT=install
cd /D %MPLSRC%
setlocal EnableDelayedExpansion
call "%ProgramFiles%\Microsoft SDKs\Windows\v7.0\Bin\SetEnv.Cmd" /Release /x86 /xp
set DISTUTILS_USE_SDK=1
set LIB=%LIB%;%INCLIB%\msvcr90-x32
set INCLUDE=%INCLUDE%;%INCLIB%\msvcr90-x32;%INCLIB%\tcl85\include
setlocal
set LIB=%LIB%;C:\Python26\tcl
call c:\vp\26\Scripts\python.exe setup.py %BLDOPT%
endlocal
endlocal
endlocal
exit

View File

@ -0,0 +1,23 @@
setlocal
set MPLSRC=%~dp0\..
set INCLIB=%~dp0\depends
set BLDOPT=install
cd /D %MPLSRC%
setlocal EnableDelayedExpansion
call "%ProgramFiles%\Microsoft SDKs\Windows\v7.0\Bin\SetEnv.Cmd" /Release /x64 /vista
set DISTUTILS_USE_SDK=1
set LIB=%LIB%;%INCLIB%\msvcr90-x64
set INCLUDE=%INCLUDE%;%INCLIB%\msvcr90-x64;%INCLIB%\tcl85\include
setlocal
set LIB=%LIB%;C:\Python26x64\tcl
call c:\vp\26x64\Scripts\python.exe setup.py %BLDOPT%
endlocal
endlocal
endlocal
exit

View File

@ -0,0 +1,23 @@
setlocal
set MPLSRC=%~dp0\..
set INCLIB=%~dp0\depends
set BLDOPT=install
cd /D %MPLSRC%
setlocal EnableDelayedExpansion
call "%ProgramFiles%\Microsoft SDKs\Windows\v7.0\Bin\SetEnv.Cmd" /Release /x86 /xp
set DISTUTILS_USE_SDK=1
set LIB=%LIB%;%INCLIB%\msvcr90-x32
set INCLUDE=%INCLUDE%;%INCLIB%\msvcr90-x32;%INCLIB%\tcl85\include
setlocal
set LIB=%LIB%;C:\Python27\tcl
call c:\vp\27\Scripts\python.exe setup.py %BLDOPT%
endlocal
endlocal
endlocal
exit

View File

@ -0,0 +1,23 @@
setlocal
set MPLSRC=%~dp0\..
set INCLIB=%~dp0\depends
set BLDOPT=install
cd /D %MPLSRC%
setlocal EnableDelayedExpansion
call "%ProgramFiles%\Microsoft SDKs\Windows\v7.0\Bin\SetEnv.Cmd" /Release /x64 /vista
set DISTUTILS_USE_SDK=1
set LIB=%LIB%;%INCLIB%\msvcr90-x64
set INCLUDE=%INCLUDE%;%INCLIB%\msvcr90-x64;%INCLIB%\tcl85\include
setlocal
set LIB=%LIB%;C:\Python27x64\tcl
call c:\vp\27x64\Scripts\python.exe setup.py %BLDOPT%
endlocal
endlocal
endlocal
exit

View File

@ -0,0 +1,23 @@
setlocal
set MPLSRC=%~dp0\..
set INCLIB=%~dp0\depends
set BLDOPT=install
cd /D %MPLSRC%
setlocal EnableDelayedExpansion
call "%ProgramFiles%\Microsoft SDKs\Windows\v7.0\Bin\SetEnv.Cmd" /Release /x86 /xp
set DISTUTILS_USE_SDK=1
set LIB=%LIB%;%INCLIB%\msvcr90-x32
set INCLUDE=%INCLUDE%;%INCLIB%\msvcr90-x32;%INCLIB%\tcl85\include
setlocal
set LIB=%LIB%;C:\Python32\tcl
call c:\vp\32\Scripts\python.exe setup.py %BLDOPT%
endlocal
endlocal
endlocal
exit

View File

@ -0,0 +1,23 @@
setlocal
set MPLSRC=%~dp0\..
set INCLIB=%~dp0\depends
set BLDOPT=install
cd /D %MPLSRC%
setlocal EnableDelayedExpansion
call "%ProgramFiles%\Microsoft SDKs\Windows\v7.0\Bin\SetEnv.Cmd" /Release /x64 /vista
set DISTUTILS_USE_SDK=1
set LIB=%LIB%;%INCLIB%\msvcr90-x64
set INCLUDE=%INCLUDE%;%INCLIB%\msvcr90-x64;%INCLIB%\tcl85\include
setlocal
set LIB=%LIB%;C:\Python32x64\tcl
call c:\vp\32x64\Scripts\python.exe setup.py %BLDOPT%
endlocal
endlocal
endlocal
exit

View File

@ -0,0 +1,23 @@
setlocal
set MPLSRC=%~dp0\..
set INCLIB=%~dp0\depends
set BLDOPT=install
cd /D %MPLSRC%
setlocal EnableDelayedExpansion
call "%ProgramFiles%\Microsoft SDKs\Windows\v7.1\Bin\SetEnv.Cmd" /Release /x86 /xp
set DISTUTILS_USE_SDK=1
set LIB=%LIB%;%INCLIB%\msvcr10-x32
set INCLUDE=%INCLUDE%;%INCLIB%\msvcr10-x32;%INCLIB%\tcl85\include
setlocal
set LIB=%LIB%;C:\Python33\tcl
call c:\vp\33\Scripts\python.exe setup.py %BLDOPT%
endlocal
endlocal
endlocal
exit

View File

@ -0,0 +1,23 @@
setlocal
set MPLSRC=%~dp0\..
set INCLIB=%~dp0\depends
set BLDOPT=install
cd /D %MPLSRC%
setlocal EnableDelayedExpansion
call "%ProgramFiles%\Microsoft SDKs\Windows\v7.1\Bin\SetEnv.Cmd" /Release /x64 /vista
set DISTUTILS_USE_SDK=1
set LIB=%LIB%;%INCLIB%\msvcr10-x64
set INCLUDE=%INCLUDE%;%INCLIB%\msvcr10-x64;%INCLIB%\tcl85\include
setlocal
set LIB=%LIB%;C:\Python33x64\tcl
call c:\vp\33x64\Scripts\python.exe setup.py %BLDOPT%
endlocal
endlocal
endlocal
exit

View File

@ -0,0 +1,23 @@
setlocal
set MPLSRC=%~dp0\..
set INCLIB=%~dp0\depends
set BLDOPT=install
cd /D %MPLSRC%
setlocal EnableDelayedExpansion
call "%ProgramFiles%\Microsoft SDKs\Windows\v7.1\Bin\SetEnv.Cmd" /Release /x86 /xp
set DISTUTILS_USE_SDK=1
set LIB=%LIB%;%INCLIB%\msvcr10-x32
set INCLUDE=%INCLUDE%;%INCLIB%\msvcr10-x32;%INCLIB%\tcl85\include
setlocal
set LIB=%LIB%;C:\Python34\tcl
call c:\vp\34\Scripts\python.exe setup.py %BLDOPT%
endlocal
endlocal
endlocal
exit

View File

@ -0,0 +1,23 @@
setlocal
set MPLSRC=%~dp0\..
set INCLIB=%~dp0\depends
set BLDOPT=install
cd /D %MPLSRC%
setlocal EnableDelayedExpansion
call "%ProgramFiles%\Microsoft SDKs\Windows\v7.1\Bin\SetEnv.Cmd" /Release /x64 /vista
set DISTUTILS_USE_SDK=1
set LIB=%LIB%;%INCLIB%\msvcr10-x64
set INCLUDE=%INCLUDE%;%INCLIB%\msvcr10-x64;%INCLIB%\tcl85\include
setlocal
set LIB=%LIB%;C:\Python34x64\tcl
call c:\vp\34x64\Scripts\python.exe setup.py %BLDOPT%
endlocal
endlocal
endlocal
exit

View File

@ -0,0 +1,10 @@
virtualenv -p c:/Python32/python.exe --clear c:/vp/32
virtualenv -p c:/Python32x64/python.exe --clear c:/vp/32x64
virtualenv -p c:/Python34/python.exe --clear c:/vp/34
virtualenv -p c:/Python34x64/python.exe --clear c:/vp/34x64
virtualenv -p c:/Python27/python.exe --clear c:/vp/27
virtualenv -p c:/Python27x64/python.exe --clear c:/vp/27x64
virtualenv -p c:/Python33/python.exe --clear c:/vp/33
virtualenv -p c:/Python33x64/python.exe --clear c:/vp/33x64
virtualenv -p c:/Python26/python.exe --clear c:/vp/26
virtualenv -p c:/Python26x64/python.exe --clear c:/vp/26x64

3
winbuild/t.py Normal file
View File

@ -0,0 +1,3 @@
import urllib.request
urllib.request.urlretrieve('https://www.python.org/ftp/python/2.7.6/python-2.7.6.amd64.msi')