summaryrefslogtreecommitdiff
path: root/android
diff options
context:
space:
mode:
authorTriang3l <triang3l@yandex.ru>2021-10-30 00:01:27 +0300
committerTriang3l <triang3l@yandex.ru>2021-10-30 00:01:27 +0300
commit7e6cf349e21c2483ee9b12b8cb4543fa545c9c01 (patch)
tree6ab553899503713ba70d54ef2653886f340e7bca /android
parent2962a266b5857ef2b0bfc97064100db1b40aa0bd (diff)
[Build] Use first-party premake-androidndk (#1878)
Diffstat (limited to 'android')
-rw-r--r--android/android_studio_project/app/build.gradle38
-rw-r--r--android/android_studio_project/build.gradle6
2 files changed, 25 insertions, 19 deletions
diff --git a/android/android_studio_project/app/build.gradle b/android/android_studio_project/app/build.gradle
index d199beaa1..ff6acf7e2 100644
--- a/android/android_studio_project/app/build.gradle
+++ b/android/android_studio_project/app/build.gradle
@@ -4,23 +4,29 @@ plugins {
android {
compileSdkVersion 30
- buildToolsVersion "30.0.2"
- ndkVersion '22.0.6917172 rc1'
+ buildToolsVersion '30.0.2'
+ ndkVersion '23.0.7599858'
defaultConfig {
- applicationId "jp.xenia.emulator"
+ applicationId 'jp.xenia.emulator'
// 24 (7.0) - Vulkan.
minSdkVersion 24
targetSdkVersion 30
versionCode 1
- versionName "Prototype"
+ versionName 'Prototype'
externalNativeBuild {
ndkBuild {
- arguments "NDK_APPLICATION_MK:=../../../build/xenia_Application.mk"
+ arguments 'NDK_APPLICATION_MK:=../../../build/xenia.Application.mk',
+ 'PREMAKE_ANDROIDNDK_PLATFORMS:=Android-ARM64',
+ 'PREMAKE_ANDROIDNDK_PLATFORMS+=Android-x86_64',
+ // Work around "Bad file descriptor" on Windows on NDK r22+.
+ '--output-sync=none'
}
}
ndk {
- abiFilters 'arm64-v8a'
+ abiFilters 'arm64-v8a', 'x86_64'
+ jobs Runtime.runtime.availableProcessors()
+ stl 'c++_static'
}
}
@@ -28,40 +34,40 @@ android {
release {
externalNativeBuild {
ndkBuild {
- arguments "PM5_CONFIG:=release_android"
+ arguments 'PREMAKE_ANDROIDNDK_CONFIGURATIONS:=Release'
}
}
minifyEnabled true
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
}
debug {
- applicationIdSuffix ".debug"
+ applicationIdSuffix '.debug'
debuggable true
externalNativeBuild {
ndkBuild {
- arguments "PM5_CONFIG:=debug_android"
+ arguments 'PREMAKE_ANDROIDNDK_CONFIGURATIONS:=Debug'
}
}
}
checked {
- applicationIdSuffix ".checked"
+ applicationIdSuffix '.checked'
debuggable true
externalNativeBuild {
ndkBuild {
- arguments "PM5_CONFIG:=checked_android"
+ arguments 'PREMAKE_ANDROIDNDK_CONFIGURATIONS:=Checked'
}
}
}
}
- flavorDimensions "distribution"
+ flavorDimensions 'distribution'
productFlavors {
github {
- dimension "distribution"
- applicationIdSuffix ".github"
+ dimension 'distribution'
+ applicationIdSuffix '.github'
}
googlePlay {
- dimension "distribution"
+ dimension 'distribution'
// TODO(Triang3l): Provide a signing config for core contributors only.
}
}
@@ -73,7 +79,7 @@ android {
externalNativeBuild {
ndkBuild {
- path file('../../../build/xenia_Android.mk')
+ path file('../../../build/xenia.wks.Android.mk')
}
}
} \ No newline at end of file
diff --git a/android/android_studio_project/build.gradle b/android/android_studio_project/build.gradle
index 4d24be2c6..d51d77442 100644
--- a/android/android_studio_project/build.gradle
+++ b/android/android_studio_project/build.gradle
@@ -2,10 +2,10 @@
buildscript {
repositories {
google()
- jcenter()
+ mavenCentral()
}
dependencies {
- classpath "com.android.tools.build:gradle:4.1.1"
+ classpath 'com.android.tools.build:gradle:7.0.2'
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
@@ -15,7 +15,7 @@ buildscript {
allprojects {
repositories {
google()
- jcenter()
+ mavenCentral()
}
}