install_linux.sh 688 B

123456789101112131415161718192021222324
  1. #!/bin/bash
  2. # Copyright (c) Contributors to the Open 3D Engine Project.
  3. # For complete copyright and license terms please see the LICENSE at the root of this distribution.
  4. #
  5. # SPDX-License-Identifier: Apache-2.0 OR MIT
  6. BIN_PATH=$TARGET_INSTALL_ROOT/bin
  7. INCLUDE_PATH=$TARGET_INSTALL_ROOT/include
  8. mkdir -p $INCLUDE_PATH
  9. mkdir -p $BIN_PATH
  10. # copy LICENSE.txt and header file
  11. cp -f temp/src/LICENSE.txt $TARGET_INSTALL_ROOT/ || exit $?
  12. cp -f temp/src/Source/astcenc.h $INCLUDE_PATH/ || exit $?
  13. BUILD_PATH=temp/build/Source
  14. # copy static lib and executable
  15. cp -f $BUILD_PATH/astcenc-sse4.1 $BIN_PATH/ || exit $?
  16. cp -f $BUILD_PATH/libastcenc-sse4.1-static.a $BIN_PATH/ || exit $?
  17. exit 0