-
Notifications
You must be signed in to change notification settings - Fork 10
/
buildout-build-windows.cfg
227 lines (201 loc) · 7.81 KB
/
buildout-build-windows.cfg
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
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
[buildout]
extends = buildout-build.cfg
parts = mkdir zlib xz openssl libiconv bzip2 tcl tcl-win tk tk-win sqlite3 sqlite3-win libxml2 libxml2-win libxslt libxslt-win libevent libffi python python-libffi python-win-instrumentation python-win-pgo python-win
[environment-windows]
XSystemDrive = C:
XWinDir = ${:XSystemDrive}\WINDOWS
XProgramFiles = ${:XSystemDrive}\Program Files (x86)
FrameworkDir = ${:XWinDir}\Microsoft.NET\Framework64
PerlExe = ${:XSystemDrive}\Perl64\bin\perl.exe
FrameworkVersion = v4.0.30319
WindowsSdkDir = ${:XProgramFiles}\Windows Kits\10
VSINSTALLDIR = ${:XProgramFiles}\Microsoft Visual Studio\2017\Enterprise
VCRoot = ${:VSINSTALLDIR}\VC
VCINSTALLDIR = ${:VCRoot}
NODEBUG = 1
DevEnvDir = ${:VSINSTALLDIR}\Common7\IDE
Msvc = ${:VCRoot}\Tools\MSVC\14.16.27023
XSDKVer = 10.0.17763.0
WindowsSdkInclude = ${:WindowsSdkDir}\Include\${:XSDKVer}
WindowsSdkLib = ${:WindowsSdkDir}\Lib\${:XSDKVer}
VSLIB = ${:Msvc}\lib\x64
VSBIN = ${:Msvc}\bin\Hostx64\x64
SDKBIN = ${:WindowsSdkDir}\bin\${:XSDKVer}\x64
LIB = ${:VSLIB};${:WindowsSdkLib}\um\x64;${:WindowsSdkLib}\ucrt\x64;${:PREFIX}\lib
LIBPATH = ${:FrameworkDir};${:FrameworkDir}\${:FrameworkVersion};${:VSLIB}
INCLUDE = ${:WindowsSdkInclude}\shared;${:WindowsSdkInclude}\um;${:WindowsSdkInclude}\ucrt;${:Msvc}\include;${:PREFIX}\include
Recipe = hexagonit.recipe.cmmi
PosixHomeDir=${:XSystemDrive}\Cygwin\home\Administrator
GitDir = ${:PosixHomeDir}\git
GitBinDir = ${:GitDir}\bin
CygwinBinDir = ${:XSystemDrive}\Cygwin\bin
PythonDir = ${:PosixHomeDir}\python
PythonBinDir = ${:PythonDir}\bin
PATH = ${:VSINSTALLDIR}\MSBuild\15.0\Bin;${:DevEnvDir};${:VSBIN};${:VSINSTALLDIR}\Common7\Tools;${:VSINSTALLDIR}\Common7\Tools\bin;${:FrameworkDir};${:FrameworkDir}\Microsoft .NET Framework 3.5 (Pre-Release Version);${:FrameworkDir}\${:FrameworkVersion};${:VCRoot}\VCPackages;${:SDKBIN};${:XWinDir}\system32;${:XWinDir};${:XWinDir}\System32\Wbem;${:GitDir}\cmd;${:GitBinDir};${:PythonBinDir};${:CygwinBinDir}
PREFIX = ${options:prefix}
IIPREFIX = ${options:prefix}
MSVCDIR = ${:VSINSTALLDIR}
VCTargetsPath = ${:VSINSTALLDIR}\Common7\IDE\VC\VCTargets
TZ =
[options]
configure-command = true
configure-options =
make-binary = nmake
make-options = -f win32/Makefile.msc
environment-section = environment-windows
prefix = ${buildout:directory}\dist
hooks-dir = ${buildout:directory}\src\hooks
[mkdir]
recipe = z3c.recipe.mkdir
paths = dist
dist/bin
dist/lib
dist/include
[zlib]
name = zlib
url = ${urls:source}/${:name}-${:version}.tar.gz
patches = ${:patches-dir}/${:name}-${:version}-windows-Makefile.patch
[xz]
# pre-built binaries used for lzma
# TODO download from https://github.com/python/cpython-source-deps/tree/xz
# and compile with Python's PCbuild\liblzma.vcxproj?
<= options
recipe = hexagonit.recipe.cmmi
name = xz
version = 5.2.4
url = ftp://python.infinidat.com/python/sources/xz-${:version}-windows.zip
configure-command = true
make-binary = true
post-make-hook = ${options:hooks-dir}\windows.py:xz_post_make
[openssl]
configure-command = ${environment-windows:PerlExe}
configure-options = Configure VC-WIN64A enable-zlib enable-static-engine enable-zlib-dynamic enable-capieng no-asm no-shared --prefix=${options:prefix}
name = openssl
make-options =
[libiconv]
<= options
name = libiconv
version = 1.16
url = ${urls:source}/${:name}-${:version}-windows.tar.gz
make-binary = devenv
make-options = build-VS2017/libiconv.sln /build "Release|x64"
make-targets =
configure-command = true
patches = ${:patches-dir}/${:name}-${:version}-windows-Makefile.patch
post-make-hook = ${options:hooks-dir}\windows.py:libiconv_post_make
[bzip2]
configure-command = true
make-options = -f makefile.msc PREFIX=${options:prefix}
name = bzip2
patches = ${:patches-dir}/${:name}-${:version}-windows-Makefile.patch
[tcl]
<= options
recipe = hexagonit.recipe.cmmi
name = tcl
version = 8.6.10
url = ${urls:source}/${:name}${:version}-src.tar.gz
configure-command = true
make-binary = true
[tcl-win]
<= options
recipe = hexagonit.recipe.cmmi
path = ${buildout:directory}\parts\tcl__compile__\tcl${tcl:version}\win
make-binary = nmake
make-options = -f Makefile.vc all OPTS=static,threads INSTALLDIR=${options:prefix}
post-make-hook = ${options:hooks-dir}\windows.py:tcl_post_make
[tk]
<= options
recipe = hexagonit.recipe.cmmi
name = tk
version = 8.6.10
url = ${urls:source}/${:name}${:version}-src.tar.gz
configure-command = true
make-binary = true
[tk-win]
<= options
recipe = hexagonit.recipe.cmmi
path = ${buildout:directory}\parts\tk__compile__\tk${tk:version}\win
make-binary = nmake
make-options = -f Makefile.vc all OPTS=static,threads INSTALLDIR=${options:prefix} TCLDIR=${buildout:directory}\parts\tcl__compile__\tcl${tcl:version}
[sqlite3]
make-binary = true
version = autoconf-3380500
[sqlite3-win]
<= options
recipe = hexagonit.recipe.cmmi
path = ${buildout:directory}\parts\sqlite3__compile__\sqlite-autoconf-3380500\tea\win
make-binary = nmake
make-options = -f Makefile.vc all OPTS=static,threads INSTALLDIR=${options:prefix}
[libxml2]
make-binary = true
[libxml2-win]
<= options
recipe = hexagonit.recipe.cmmi
path = ${buildout:directory}\parts\libxml2__compile__\libxml2-${libxml2:version}\win32
configure-command = cscript
configure-options = configure.js compiler=msvc prefix=${options:prefix} include=${options:prefix}\include lib=${options:prefix}\lib
make-options = -f Makefile.msvc
[libxslt]
make-binary = true
# the patch fixes a problem that should be fixed in next libxslt:
# https://gitlab.gnome.org/GNOME/libxslt/commit/e2584eed1c84c18f16e42188c30d2c3d8e3e8853
patches = ${:patches-dir}/${:name}-${:version}-win32-configure.patch
[libxslt-win]
<= options
recipe = hexagonit.recipe.cmmi
path = ${buildout:directory}\parts\libxslt__compile__\libxslt-${libxslt:version}\win32
configure-command = cscript
configure-options = configure.js compiler=msvc prefix=${options:prefix} include=${options:prefix}\include\libxml2 lib=${options:prefix}\lib
make-options = -f Makefile.msvc
[libevent]
version = 2.0.17
make-options = -f Makefile.nmake
make-targets = static_libs
post-make-hook = ${options:hooks-dir}\windows.py:tcl_post_make
[libffi]
<= options
name = libffi
# TODO use git-recipe to download directly from https://github.com/python/cpython-source-deps/tree/libffi
url = ${urls:source}/${:name}-cpython.tar.gz
make-binary = true
configure-command = true
[python]
make-binary = true
patch-binary = git init && git apply --ignore-whitespace
patches = ${:patches-dir}/${:name}-${:version}-windows-Makefile.patch
${:patches-dir}/${:name}-${:version}-sysconfig.py.patch
${:patches-dir}/${:name}-${:version}-distutils-sysconfig.py.patch
${:patches-dir}/${:name}-${:version}-pythonhome-pythonrun.c.patch
${:patches-dir}/${:name}-${:version}-windows-getpathp.patch
${:patches-dir}/${:name}-${:version}-windows-distutils-static-compile.patch
post-make-hook =
[python-libffi-environment]
<= environment-windows
LIBFFI_SOURCE = ${buildout:directory}\parts\libffi__compile__\cpython-source-deps-libffi
[python-libffi]
<= options
recipe = hexagonit.recipe.cmmi
path = ${buildout:directory}\parts\python__compile__\python-${python:version}\PCbuild
make-binary = cmd
make-options = /c
environment-section = python-libffi-environment
make-targets = "prepare_libffi.bat -x64"
post-make-hook = ${options:hooks-dir}\windows.py:libffi_post_make
[python-win-instrumentation]
<= options
recipe = hexagonit.recipe.cmmi
path = ${buildout:directory}\parts\python__compile__\python-${python:version}\PCbuild
make-binary = devenv
make-options = pcbuild.sln /build "PGInstrument|x64"
make-targets =
[python-win-pgo]
<= options
recipe = hexagonit.recipe.cmmi
path = ${buildout:directory}\parts\python__compile__\python-${python:version}\PCbuild
make-binary = cmd
make-options = /c
make-targets = python.exe -m test --pgo
[python-win]
<= python-win-instrumentation
make-options = pcbuild.sln /build "PGUpdate|x64"
post-make-hook = ${options:hooks-dir}\windows.py:python_post_make