build.gradle 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. plugins {
  2. id 'com.android.application'
  3. }
  4. android {
  5. compileSdk 33
  6. ndkVersion "26.1.10909125"
  7. defaultConfig {
  8. applicationId "com.joltphysics.performancetest"
  9. minSdk 21
  10. targetSdk 33
  11. versionCode 1
  12. versionName "1.0"
  13. ndk.abiFilters 'arm64-v8a', 'armeabi-v7a', 'x86_64', 'x86'
  14. externalNativeBuild {
  15. cmake {
  16. cppFlags '-std=c++17 -Wall -Werror -ffp-model=precise -ffp-contract=off -DJPH_PROFILE_ENABLED -DJPH_DEBUG_RENDERER'
  17. arguments '-DANDROID_TOOLCHAIN=clang', '-DANDROID_STL=c++_static', '-DCROSS_PLATFORM_DETERMINISTIC=ON'
  18. }
  19. }
  20. signingConfig signingConfigs.debug
  21. }
  22. buildTypes {
  23. release {
  24. minifyEnabled false
  25. }
  26. }
  27. compileOptions {
  28. sourceCompatibility JavaVersion.VERSION_1_8
  29. targetCompatibility JavaVersion.VERSION_1_8
  30. }
  31. externalNativeBuild {
  32. cmake {
  33. path file('src/main/cpp/CMakeLists.txt')
  34. version '3.22.1'
  35. }
  36. }
  37. buildFeatures {
  38. viewBinding true
  39. }
  40. namespace 'com.joltphysics.performancetest'
  41. }
  42. dependencies {
  43. }