neugartf / sdk-tools

building android-sdk tools for Android

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Building platform-tools and build-tools for Android, such as aapt aapt2 aidl zipalign adb fastboot ... etc

If you need other tools, please refer to existing tools to add CMake file

Currently only test aarch64 architecture

For other architectures you may need to refer to Android.bp to modify the corresponding CMake file


How to build

cd /path/to/sdk-tools 

mkdir build && cd build

# settings the ndk toolchain
NDK_TOOLCHAIN=/path/to/android-ndk-r23/toolchains/llvm/prebuilt/linux-x86_64

cmake -G 'Ninja' \
    -DCMAKE_C_COMPILER=$NDK_TOOLCHAIN/bin/aarch64-linux-android30-clang \
    -DCMAKE_CXX_COMPILER=$NDK_TOOLCHAIN/bin/aarch64-linux-android30-clang++ \
    -DCMAKE_SYSROOT=$NDK_TOOLCHAIN/sysroot \
    -DCMAKE_BUILD_TYPE=Release \
    ..

ninja -j16

# package the source code
ninja package_source

About

building android-sdk tools for Android

License:Apache License 2.0


Languages

Language:C++ 62.7%Language:CMake 37.2%Language:C 0.1%