mirror of
https://github.com/YGGverse/hlsdk-portable.git
synced 2025-01-23 13:14:51 +00:00
waf: upgrade to latest waifu master
This commit is contained in:
parent
822f8906ac
commit
b15a1388ad
12
waf.bat
12
waf.bat
@ -1,24 +1,20 @@
|
|||||||
@echo off
|
@echo off
|
||||||
|
|
||||||
rem try fix py2 build
|
rem try fix py2 build
|
||||||
chcp 1252
|
chcp 65001
|
||||||
set PYTHONIOENCODING=UTF-8
|
set PYTHONIOENCODING=UTF-8
|
||||||
rem from issue #964
|
rem from issue #964
|
||||||
|
|
||||||
Setlocal EnableDelayedExpansion
|
Setlocal EnableDelayedExpansion
|
||||||
|
|
||||||
rem Check Windows Version
|
rem Check Windows Version
|
||||||
set TOKEN=tokens=3*
|
set TOKEN=tokens=2*
|
||||||
ver | findstr /i "5\.0\." > nul
|
ver | findstr /i "5\.0\." > nul
|
||||||
if %ERRORLEVEL% EQU 0 SET TOKEN=tokens=3*
|
if %ERRORLEVEL% EQU 0 SET TOKEN=tokens=3*
|
||||||
ver | findstr /i "5\.1\." > nul
|
ver | findstr /i "5\.1\." > nul
|
||||||
if %ERRORLEVEL% EQU 0 SET TOKEN=tokens=3*
|
if %ERRORLEVEL% EQU 0 SET TOKEN=tokens=3*
|
||||||
ver | findstr /i "5\.2\." > nul
|
ver | findstr /i "5\.2\." > nul
|
||||||
if %ERRORLEVEL% EQU 0 SET TOKEN=tokens=3*
|
if %ERRORLEVEL% EQU 0 SET TOKEN=tokens=3*
|
||||||
ver | findstr /i "6\.0\." > nul
|
|
||||||
if %ERRORLEVEL% EQU 0 SET TOKEN=tokens=2*
|
|
||||||
ver | findstr /i "6\.1\." > nul
|
|
||||||
if %ERRORLEVEL% EQU 0 SET TOKEN=tokens=2*
|
|
||||||
|
|
||||||
rem Start calculating PYTHON and PYTHON_DIR
|
rem Start calculating PYTHON and PYTHON_DIR
|
||||||
set PYTHON=
|
set PYTHON=
|
||||||
@ -29,7 +25,7 @@ Setlocal EnableDelayedExpansion
|
|||||||
set PYTHON_DIR_OK=FALSE
|
set PYTHON_DIR_OK=FALSE
|
||||||
set REGPATH=
|
set REGPATH=
|
||||||
|
|
||||||
for %%i in (3.9 3.8 3.7 3.6 3.5 3.4 3.3 3.2 3.1 3.0 2.7 2.6 2.5) do (
|
for %%i in (3.10 3.9 3.8 3.7 3.6 3.5 3.4 3.3 3.2 3.1 3.0 2.7 2.6 2.5) do (
|
||||||
for %%j in (HKCU HKLM) do (
|
for %%j in (HKCU HKLM) do (
|
||||||
for %%k in (SOFTWARE\Wow6432Node SOFTWARE) do (
|
for %%k in (SOFTWARE\Wow6432Node SOFTWARE) do (
|
||||||
for %%l in (Python\PythonCore IronPython) do (
|
for %%l in (Python\PythonCore IronPython) do (
|
||||||
@ -88,7 +84,7 @@ rem @echo %PYTHON_DIR%
|
|||||||
|
|
||||||
if "%PYTHON%" == "" (
|
if "%PYTHON%" == "" (
|
||||||
rem @echo No Python
|
rem @echo No Python
|
||||||
set PYTHON=python
|
set PYTHON=py
|
||||||
goto running
|
goto running
|
||||||
)
|
)
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user