Env_Dev.bat.example 2.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980
  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. :: you can generate a cached settings.local.json via running the
  22. :: config.py from commandline with the following commands
  23. :: open a CMD
  24. > cd C:\path\to\o3de\Gems\AtomLyIntegration\TechnicalArt\DccScriptingInterface
  25. > python config.py -arg1=True -arg2=True
  26. :: propogate additional envars into the dev environment
  27. set O3DE_BUILD_FOO=True
  28. echo O3DE_BUILD_FOO = %O3DE_BUILD_FOO%
  29. :: set the location of the engine root
  30. set O3DE_DEV=C:\depot\o3de-dev
  31. echo O3DE_DEV = %O3DE_DEV%
  32. :: if you are a developer and working in an engine-centric way
  33. :: this will set the folder you build into
  34. set O3DE_BUILD_FOLDER=build
  35. echo O3DE_BUILD_FOLDER = %O3DE_BUILD_FOLDER%
  36. :: build out a path to the build and bin folder
  37. set PATH_O3DE_BUILD=%O3DE_DEV%\%O3DE_BUILD_FOLDER%
  38. echo PATH_O3DE_BUILD = %PATH_O3DE_BUILD%
  39. set PATH_O3DE_BIN=%PATH_O3DE_BUILD%\bin\profile
  40. echo PATH_O3DE_BIN = %PATH_O3DE_BIN%
  41. :: or you can just set the bin folder
  42. :: this is the sdk installer path
  43. ::set PATH_O3DE_BIN=C:\O3DE\0.0.0.0\bin\Windows\profile\Default
  44. :echo PATH_O3DE_BIN = %PATH_O3DE_BIN%
  45. :: enables additional debug behaviour in code
  46. set DCCSI_GDEBUG=True
  47. echo DCCSI_GDEBUG = %DCCSI_GDEBUG%
  48. :: enables additional developer behaviours like auto-attach debugger
  49. set DCCSI_DEV_MODE=True
  50. echo DCCSI_DEV_MODE = %DCCSI_DEV_MODE%
  51. :: enables which debugger to use
  52. :: currently only wing is supported
  53. set DCCSI_GDEBUGGER=WING
  54. echo DCCSI_GDEBUGGER = %DCCSI_GDEBUGGER%
  55. :: Default level logger will handle
  56. :: Override this to control the setting
  57. :: CRITICAL:50
  58. :: ERROR:40
  59. :: WARNING:30
  60. :: INFO:20
  61. :: DEBUG:10
  62. :: NOTSET:0
  63. set DCCSI_LOGLEVEL=10
  64. echo DCCSI_LOGLEVEL = %DCCSI_LOGLEVEL%