diff options
| author | assiduous <assiduous@diligentgraphics.com> | 2021-01-01 18:31:25 +0000 |
|---|---|---|
| committer | assiduous <assiduous@diligentgraphics.com> | 2021-01-01 18:31:25 +0000 |
| commit | ae2fd744e5655fcc1c9bcb0ec280f16eb67d4123 (patch) | |
| tree | 3b27ed85995f9fa95b5c9882ee588df84572daef /NativeApp/Android | |
| parent | GLTFLoader: added convenience constructor for Model::CreateInfo (diff) | |
| download | DiligentTools-ae2fd744e5655fcc1c9bcb0ec280f16eb67d4123.tar.gz DiligentTools-ae2fd744e5655fcc1c9bcb0ec280f16eb67d4123.zip | |
Updated copyright notice
Diffstat (limited to 'NativeApp/Android')
| -rw-r--r-- | NativeApp/Android/build.gradle | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/NativeApp/Android/build.gradle b/NativeApp/Android/build.gradle index 0cb0011..f6cf7c1 100644 --- a/NativeApp/Android/build.gradle +++ b/NativeApp/Android/build.gradle @@ -4,6 +4,7 @@ apply from: "android_common.gradle" // The arcore aar library contains the native shared libraries. These are // extracted before building to a temporary directory. def arcore_libpath = "${buildDir}/arcore-native" +def ndk_dir = android.ndkDirectory android { defaultConfig { @@ -13,7 +14,7 @@ android { } externalNativeBuild { cmake { - arguments "-DANDROID_TOOLCHAIN=clang", "-DANDROID_STL=c++_static", "-DARCORE_LIBPATH=${arcore_libpath}/jni", "-DARCORE_INCLUDE=${project.projectDir}/arcore_sdk/include" + arguments "-DANDROID_TOOLCHAIN=clang", "-DANDROID_STL=c++_static", "-DARCORE_LIBPATH=${arcore_libpath}/jni", "-DARCORE_INCLUDE=${project.projectDir}/arcore_sdk/include", "-DPYTHON_EXECUTABLE=C:/Users/Egor/AppData/Local/Programs/Python/Python36/python.exe" } } } @@ -29,6 +30,12 @@ android { sourceSets { main { java.srcDirs = ['src/main/java', 'ndk_helper/src/java'] + jniLibs { + // Gradle includes libraries in the following path as dependencies + // of your CMake or ndk-build project so that they are packaged in + // your app's APK. + srcDir "${ndk_dir}/sources/third_party/vulkan/src/build-android/jniLibs" + } } } |
