Skip to content

Commit 9ce2668

Browse files
author
Ellen Poe
committed
Building and running now
1 parent c6efd06 commit 9ce2668

File tree

4,679 files changed

+1299293
-208169
lines changed

Some content is hidden

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

4,679 files changed

+1299293
-208169
lines changed

.bazelrc

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
build --config=debug
2+
build --fat_apk_cpu=arm64-v8a
3+
build --crosstool_top=@androidndk//:toolchain-libcpp --cpu=arm64-v8a
4+
build --host_crosstool_top=@bazel_tools//tools/cpp:toolchain
5+
build --android_crosstool_top=@androidndk//:toolchain-libcpp
6+
build:debug --copt=-g

android/java/AndroidManifest.xml

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,14 @@
33
com.gamemaker.game
44
-->
55
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
6-
package="org.libsdl.app"
6+
package="me.ellenhp.tuxracer"
77
android:versionCode="1"
88
android:versionName="1.0"
99
android:installLocation="auto">
1010

11+
<uses-sdk android:minSdkVersion="21"
12+
android:targetSdkVersion="28" />
13+
1114
<!-- OpenGL ES 2.0 -->
1215
<uses-feature android:glEsVersion="0x00020000" />
1316

@@ -65,10 +68,11 @@
6568
<!-- Example of setting SDL hints from AndroidManifest.xml:
6669
<meta-data android:name="SDL_ENV.SDL_ACCELEROMETER_AS_JOYSTICK" android:value="0"/>
6770
-->
68-
69-
<activity android:name="SDLActivity"
71+
72+
<activity android:name="MainActivity"
7073
android:label="@string/app_name"
7174
android:alwaysRetainTaskState="true"
75+
android:screenOrientation="landscape"
7276
android:launchMode="singleInstance"
7377
android:configChanges="orientation|uiMode|screenLayout|screenSize|smallestScreenSize|keyboard|keyboardHidden|navigation"
7478
>

android/java/BUILD

Lines changed: 15 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,23 @@
1-
load("@rules_android//android:rules.bzl", "android_binary", "android_library")
2-
3-
android_library(
4-
name = "lib",
5-
srcs = glob(["org/libsdl/app/*.java"]),
6-
custom_package = "me.ellenhp.tuxracer",
7-
manifest = "AndroidManifest.xml",
8-
resource_files = glob(["res/**/*"]),
9-
)
1+
load("@rules_android//android:rules.bzl", "android_binary")
102

113
android_binary(
124
name = "app",
5+
srcs = glob([
6+
"org/libsdl/app/*.java",
7+
"me/ellenhp/tuxracer/*.java",
8+
]),
9+
assets = glob(["assets/**/*"]),
10+
assets_dir = "assets",
1311
manifest = "AndroidManifest.xml",
12+
resource_files = glob(["res/**/*"]),
1413
deps = [
15-
":lib",
14+
"//deps/sdl",
15+
"//deps/sdl_image",
16+
"//deps/sdl_image:libjpeg",
17+
"//deps/sdl_image:libpng",
18+
"//deps/sdl_mixer",
19+
"//deps/sdl_mixer:libmodplug",
20+
"//deps/tcl",
1621
"//native",
1722
],
1823
)

0 commit comments

Comments
 (0)