mirror of
https://github.com/libretro/RetroArch
synced 2025-02-08 15:40:14 +00:00
aarch64 is a 64-bit only build that was used for some time so users on the main builds could use armv7 dynarecs. Keeping for now so users of this variant won't lose updates. ra32 is 32-bit only. Google is mandating 64-bit support in all apps on the play store. So users of the main builds on 64-bit devices will no longer have access to 32-bit cores. This build will be available on alternate stores and via sideloading so cores with only 32-bit dynarecs can be used on 64-bit devices.
100 lines
1.8 KiB
Groovy
100 lines
1.8 KiB
Groovy
buildscript {
|
|
repositories {
|
|
google()
|
|
jcenter()
|
|
}
|
|
|
|
dependencies {
|
|
classpath "com.android.tools.build:gradle:3.4.1"
|
|
}
|
|
}
|
|
|
|
allprojects {
|
|
repositories {
|
|
google()
|
|
jcenter()
|
|
}
|
|
}
|
|
|
|
apply plugin: 'com.android.application'
|
|
|
|
android {
|
|
compileSdkVersion 28
|
|
buildToolsVersion "28.0.3"
|
|
|
|
flavorDimensions "variant"
|
|
|
|
defaultConfig {
|
|
externalNativeBuild {
|
|
ndkBuild {
|
|
arguments "-j${Runtime.runtime.availableProcessors()}"
|
|
}
|
|
}
|
|
}
|
|
|
|
productFlavors {
|
|
normal {
|
|
dimension "variant"
|
|
}
|
|
aarch64 {
|
|
applicationIdSuffix '.aarch64'
|
|
resValue "string", "app_name", "RetroArch (AArch64)"
|
|
|
|
dimension "variant"
|
|
ndk {
|
|
abiFilters 'arm64-v8a', 'x86_64'
|
|
}
|
|
}
|
|
ra32 {
|
|
applicationIdSuffix '.ra32'
|
|
resValue "string", "app_name", "RetroArch (32-bit)"
|
|
|
|
dimension "variant"
|
|
ndk {
|
|
abiFilters 'armeabi-v7a', 'x86'
|
|
}
|
|
}
|
|
}
|
|
|
|
sourceSets {
|
|
main {
|
|
manifest.srcFile 'AndroidManifest.xml'
|
|
assets.srcDirs = ['assets']
|
|
java.srcDirs = ['src', '../phoenix-common/src']
|
|
jniLibs.srcDir '../phoenix-common/libs'
|
|
jni.srcDirs = []
|
|
res.srcDirs = ['../phoenix-common/res']
|
|
}
|
|
aarch64 {
|
|
res.srcDirs = ['res64']
|
|
}
|
|
}
|
|
|
|
externalNativeBuild {
|
|
ndkBuild {
|
|
path '../phoenix-common/jni/Android.mk'
|
|
}
|
|
}
|
|
|
|
signingConfigs {
|
|
if (project.hasProperty("RELEASE_STORE_FILE")) {
|
|
release {
|
|
storeFile file(RELEASE_STORE_FILE)
|
|
storePassword RELEASE_STORE_PASSWORD
|
|
keyAlias RELEASE_KEY_ALIAS
|
|
keyPassword RELEASE_KEY_PASSWORD
|
|
}
|
|
}
|
|
}
|
|
|
|
buildTypes {
|
|
release {
|
|
signingConfig signingConfigs.release
|
|
}
|
|
}
|
|
}
|
|
|
|
dependencies {
|
|
implementation 'com.google.android.gms:play-services-location:16.0.0'
|
|
}
|