build.gradle 1011 B

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