Open aitazhixin opened 2 years ago
INPUT:
declare -a ANDROID_ABI_LIST=("arm64-v8a" "x86" "x86_64") export PYTHON3_EXEC="$( which python3 )" export PYTHON3_LIBRARY="$( ${PYTHON3_EXEC} -c 'import os.path; from distutils import sysconfig; print(os.path.realpath(os.path.join(sysconfig.get_config_var("LIBPL"), sysconfig.get_config_var("LDLIBRARY"))))' )" export PYTHON3_INCLUDE_DIR="$( ${PYTHON3_EXEC} -c 'from distutils import sysconfig; print(sysconfig.get_config_var("INCLUDEPY"))' )" export ANDROID_NATIVE_API_LEVEL=android-24 export ANDROID_STL=c++_shared export RMW_IMPLEMENTATION=rmw_cyclonedds_cpp
ANDROID_ABI=armeabi-v7a
export ANDROID_TOOLCHAIN_NAME=arm-linux-androideabi-clang
colcon build \ --ament-gradle-args \ -Pament.android_stl=${ANDROID_STL} -Pament.android_abi=${ANDROID_ABI} -Pament.android_ndk=${ANDROID_NDK} \ --packages-ignore cyclonedds rcl_logging_log4cxx rosidl_generator_py \ --cmake-args \ -DPYTHON_EXECUTABLE=${PYTHON3_EXEC} \ -DPYTHON_LIBRARY=${PYTHON3_LIBRARY} \ -DPYTHON_INCLUDE_DIR=${PYTHON3_INCLUDE_DIR} \ -DCMAKE_TOOLCHAIN_FILE=${ANDROID_NDK}/build/cmake/android.toolchain.cmake \ -DANDROID_FUNCTION_LEVEL_LINKING=OFF \ -DANDROID_NATIVE_API_LEVEL=${ANDROID_NATIVE_API_LEVEL} \ -DANDROID_TOOLCHAIN_NAME=${ANDROID_TOOLCHAIN_NAME} \ -DANDROID_STL=${ANDROID_STL} \ -DANDROID_ABI=${ANDROID_ABI} \ -DANDROID_NDK=${ANDROID_NDK} \ -DTHIRDPARTY=ON \ -DCOMPILE_EXAMPLES=OFF \ -DBUILD_TESTING=OFF \ -DCMAKE_FIND_ROOT_PATH="${PWD}/install"
OUTPUT:
INPUT:
!/bin/bash
declare -a ANDROID_ABI_LIST=("arm64-v8a" "x86" "x86_64") export PYTHON3_EXEC="$( which python3 )" export PYTHON3_LIBRARY="$( ${PYTHON3_EXEC} -c 'import os.path; from distutils import sysconfig; print(os.path.realpath(os.path.join(sysconfig.get_config_var("LIBPL"), sysconfig.get_config_var("LDLIBRARY"))))' )" export PYTHON3_INCLUDE_DIR="$( ${PYTHON3_EXEC} -c 'from distutils import sysconfig; print(sysconfig.get_config_var("INCLUDEPY"))' )" export ANDROID_NATIVE_API_LEVEL=android-24 export ANDROID_STL=c++_shared export RMW_IMPLEMENTATION=rmw_cyclonedds_cpp
ANDROID_ABI=armeabi-v7a
export ANDROID_TOOLCHAIN_NAME=arm-linux-androideabi-clang
colcon build \ --ament-gradle-args \ -Pament.android_stl=${ANDROID_STL} -Pament.android_abi=${ANDROID_ABI} -Pament.android_ndk=${ANDROID_NDK} \ --packages-ignore cyclonedds rcl_logging_log4cxx rosidl_generator_py \ --cmake-args \ -DPYTHON_EXECUTABLE=${PYTHON3_EXEC} \ -DPYTHON_LIBRARY=${PYTHON3_LIBRARY} \ -DPYTHON_INCLUDE_DIR=${PYTHON3_INCLUDE_DIR} \ -DCMAKE_TOOLCHAIN_FILE=${ANDROID_NDK}/build/cmake/android.toolchain.cmake \ -DANDROID_FUNCTION_LEVEL_LINKING=OFF \ -DANDROID_NATIVE_API_LEVEL=${ANDROID_NATIVE_API_LEVEL} \ -DANDROID_TOOLCHAIN_NAME=${ANDROID_TOOLCHAIN_NAME} \ -DANDROID_STL=${ANDROID_STL} \ -DANDROID_ABI=${ANDROID_ABI} \ -DANDROID_NDK=${ANDROID_NDK} \ -DTHIRDPARTY=ON \ -DCOMPILE_EXAMPLES=OFF \ -DBUILD_TESTING=OFF \ -DCMAKE_FIND_ROOT_PATH="${PWD}/install"
OUTPUT: