core_launch.bat 1.2 KB

12345678910111213141516171819202122232425262728293031
  1. :: Copyright (C) 2018 RDA Technologies Limited and\or its affiliates("RDA").
  2. :: All rights reserved.
  3. ::
  4. :: This software is supplied "AS IS" without any warranties.
  5. :: RDA assumes no responsibility or liability for the use of the software,
  6. :: conveys no license or title under any patent, copyright, or mask work
  7. :: right to the product. RDA reserves the right to make changes in the
  8. :: software without notification. RDA also make no representation or
  9. :: warranty that such application will be suitable for the specified use
  10. :: without further testing or modification.
  11. @echo off
  12. set PROJECT_ROOT=%CD%
  13. set BUILD_TARGET=appimage
  14. set BUILD_RELEASE_TYPE=debug
  15. set PROJECT_OUT=%PROJECT_ROOT%\out\%BUILD_TARGET%_%BUILD_RELEASE_TYPE%
  16. call :add_path %PROJECT_ROOT%\prebuilts\win32\bin
  17. call :add_path %PROJECT_ROOT%\prebuilts\win32\cmake\bin
  18. call :add_path %PROJECT_ROOT%\prebuilts\win32\python3
  19. call :add_path %PROJECT_ROOT%\prebuilts\win32\gcc-arm-none-eabi\bin
  20. call :add_path %PROJECT_ROOT%\tools
  21. call :add_path %PROJECT_ROOT%\tools\win32
  22. if not exist %PROJECT_OUT% mkdir %PROJECT_OUT%
  23. exit /B 0
  24. :add_path
  25. (echo ";%PATH%;" | find /C /I ";%1;" > nul) || set "PATH=%1;%PATH%"
  26. goto :eof