0% found this document useful (0 votes)
6 views1 page

Hash Key

The document outlines the values and paths used to compute a hash for a project folder in an Android build environment. It specifies various components such as AGP version, NDK path, and CMake version, along with build configurations and output directories. The document emphasizes that the hash calculation should not depend on the absolute project path.

Uploaded by

laydenallison8
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
6 views1 page

Hash Key

The document outlines the values and paths used to compute a hash for a project folder in an Android build environment. It specifies various components such as AGP version, NDK path, and CMake version, along with build configurations and output directories. The document emphasizes that the hash calculation should not depend on the absolute project path.

Uploaded by

laydenallison8
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd

# Values used to calculate the hash in this folder name.

# Should not depend on the absolute path of the project itself.


# - AGP: 8.11.1.
# - $NDK is the path to NDK 27.0.12077973.
# - $PROJECT is the path to the parent folder of the root Gradle build file.
# - $ABI is the ABI to be built with. The specific value doesn't contribute to
the value of the hash.
# - $HASH is the hash value computed from this text.
# - $CMAKE is the path to CMake 3.22.1.
# - $NINJA is the path to Ninja.
-H$PROJECT/app/src/main/cpp
-DCMAKE_SYSTEM_NAME=Android
-DCMAKE_EXPORT_COMPILE_COMMANDS=ON
-DCMAKE_SYSTEM_VERSION=35
-DANDROID_PLATFORM=android-35
-DANDROID_ABI=$ABI
-DCMAKE_ANDROID_ARCH_ABI=$ABI
-DANDROID_NDK=$NDK
-DCMAKE_ANDROID_NDK=$NDK
-DCMAKE_TOOLCHAIN_FILE=$NDK/build/cmake/android.toolchain.cmake
-DCMAKE_MAKE_PROGRAM=$NINJA
-DCMAKE_LIBRARY_OUTPUT_DIRECTORY=$PROJECT/app/build/intermediates/cxx/Debug/$HASH/
obj/$ABI
-DCMAKE_RUNTIME_OUTPUT_DIRECTORY=$PROJECT/app/build/intermediates/cxx/Debug/$HASH/
obj/$ABI
-DCMAKE_BUILD_TYPE=Debug
-DCMAKE_FIND_ROOT_PATH=$PROJECT/app/.cxx/Debug/$HASH/prefab/$ABI/prefab
-B$PROJECT/app/.cxx/Debug/$HASH/$ABI
-GNinja

You might also like