mirror of
https://github.com/miurahr/aqtinstall.git
synced 2025-12-17 20:54:38 +03:00
fix emsdk version & qmake path
This commit is contained in:
@@ -35,6 +35,8 @@ class BuildJob:
|
|||||||
is_autodesktop: bool = False,
|
is_autodesktop: bool = False,
|
||||||
tool_options: Optional[Dict[str, str]] = None,
|
tool_options: Optional[Dict[str, str]] = None,
|
||||||
check_output_cmd: Optional[str] = None,
|
check_output_cmd: Optional[str] = None,
|
||||||
|
emsdk_version: str = "sdk-fastcomp-1.38.27-64bit",
|
||||||
|
autodesk_arch_folder: Optional[str] = None,
|
||||||
):
|
):
|
||||||
self.command = command
|
self.command = command
|
||||||
self.qt_version = qt_version
|
self.qt_version = qt_version
|
||||||
@@ -53,6 +55,8 @@ class BuildJob:
|
|||||||
self.spec = spec
|
self.spec = spec
|
||||||
self.output_dir = output_dir
|
self.output_dir = output_dir
|
||||||
self.check_output_cmd = check_output_cmd
|
self.check_output_cmd = check_output_cmd
|
||||||
|
self.emsdk_version = emsdk_version
|
||||||
|
self.autodesk_arch_folder = autodesk_arch_folder
|
||||||
|
|
||||||
def qt_bindir(self, *, sep='/') -> str:
|
def qt_bindir(self, *, sep='/') -> str:
|
||||||
out_dir = f"$(Build.BinariesDirectory){sep}Qt" if not self.output_dir else self.output_dir
|
out_dir = f"$(Build.BinariesDirectory){sep}Qt" if not self.output_dir else self.output_dir
|
||||||
@@ -62,6 +66,14 @@ class BuildJob:
|
|||||||
def win_qt_bindir(self) -> str:
|
def win_qt_bindir(self) -> str:
|
||||||
return self.qt_bindir(sep='\\')
|
return self.qt_bindir(sep='\\')
|
||||||
|
|
||||||
|
def autodesk_qt_bindir(self, *, sep='/') -> str:
|
||||||
|
out_dir = f"$(Build.BinariesDirectory){sep}Qt" if not self.output_dir else self.output_dir
|
||||||
|
version_dir = "5.9" if self.qt_version == "5.9.0" else self.qt_version
|
||||||
|
return f"{out_dir}{sep}{version_dir}{sep}{self.autodesk_arch_folder or self.archdir}{sep}bin"
|
||||||
|
|
||||||
|
def win_autodesk_qt_bindir(self) -> str:
|
||||||
|
return self.autodesk_qt_bindir(sep='\\')
|
||||||
|
|
||||||
def mingw_folder(self) -> str:
|
def mingw_folder(self) -> str:
|
||||||
if not self.mingw_variant:
|
if not self.mingw_variant:
|
||||||
return ""
|
return ""
|
||||||
@@ -271,7 +283,8 @@ windows_build_jobs.append(
|
|||||||
)
|
)
|
||||||
windows_build_jobs.append(
|
windows_build_jobs.append(
|
||||||
BuildJob("install-qt", "6.4.0", "windows", "desktop", "wasm_32", "wasm_32",
|
BuildJob("install-qt", "6.4.0", "windows", "desktop", "wasm_32", "wasm_32",
|
||||||
is_autodesktop=True, mingw_variant="win64_mingw900")
|
is_autodesktop=True, emsdk_version="sdk-3.1.14-64bit", autodesk_arch_folder="mingw_64",
|
||||||
|
mingw_variant="win64_mingw900")
|
||||||
)
|
)
|
||||||
|
|
||||||
# mobile SDK
|
# mobile SDK
|
||||||
@@ -387,6 +400,8 @@ for platform_build_job in all_platform_build_jobs:
|
|||||||
("OUTPUT_DIR", build_job.output_dir if build_job.output_dir else ""),
|
("OUTPUT_DIR", build_job.output_dir if build_job.output_dir else ""),
|
||||||
("QT_BINDIR", build_job.qt_bindir()),
|
("QT_BINDIR", build_job.qt_bindir()),
|
||||||
("WIN_QT_BINDIR", build_job.win_qt_bindir()),
|
("WIN_QT_BINDIR", build_job.win_qt_bindir()),
|
||||||
|
("EMSDK_VERSION", build_job.emsdk_version),
|
||||||
|
("WIN_AUTODESK_QT_BINDIR", build_job.win_autodesk_qt_bindir()),
|
||||||
("TOOL1_ARGS", build_job.tool_options.get("TOOL1_ARGS", "")),
|
("TOOL1_ARGS", build_job.tool_options.get("TOOL1_ARGS", "")),
|
||||||
("LIST_TOOL1_CMD", build_job.tool_options.get("LIST_TOOL1_CMD", "")),
|
("LIST_TOOL1_CMD", build_job.tool_options.get("LIST_TOOL1_CMD", "")),
|
||||||
("TEST_TOOL1_CMD", build_job.tool_options.get("TEST_TOOL1_CMD", "")),
|
("TEST_TOOL1_CMD", build_job.tool_options.get("TEST_TOOL1_CMD", "")),
|
||||||
|
|||||||
15
ci/steps.yml
15
ci/steps.yml
@@ -330,8 +330,8 @@ steps:
|
|||||||
set -ex
|
set -ex
|
||||||
git clone https://github.com/emscripten-core/emsdk.git
|
git clone https://github.com/emscripten-core/emsdk.git
|
||||||
cd emsdk
|
cd emsdk
|
||||||
./emsdk install sdk-fastcomp-1.38.27-64bit
|
./emsdk install $(EMSDK_VERSION)
|
||||||
./emsdk activate --embedded sdk-fastcomp-1.38.27-64bit
|
./emsdk activate --embedded $(EMSDK_VERSION)
|
||||||
source $(Build.BinariesDirectory)/emsdk/emsdk_env.sh
|
source $(Build.BinariesDirectory)/emsdk/emsdk_env.sh
|
||||||
mkdir $(Build.BinariesDirectory)/tests
|
mkdir $(Build.BinariesDirectory)/tests
|
||||||
(cd $(Build.BinariesDirectory)/tests; 7zr x $(Build.SourcesDirectory)/ci/openglwindow.7z)
|
(cd $(Build.BinariesDirectory)/tests; 7zr x $(Build.SourcesDirectory)/ci/openglwindow.7z)
|
||||||
@@ -353,8 +353,8 @@ steps:
|
|||||||
- powershell: |
|
- powershell: |
|
||||||
git clone https://github.com/emscripten-core/emsdk.git
|
git clone https://github.com/emscripten-core/emsdk.git
|
||||||
cd emsdk
|
cd emsdk
|
||||||
.\emsdk install sdk-fastcomp-1.38.27-64bit
|
.\emsdk install $(EMSDK_VERSION)
|
||||||
.\emsdk activate --embedded sdk-fastcomp-1.38.27-64bit
|
.\emsdk activate --embedded $(EMSDK_VERSION)
|
||||||
.\emsdk_env.bat
|
.\emsdk_env.bat
|
||||||
mkdir $(Build.BinariesDirectory)\tests
|
mkdir $(Build.BinariesDirectory)\tests
|
||||||
cd $(Build.BinariesDirectory)\tests
|
cd $(Build.BinariesDirectory)\tests
|
||||||
@@ -363,11 +363,10 @@ steps:
|
|||||||
echo "Add Qt/qmake to PATH at $(WIN_QT_BINDIR):"
|
echo "Add Qt/qmake to PATH at $(WIN_QT_BINDIR):"
|
||||||
echo "$env:Path"
|
echo "$env:Path"
|
||||||
if('$(QT_VERSION)' -like '6*') {
|
if('$(QT_VERSION)' -like '6*') {
|
||||||
echo "Qt6: run qmake.bat"
|
|
||||||
#qmake.bat $(Build.BinariesDirectory)\tests\openglwindow
|
#qmake.bat $(Build.BinariesDirectory)\tests\openglwindow
|
||||||
# nope, just inline the bat file:
|
# inline qmake.bat file:
|
||||||
echo "Inlined command is: qmake -qtconf $(WIN_QT_BINDIR)\target_qt.conf $(Build.BinariesDirectory)\tests\openglwindow"
|
echo "Inlined qmake.bat command is: $(WIN_AUTODESK_QT_BINDIR)\qmake -qtconf $(WIN_QT_BINDIR)\target_qt.conf $(Build.BinariesDirectory)\tests\openglwindow"
|
||||||
"$(WIN_QT_BINDIR)\..\..\mingw_64\bin\qmake.exe" -qtconf "$(WIN_QT_BINDIR)\target_qt.conf" $(Build.BinariesDirectory)\tests\openglwindow
|
$(WIN_AUTODESK_QT_BINDIR)\qmake.exe -qtconf "$(WIN_QT_BINDIR)\target_qt.conf" $(Build.BinariesDirectory)\tests\openglwindow
|
||||||
} else {
|
} else {
|
||||||
echo "Qt5: run qmake.exe"
|
echo "Qt5: run qmake.exe"
|
||||||
qmake $(Build.BinariesDirectory)\tests\openglwindow
|
qmake $(Build.BinariesDirectory)\tests\openglwindow
|
||||||
|
|||||||
Reference in New Issue
Block a user