summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Lothian <mike@fireburn.co.uk>2023-07-17 15:37:59 +0100
committerMike Lothian <mike@fireburn.co.uk>2024-11-22 10:55:50 +0000
commit0e2bf744ddaa34a81d566a8eb470f66274779a5d (patch)
tree8310866b7d518fd57e26475c57dd3f550033f5be
parentb7ba913f152faeafe7a7d02168830a2a598038d3 (diff)
Pass optimisations to CMake via build.gradle.kts
This passes compiler flags from Gradle to CMake
-rw-r--r--src/android/app/build.gradle.kts16
-rw-r--r--src/android/build.gradle.kts4
-rw-r--r--src/android/gradle/wrapper/gradle-wrapper.properties2
3 files changed, 18 insertions, 4 deletions
diff --git a/src/android/app/build.gradle.kts b/src/android/app/build.gradle.kts
index cb026211c..9b411b47b 100644
--- a/src/android/app/build.gradle.kts
+++ b/src/android/app/build.gradle.kts
@@ -28,7 +28,7 @@ android {
namespace = "org.yuzu.yuzu_emu"
compileSdkVersion = "android-34"
- ndkVersion = "26.1.10909125"
+ ndkVersion = "28.0.12674087"
buildFeatures {
viewBinding = true
@@ -178,6 +178,20 @@ android {
"-DCMAKE_EXPORT_COMPILE_COMMANDS=ON"
)
+ cFlags(
+ "-O3",
+ "-march=armv8.7a",
+ "-pipe",
+ "-flto=thin"
+ )
+
+ cppFlags(
+ "-O3",
+ "-march=armv8.7a",
+ "-pipe",
+ "-flto=thin"
+ )
+
abiFilters("arm64-v8a", "x86_64")
}
}
diff --git a/src/android/build.gradle.kts b/src/android/build.gradle.kts
index b77906ed6..4f6befefe 100644
--- a/src/android/build.gradle.kts
+++ b/src/android/build.gradle.kts
@@ -3,8 +3,8 @@
// Top-level build file where you can add configuration options common to all sub-projects/modules.
plugins {
- id("com.android.application") version "8.1.2" apply false
- id("com.android.library") version "8.1.2" apply false
+ id("com.android.application") version "8.1.4" apply false
+ id("com.android.library") version "8.1.4" apply false
id("org.jetbrains.kotlin.android") version "1.9.20" apply false
}
diff --git a/src/android/gradle/wrapper/gradle-wrapper.properties b/src/android/gradle/wrapper/gradle-wrapper.properties
index 578c71b94..10cba3572 100644
--- a/src/android/gradle/wrapper/gradle-wrapper.properties
+++ b/src/android/gradle/wrapper/gradle-wrapper.properties
@@ -3,4 +3,4 @@ distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
-distributionUrl=https\://services.gradle.org/distributions/gradle-8.1-bin.zip
+distributionUrl=https\://services.gradle.org/distributions/gradle-8.2-bin.zip