mirror of
https://github.com/love2d/love-android.git
synced 2026-08-14 01:20:55 +02:00
Use prebuilt Oboe from prefab.
This commit is contained in:
+17
-1
@@ -15,7 +15,10 @@ android {
|
||||
externalNativeBuild {
|
||||
cmake {
|
||||
arguments "-DANDROID_STL=c++_shared"
|
||||
targets "love"
|
||||
// Transitive shared library dependency is not taken into account, this
|
||||
// will cause liboboe.so not get included. love depends on OpenAL that
|
||||
// depends on oboe::oboe. So, add "OpenAL" target.
|
||||
targets "love", "OpenAL"
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -27,6 +30,10 @@ android {
|
||||
}
|
||||
}
|
||||
|
||||
buildFeatures {
|
||||
prefab true
|
||||
}
|
||||
|
||||
flavorDimensions 'mode', 'recording'
|
||||
productFlavors {
|
||||
normal {
|
||||
@@ -76,6 +83,14 @@ android {
|
||||
version '3.21.0+'
|
||||
}
|
||||
}
|
||||
packagingOptions {
|
||||
// Due to inclusion of "OpenAL" target, these files are included too, but this
|
||||
// file is provided by Android as public API. Exclude them!
|
||||
exclude 'lib/armeabi-v7a/libOpenSLES.so'
|
||||
exclude 'lib/arm64-v8a/libOpenSLES.so'
|
||||
exclude 'lib/x86/libOpenSLES.so'
|
||||
exclude 'lib/x86_64/libOpenSLES.so'
|
||||
}
|
||||
}
|
||||
|
||||
dependencies {
|
||||
@@ -86,4 +101,5 @@ dependencies {
|
||||
implementation 'androidx.navigation:navigation-ui:2.4.2'
|
||||
implementation 'androidx.recyclerview:recyclerview:1.2.1'
|
||||
implementation 'androidx.swiperefreshlayout:swiperefreshlayout:1.1.0'
|
||||
implementation 'com.google.oboe:oboe:1.6.1'
|
||||
}
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
cmake_minimum_required(VERSION 3.10)
|
||||
cmake_minimum_required(VERSION 3.21)
|
||||
|
||||
project(love-android LANGUAGES C CXX)
|
||||
|
||||
|
||||
+1
-1
Submodule app/src/main/cpp/love updated: 2822f17a39...2879074177
Submodule app/src/main/cpp/megasource updated: be81e424cb...25beb07460
@@ -79,6 +79,7 @@ public class GameActivity extends SDLActivity {
|
||||
return new String[] {
|
||||
"c++_shared",
|
||||
"SDL2",
|
||||
"oboe",
|
||||
"openal",
|
||||
"luajit",
|
||||
"love",
|
||||
|
||||
Reference in New Issue
Block a user