Env_Dev.bat.example 2.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182
  1. @echo off
  2. REM
  3. REM Copyright (c) Contributors to the Open 3D Engine Project.
  4. REM For complete copyright and license terms please see the LICENSE at the root of this distribution.
  5. REM
  6. REM SPDX-License-Identifier: Apache-2.0 OR MIT
  7. REM
  8. REM
  9. echo.
  10. echo _____________________________________________________________________
  11. echo.
  12. echo ~ O3DE DCCsi Env Dev ...
  13. echo _____________________________________________________________________
  14. echo.
  15. echo ~ local env settings
  16. echo.
  17. :: These are local overrides for developers launching the dev environment
  18. :: Using the .bat files (for windows)
  19. :: You can make similar overrides that propogate via python, by creating
  20. :: and editing a settings.local.json file with these values
  21. :: propogate additional envars into the dev environment
  22. set O3DE_BUILD_FOO=True
  23. echo O3DE_BUILD_FOO = %O3DE_BUILD_FOO%
  24. :: set the location of the engine root
  25. set O3DE_DEV=C:\depot\o3de-dev
  26. echo O3DE_DEV = %O3DE_DEV%
  27. :: if you are a developer and working in an engine-centric way
  28. :: this will set the folder you build into
  29. set O3DE_BUILD_FOLDER=build
  30. echo O3DE_BUILD_FOLDER = %O3DE_BUILD_FOLDER%
  31. :: build out a path to the build and bin folder
  32. set PATH_O3DE_BUILD=%O3DE_DEV%\%O3DE_BUILD_FOLDER%
  33. echo PATH_O3DE_BUILD = %PATH_O3DE_BUILD%
  34. set PATH_O3DE_BIN=%PATH_O3DE_BUILD%\bin\profile
  35. echo PATH_O3DE_BIN = %PATH_O3DE_BIN%
  36. :: or you can just set the bin folder
  37. :: this is the sdk installer path
  38. ::set PATH_O3DE_BIN=C:\O3DE\0.0.0.0\bin\Windows\profile\Default
  39. :echo PATH_O3DE_BIN = %PATH_O3DE_BIN%
  40. :: enables additional debug behaviour in code
  41. set DCCSI_GDEBUG=True
  42. echo DCCSI_GDEBUG = %DCCSI_GDEBUG%
  43. :: enables additional developer behaviours like auto-attach debugger
  44. set DCCSI_DEV_MODE=True
  45. echo DCCSI_DEV_MODE = %DCCSI_DEV_MODE%
  46. :: enables which debugger to use
  47. :: currently only wing is supported
  48. set DCCSI_GDEBUGGER=WING
  49. echo DCCSI_GDEBUGGER = %DCCSI_GDEBUGGER%
  50. :: Default level logger will handle
  51. :: Override this to control the setting
  52. :: CRITICAL:50
  53. :: ERROR:40
  54. :: WARNING:30
  55. :: INFO:20
  56. :: DEBUG:10
  57. :: NOTSET:0
  58. set DCCSI_LOGLEVEL=10
  59. echo DCCSI_LOGLEVEL = %DCCSI_LOGLEVEL%
  60. :: Set your preferred defualt Maya and Python version
  61. set MAYA_VERSION=2023
  62. set DCCSI_PY_VERSION_MAJOR=3
  63. set DCCSI_PY_VERSION_MINOR=9
  64. set DCCSI_PY_VERSION_RELEASE=7
  65. :: and you can alter the install path
  66. set MAYA_LOCATION=%ProgramFiles%\Autodesk\Maya%MAYA_VERSION%