Skip to content

Commit bbf7bd5

Browse files
committed
unignore all sdl build* files
1 parent acbd32e commit bbf7bd5

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

43 files changed

+10317
-1
lines changed
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
!build-scripts
1+
!build*
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
//
2+
// build.xcconfig
3+
//
4+
5+
// Configuration settings file format documentation can be found at:
6+
// https://help.apple.com/xcode/#/dev745c5c974
7+
8+
SDL_PREPROCESSOR_DEFINITIONS = SDL_VENDOR_INFO=\"libsdl.org\"
Lines changed: 62 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,62 @@
1+
plugins {
2+
id 'com.android.application'
3+
}
4+
5+
def buildWithCMake = project.hasProperty('BUILD_WITH_CMAKE');
6+
7+
android {
8+
namespace = "org.libsdl.app"
9+
compileSdkVersion 35
10+
defaultConfig {
11+
minSdkVersion 21
12+
targetSdkVersion 35
13+
versionCode 1
14+
versionName "1.0"
15+
externalNativeBuild {
16+
ndkBuild {
17+
arguments "APP_PLATFORM=android-21"
18+
// abiFilters 'armeabi-v7a', 'arm64-v8a', 'x86', 'x86_64'
19+
abiFilters 'arm64-v8a'
20+
}
21+
cmake {
22+
arguments "-DANDROID_PLATFORM=android-21", "-DANDROID_STL=c++_static"
23+
// abiFilters 'armeabi-v7a', 'arm64-v8a', 'x86', 'x86_64'
24+
abiFilters 'arm64-v8a'
25+
}
26+
}
27+
}
28+
buildTypes {
29+
release {
30+
minifyEnabled false
31+
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
32+
}
33+
}
34+
applicationVariants.all { variant ->
35+
tasks["merge${variant.name.capitalize()}Assets"]
36+
.dependsOn("externalNativeBuild${variant.name.capitalize()}")
37+
}
38+
if (!project.hasProperty('EXCLUDE_NATIVE_LIBS')) {
39+
sourceSets.main {
40+
jniLibs.srcDir 'libs'
41+
}
42+
externalNativeBuild {
43+
if (buildWithCMake) {
44+
cmake {
45+
path 'jni/CMakeLists.txt'
46+
}
47+
} else {
48+
ndkBuild {
49+
path 'jni/Android.mk'
50+
}
51+
}
52+
}
53+
54+
}
55+
lint {
56+
abortOnError = false
57+
}
58+
}
59+
60+
dependencies {
61+
implementation fileTree(include: ['*.jar'], dir: 'libs')
62+
}
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
// Top-level build file where you can add configuration options common to all sub-projects/modules.
2+
3+
buildscript {
4+
repositories {
5+
mavenCentral()
6+
google()
7+
}
8+
dependencies {
9+
classpath 'com.android.tools.build:gradle:8.7.3'
10+
11+
// NOTE: Do not place your application dependencies here; they belong
12+
// in the individual module build.gradle files
13+
}
14+
}
15+
16+
allprojects {
17+
repositories {
18+
mavenCentral()
19+
google()
20+
}
21+
}
22+
23+
task clean(type: Delete) {
24+
delete rootProject.buildDir
25+
}

0 commit comments

Comments
 (0)