|
191 | 191 | SUBPROCESS_EXE = os.path.join(BUILD_SUBPROCESS, |
192 | 192 | "subprocess" + EXECUTABLE_EXT) |
193 | 193 |
|
194 | | -# Visual Studio constants |
| 194 | +# These Visual Studio constants are used by automate.py tool |
| 195 | +# to build upstream C++ projects. CEF Python C++ code is built |
| 196 | +# with setuptools/distutils in the build_cpp_projects.py tool. |
| 197 | +# ----------------------------------------------------------------------------- |
| 198 | + |
195 | 199 | VS_PLATFORM_ARG = "x86" if ARCH32 else "amd64" |
196 | 200 |
|
197 | 201 | VS2015_VCVARS = ("C:\\Program Files (x86)\\Microsoft Visual Studio 14.0" |
198 | 202 | "\\VC\\vcvarsall.bat") |
199 | 203 |
|
200 | | -# For CEF build |
201 | 204 | VS2013_VCVARS = ("C:\\Program Files (x86)\\Microsoft Visual Studio 12.0" |
202 | 205 | "\\VC\\vcvarsall.bat") |
203 | 206 |
|
204 | | -# VS2010 vcvarsall not used, using detection with setuptools instead |
205 | 207 | VS2010_VCVARS = ("C:\\Program Files (x86)\\Microsoft Visual Studio 10.0" |
206 | 208 | "\\VC\\vcvarsall.bat") |
207 | 209 |
|
208 | | -VS2008_VCVARS = ("%LocalAppData%\\Programs\\Common\\Microsoft" |
209 | | - "\\Visual C++ for Python\\9.0\\vcvarsall.bat") |
210 | | -VS2008_BUILD = ("%LocalAppData%\\Programs\\Common\\" |
211 | | - "Microsoft\\Visual C++ for Python\\9.0\\" |
212 | | - "VC\\bin\\amd64\\vcbuild.exe") |
213 | | -if "LOCALAPPDATA" in os.environ: |
214 | | - VS2008_VCVARS = VS2008_VCVARS.replace("%LocalAppData%", |
215 | | - os.environ["LOCALAPPDATA"]) |
216 | | - VS2008_BUILD = VS2008_BUILD.replace("%LocalAppData%", |
217 | | - os.environ["LOCALAPPDATA"]) |
| 210 | +VS2008_VCVARS = ("C:\\Program Files (x86)\\Microsoft Visual Studio 9.0" |
| 211 | + "\\VC\\vcvarsall.bat") |
| 212 | + |
| 213 | +if not os.path.exists(VS2008_VCVARS): |
| 214 | + VS2008_VCVARS = (os.environ["LOCALAPPDATA"]+"\\Programs\\Common\\Microsoft" |
| 215 | + "\\Visual C++ for Python\\9.0\\vcvarsall.bat") |
218 | 216 |
|
219 | 217 | # ----------------------------------------------------------------------------- |
220 | 218 |
|
|
0 commit comments