mirror of
https://github.com/isledecomp/isle-portable.git
synced 2026-01-13 19:21:16 +00:00
run cmake with -DANDROID_NDK_PATH=/path/to/ndk to generate the .aar & run the gradle build if using Android Studio you will have to run the aar script manually(or do the cmake cmd) then put the normal cmake args inside '-PcmakeArgs="-DCMAKE_BUILD_TYPE=Release ...."' at `Settings > Build, Execution, Deployment > Gradle-Android Compiler > Command-line Options` Check CMakeLists.txt Android build block for more info
53 lines
1.2 KiB
Groovy
53 lines
1.2 KiB
Groovy
plugins {
|
|
id 'com.android.application'
|
|
}
|
|
|
|
android {
|
|
namespace "org.legoisland.isle"
|
|
compileSdk 35
|
|
|
|
defaultConfig {
|
|
applicationId 'org.legoisland.isle'
|
|
minSdk 21
|
|
targetSdk 35
|
|
versionCode 1
|
|
versionName '1.0'
|
|
|
|
externalNativeBuild {
|
|
cmake {
|
|
arguments '-DANDROID_STL=c++_shared'
|
|
if (project.hasProperty('cmakeArgs')) {
|
|
project.cmakeArgs.split(" ").each {arg -> arguments arg}
|
|
}
|
|
abiFilters 'armeabi-v7a', 'arm64-v8a', 'x86', 'x86_64'
|
|
// abiFilters 'x86_64', 'arm64-v8a'
|
|
}
|
|
}
|
|
}
|
|
|
|
externalNativeBuild {
|
|
cmake {
|
|
version "3.30.5"
|
|
path '../../CMakeLists.txt'
|
|
}
|
|
}
|
|
|
|
buildTypes {
|
|
release {
|
|
minifyEnabled false
|
|
// proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
|
|
}
|
|
}
|
|
compileOptions {
|
|
sourceCompatibility JavaVersion.VERSION_1_8
|
|
targetCompatibility JavaVersion.VERSION_1_8
|
|
}
|
|
buildFeatures {
|
|
prefab true
|
|
}
|
|
}
|
|
|
|
dependencies {
|
|
implementation files('libs/SDL3.aar')
|
|
}
|