mksrt 1.0 KB

1234567891011121314151617181920212223242526272829303132
  1. #!/bin/sh
  2. while getopts s:i:t:n:a:e: option
  3. do
  4. case "${option}"
  5. in
  6. s) SRC_DIR=${OPTARG};;
  7. i) INSTALL_DIR=${OPTARG};;
  8. t) ARCH_ABI=${OPTARG};;
  9. n) NDK_ROOT=${OPTARG};;
  10. a) API_LEVEL=${OPTARG};;
  11. e) ENC_LIB=${OPTARG};;
  12. *) twentytwo=${OPTARG};;
  13. esac
  14. done
  15. cd $SRC_DIR
  16. ./configure --use-enclib=$ENC_LIB \
  17. --use-openssl-pc=OFF \
  18. --OPENSSL_INCLUDE_DIR=$INSTALL_DIR/include \
  19. --OPENSSL_CRYPTO_LIBRARY=$INSTALL_DIR/lib/libcrypto.a --OPENSSL_SSL_LIBRARY=$INSTALL_DIR/lib/libssl.a \
  20. --STATIC_MBEDTLS=FALSE \
  21. --MBEDTLS_INCLUDE_DIR=$INSTALL_DIR/include --MBEDTLS_INCLUDE_DIRS=$INSTALL_DIR/include \
  22. --MBEDTLS_LIBRARIES=$INSTALL_DIR/lib/libmbedtls.so \
  23. --CMAKE_PREFIX_PATH=$INSTALL_DIR --CMAKE_INSTALL_PREFIX=$INSTALL_DIR --CMAKE_ANDROID_NDK=$NDK_ROOT \
  24. --CMAKE_SYSTEM_NAME=Android --CMAKE_SYSTEM_VERSION=$API_LEVEL --CMAKE_ANDROID_ARCH_ABI=$ARCH_ABI \
  25. --CMAKE_C_FLAGS="-fPIC" --CMAKE_SHARED_LINKER_FLAGS="-Wl,--build-id" \
  26. --enable-c++11 --enable-stdcxx-sync \
  27. --enable-debug=2 --enable-logging=0 --enable-heavy-logging=0 --enable-apps=0
  28. make
  29. make install