You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
65 lines
1.8 KiB
Batchfile
65 lines
1.8 KiB
Batchfile
@echo off
|
|
REM
|
|
REM Copyright (c) Contributors to the Open 3D Engine Project.
|
|
REM For complete copyright and license terms please see the LICENSE at the root of this distribution.
|
|
REM
|
|
REM SPDX-License-Identifier: Apache-2.0 OR MIT
|
|
REM
|
|
REM
|
|
|
|
:: Skip initialization of QT if already completed
|
|
IF "%DCCSI_ENV_QT_INIT%"=="1" GOTO :END_OF_FILE
|
|
|
|
:: Store current dir
|
|
%~d0
|
|
cd %~dp0
|
|
PUSHD %~dp0
|
|
|
|
CALL %~dp0\Env_Core.bat
|
|
CALL %~dp0\Env_Python.bat
|
|
|
|
::SETLOCAL ENABLEDELAYEDEXPANSION
|
|
|
|
echo.
|
|
echo _____________________________________________________________________
|
|
echo.
|
|
echo ~ O3DE DCCsi Qt/PySide2 Environment ...
|
|
echo _____________________________________________________________________
|
|
echo.
|
|
|
|
:: These need to be ADDED to any env or launcher that needs Qt/PySide2 access
|
|
:: This bootstraps O3DE Qt binaraies and PySide2 packages (which likely won't work in other versions of python)
|
|
:: If you set these in the env.bat it may cause some Qt apps like WingIDE from starting correctly (Wing is a Qt app)
|
|
:: Those apps provide their own Qt bins and Pyside packages (Wing, Substance, Maya, etc.)
|
|
:: set up Qt/Pyside paths
|
|
|
|
:: set up PySide2/Shiboken
|
|
set QTFORPYTHON_PATH=%O3DE_DEV%\Gems\QtForPython\3rdParty\pyside2\windows\release
|
|
echo QTFORPYTHON_PATH = %QTFORPYTHON_PATH%
|
|
|
|
:: add to the PATH
|
|
SET PATH=%QTFORPYTHON_PATH%;%PATH%
|
|
SET PYTHONPATH=%QTFORPYTHON_PATH%;%PYTHONPATH%
|
|
|
|
set QT_PLUGIN_PATH=%PATH_O3DE_BUILD%\bin\profile\EditorPlugins
|
|
echo QT_PLUGIN_PATH = %QT_PLUGIN_PATH%
|
|
|
|
:: add to the PATH
|
|
SET PATH=%QT_PLUGIN_PATH%;%PATH%
|
|
SET PYTHONPATH=%QT_PLUGIN_PATH%;%PYTHONPATH%
|
|
|
|
set PATH_O3DE_BIN=%PATH_O3DE_BUILD%\bin\profile
|
|
echo PATH_O3DE_BIN = %PATH_O3DE_BIN%
|
|
SET PATH=%PATH_O3DE_BIN%;%PATH%
|
|
|
|
::ENDLOCAL
|
|
|
|
:: Set flag so we don't initialize dccsi environment twice
|
|
SET DCCSI_ENV_QT_INIT=1
|
|
GOTO END_OF_FILE
|
|
|
|
:: Return to starting directory
|
|
POPD
|
|
|
|
:END_OF_FILE
|