asset_mac.sh 936 B

1234567891011121314151617181920212223242526272829303132
  1. #!/usr/bin/env bash
  2. #
  3. # Copyright (c) Contributors to the Open 3D Engine Project.
  4. # For complete copyright and license terms please see the LICENSE at the root of this distribution.
  5. #
  6. # SPDX-License-Identifier: Apache-2.0 OR MIT
  7. #
  8. #
  9. set -o errexit # exit on the first failure encountered
  10. SOURCE_DIRECTORY=${PWD}
  11. if [[ ! -d $OUTPUT_DIRECTORY ]]; then
  12. echo [ci_build] Error: $OUTPUT_DIRECTORY was not found
  13. exit 1
  14. fi
  15. pushd $OUTPUT_DIRECTORY
  16. if [[ ! -e $ASSET_PROCESSOR_BINARY ]]; then
  17. echo [ci_build] Error: $ASSET_PROCESSOR_BINARY was not found
  18. exit 1
  19. fi
  20. for project in $(echo $CMAKE_LY_PROJECTS | sed "s/;/ /g")
  21. do
  22. echo [ci_build] ${ASSET_PROCESSOR_BINARY} $ASSET_PROCESSOR_OPTIONS --project-path=$SOURCE_DIRECTORY/$project --platforms=$ASSET_PROCESSOR_PLATFORMS
  23. ${ASSET_PROCESSOR_BINARY} $ASSET_PROCESSOR_OPTIONS --project-path=$SOURCE_DIRECTORY/$project --platforms=$ASSET_PROCESSOR_PLATFORMS
  24. done
  25. popd