build_unix_like.sh 858 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. #!/bin/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. BUILD_FOLDER=$TEMP_FOLDER/build
  10. # TEMP_FOLDER and TARGET_INSTALL_ROOT get set from the pull_and_build_from_git.py script
  11. echo Building source
  12. pushd $TEMP_FOLDER/build
  13. # Run configure
  14. ../src/configure --enable-debug=no --disable-tcl --enable-shared=no --prefix=$TEMP_FOLDER/install --with-pic=yes
  15. if [ $? -ne 0 ]
  16. then
  17. echo "Unable to configure sqlite" >&2
  18. exit 1
  19. fi
  20. # Run the make and build
  21. make
  22. if [ $? -ne 0 ]
  23. then
  24. echo "Unable to build sqlite" >&2
  25. exit 1
  26. fi
  27. # Install to a temp install folder
  28. make install
  29. if [ $? -ne 0 ]
  30. then
  31. echo "Unable to install sqlite (release)" >&2
  32. exit 1
  33. fi
  34. popd
  35. exit 0