mirror of
https://github.com/barry-ran/QtScrcpy.git
synced 2025-08-03 14:18:45 +00:00
chore: update build script_path
1. update windows build script 2. add mac build script
This commit is contained in:
parent
0575efc2da
commit
436771599a
1 changed files with 5 additions and 5 deletions
|
@ -7,9 +7,9 @@ echo check ENV
|
||||||
echo ---------------------------------------------------------------
|
echo ---------------------------------------------------------------
|
||||||
|
|
||||||
:: 从环境变量获取必要参数
|
:: 从环境变量获取必要参数
|
||||||
:: 例如 C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\VC\Auxiliary\Build\vcvarsall.bat
|
:: example: D:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\VC\Auxiliary\Build\vcvarsall.bat
|
||||||
set vcvarsall="%ENV_VCVARSALL%"
|
set vcvarsall="%ENV_VCVARSALL%"
|
||||||
:: 例如 d:\a\QtScrcpy\Qt\5.12.7
|
:: example: D:\Qt\Qt5.12.5\5.12.5
|
||||||
set qt_msvc_path="%ENV_QT_PATH%"
|
set qt_msvc_path="%ENV_QT_PATH%"
|
||||||
|
|
||||||
echo ENV_VCVARSALL %ENV_VCVARSALL%
|
echo ENV_VCVARSALL %ENV_VCVARSALL%
|
||||||
|
@ -95,7 +95,7 @@ md %temp_path%
|
||||||
cd %temp_path%
|
cd %temp_path%
|
||||||
|
|
||||||
set qmake_params=-spec win32-msvc
|
set qmake_params=-spec win32-msvc
|
||||||
if /i %debug_mode% == "true" (
|
if /i %build_mode% == debug (
|
||||||
set qmake_params=%qmake_params% "CONFIG+=debug" "CONFIG+=qml_debug"
|
set qmake_params=%qmake_params% "CONFIG+=debug" "CONFIG+=qml_debug"
|
||||||
) else (
|
) else (
|
||||||
set qmake_params=%qmake_params% "CONFIG+=qtquickcompiler"
|
set qmake_params=%qmake_params% "CONFIG+=qtquickcompiler"
|
||||||
|
@ -109,8 +109,8 @@ if not %errorlevel%==0 (
|
||||||
)
|
)
|
||||||
|
|
||||||
:: nmake
|
:: nmake
|
||||||
:: jom是qt的多线程nmake工具
|
:: jom是qt的多进程nmake工具
|
||||||
jom -j8
|
..\win\jom -j8
|
||||||
if not %errorlevel%==0 (
|
if not %errorlevel%==0 (
|
||||||
echo "nmake failed"
|
echo "nmake failed"
|
||||||
goto return
|
goto return
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue