-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
38 changed files
with
500 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
Binary file added
BIN
+17 Bytes
android/.gradle/8.1.1/dependencies-accessors/dependencies-accessors.lock
Binary file not shown.
Empty file.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Empty file.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
#Wed Jun 05 17:51:19 KRAT 2024 | ||
gradle.version=8.1.1 |
Binary file not shown.
Binary file not shown.
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,75 @@ | ||
def buildAsLibrary = project.hasProperty('BUILD_AS_LIBRARY'); | ||
def buildAsApplication = !buildAsLibrary | ||
if (buildAsApplication) { | ||
apply plugin: 'com.android.application' | ||
} | ||
else { | ||
apply plugin: 'com.android.library' | ||
} | ||
|
||
android { | ||
if (buildAsApplication) { | ||
namespace "com.pixelsuft.halfix" | ||
} | ||
compileSdkVersion 34 | ||
defaultConfig { | ||
minSdkVersion 19 | ||
targetSdkVersion 34 | ||
versionCode 1 | ||
versionName "1.0" | ||
externalNativeBuild { | ||
ndkBuild { | ||
arguments "APP_PLATFORM=android-19" | ||
abiFilters 'armeabi-v7a', 'arm64-v8a', 'x86', 'x86_64' | ||
} | ||
// cmake { | ||
// arguments "-DANDROID_APP_PLATFORM=android-19", "-DANDROID_STL=c++_static" | ||
// // abiFilters 'armeabi-v7a', 'arm64-v8a', 'x86', 'x86_64' | ||
// abiFilters 'arm64-v8a' | ||
// } | ||
} | ||
} | ||
buildTypes { | ||
release { | ||
minifyEnabled false | ||
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' | ||
} | ||
} | ||
applicationVariants.all { variant -> | ||
tasks["merge${variant.name.capitalize()}Assets"] | ||
.dependsOn("externalNativeBuild${variant.name.capitalize()}") | ||
} | ||
if (!project.hasProperty('EXCLUDE_NATIVE_LIBS')) { | ||
sourceSets.main { | ||
jniLibs.srcDir 'libs' | ||
} | ||
externalNativeBuild { | ||
ndkBuild { | ||
path 'jni/Android.mk' | ||
} | ||
// cmake { | ||
// path 'jni/CMakeLists.txt' | ||
// } | ||
} | ||
|
||
} | ||
lint { | ||
abortOnError false | ||
} | ||
|
||
if (buildAsLibrary) { | ||
libraryVariants.all { variant -> | ||
variant.outputs.each { output -> | ||
def outputFile = output.outputFile | ||
if (outputFile != null && outputFile.name.endsWith(".aar")) { | ||
def fileName = "com.pixelsuft.halfix.aar"; | ||
output.outputFile = new File(outputFile.parent, fileName); | ||
} | ||
} | ||
} | ||
} | ||
} | ||
|
||
dependencies { | ||
implementation fileTree(include: ['*.jar'], dir: 'libs') | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
include $(call all-subdir-makefiles) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
|
||
# Uncomment this if you're using STL in your project | ||
# You can find more information here: | ||
# https://developer.android.com/ndk/guides/cpp-support | ||
# APP_STL := c++_shared | ||
|
||
APP_ABI := armeabi-v7a arm64-v8a x86 x86_64 | ||
|
||
# Min runtime API level | ||
APP_PLATFORM=android-16 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
cmake_minimum_required(VERSION 3.6) | ||
|
||
project(GAME) | ||
|
||
# armeabi-v7a requires cpufeatures library | ||
# include(AndroidNdkModules) | ||
# android_ndk_import_module_cpufeatures() | ||
|
||
|
||
# SDL sources are in a subfolder named "SDL" | ||
add_subdirectory(SDL) | ||
|
||
# Compilation of companion libraries | ||
#add_subdirectory(SDL_image) | ||
#add_subdirectory(SDL_mixer) | ||
#add_subdirectory(SDL_ttf) | ||
|
||
# Your game and its CMakeLists.txt are in a subfolder named "src" | ||
add_subdirectory(src) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
LOCAL_PATH := $(call my-dir) | ||
|
||
include $(CLEAR_VARS) | ||
|
||
LOCAL_MODULE := main | ||
|
||
SDL_PATH := ../SDL | ||
SDL_TTF_PATH := ../SDL_ttf | ||
|
||
LOCAL_C_INCLUDES := $(LOCAL_PATH)/$(SDL_PATH)/include $(LOCAL_PATH)/$(SDL_TTF_PATH)/include $(LOCAL_PATH)/../../../../include | ||
|
||
# Add your application source files here... | ||
LOCAL_SRC_FILES := main.c pc.c util.c state.c io.c drive.c ini.c host/net-none.c cpu/access.c cpu/trace.c cpu/seg.c cpu/cpu.c cpu/mmu.c cpu/ops/ctrlflow.c cpu/smc.c cpu/decoder.c cpu/eflags.c cpu/prot.c cpu/opcodes.c cpu/ops/arith.c cpu/ops/io.c cpu/ops/string.c cpu/ops/stack.c cpu/ops/misc.c cpu/ops/bit.c cpu/softfloat.c cpu/fpu.c cpu/ops/simd.c hardware/dma.c hardware/cmos.c hardware/pit.c hardware/pic.c hardware/kbd.c hardware/vga.c hardware/ide.c hardware/pci.c hardware/apic.c hardware/ioapic.c hardware/fdc.c hardware/acpi.c display-sdl2.c ui-mobile.c | ||
|
||
LOCAL_CFLAGS := -DSDL2_BUILD -DMOBILE_BUILD | ||
|
||
LOCAL_SHARED_LIBRARIES := SDL2 SDL2_ttf | ||
|
||
LOCAL_LDLIBS := -lGLESv1_CM -lGLESv2 -lOpenSLES -llog -landroid | ||
|
||
include $(BUILD_SHARED_LIBRARY) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
cmake_minimum_required(VERSION 3.6) | ||
|
||
project(MY_APP) | ||
|
||
find_library(SDL2 SDL2) | ||
|
||
add_library(main SHARED) | ||
|
||
target_sources(main PRIVATE YourSourceHere.c) | ||
|
||
target_link_libraries(main SDL2) | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
# Add project specific ProGuard rules here. | ||
# By default, the flags in this file are appended to flags specified | ||
# in [sdk]/tools/proguard/proguard-android.txt | ||
# You can edit the include path and order by changing the proguardFiles | ||
# directive in build.gradle. | ||
# | ||
# For more details, see | ||
# http://developer.android.com/guide/developing/tools/proguard.html | ||
|
||
# Add any project specific keep options here: | ||
|
||
# If your project uses WebView with JS, uncomment the following | ||
# and specify the fully qualified class name to the JavaScript interface | ||
# class: | ||
#-keepclassmembers class fqcn.of.javascript.interface.for.webview { | ||
# public *; | ||
#} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,103 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<!-- Replace com.test.game with the identifier of your game below, e.g. | ||
com.gamemaker.game | ||
--> | ||
<manifest xmlns:android="http://schemas.android.com/apk/res/android" | ||
android:versionCode="1" | ||
android:versionName="1.0" | ||
android:installLocation="auto"> | ||
|
||
<!-- OpenGL ES 2.0 --> | ||
<uses-feature android:glEsVersion="0x00020000" /> | ||
|
||
<!-- Touchscreen support --> | ||
<uses-feature | ||
android:name="android.hardware.touchscreen" | ||
android:required="false" /> | ||
|
||
<!-- Game controller support --> | ||
<uses-feature | ||
android:name="android.hardware.bluetooth" | ||
android:required="false" /> | ||
<uses-feature | ||
android:name="android.hardware.gamepad" | ||
android:required="false" /> | ||
<uses-feature | ||
android:name="android.hardware.usb.host" | ||
android:required="false" /> | ||
|
||
<!-- External mouse input events --> | ||
<uses-feature | ||
android:name="android.hardware.type.pc" | ||
android:required="false" /> | ||
|
||
<!-- Audio recording support --> | ||
<!-- if you want to capture audio, uncomment this. --> | ||
<!-- <uses-feature | ||
android:name="android.hardware.microphone" | ||
android:required="false" /> --> | ||
|
||
<!-- Allow downloading to the external storage on Android 5.1 and older --> | ||
<!-- <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" android:maxSdkVersion="22" /> --> | ||
|
||
<!-- Allow access to Bluetooth devices --> | ||
<!-- Currently this is just for Steam Controller support and requires setting SDL_HINT_JOYSTICK_HIDAPI_STEAM --> | ||
<!-- <uses-permission android:name="android.permission.BLUETOOTH" android:maxSdkVersion="30" /> --> | ||
<!-- <uses-permission android:name="android.permission.BLUETOOTH_CONNECT" /> --> | ||
|
||
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" /> | ||
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" /> | ||
<uses-permission android:name="android.permission.MANAGE_EXTERNAL_STORAGE" /> | ||
|
||
<!-- Allow access to the vibrator --> | ||
<!-- <uses-permission android:name="android.permission.VIBRATE" /> --> | ||
|
||
<!-- if you want to capture audio, uncomment this. --> | ||
<!-- <uses-permission android:name="android.permission.RECORD_AUDIO" /> --> | ||
|
||
<!-- Create a Java class extending SDLActivity and place it in a | ||
directory under app/src/main/java matching the package, e.g. app/src/main/java/com/gamemaker/game/MyGame.java | ||
then replace "HalfixActivity" with the name of your class (e.g. "MyGame") | ||
in the XML below. | ||
An example Java class can be found in README-android.md | ||
--> | ||
<application android:label="@string/app_name" | ||
android:icon="@mipmap/ic_launcher" | ||
android:allowBackup="true" | ||
android:theme="@style/AppTheme" | ||
android:hardwareAccelerated="true" > | ||
|
||
<!-- Example of setting SDL hints from AndroidManifest.xml: | ||
<meta-data android:name="SDL_ENV.SDL_ACCELEROMETER_AS_JOYSTICK" android:value="0"/> | ||
--> | ||
|
||
<activity android:name="HalfixActivity" | ||
android:label="@string/app_name" | ||
android:alwaysRetainTaskState="true" | ||
android:launchMode="singleInstance" | ||
android:configChanges="layoutDirection|locale|orientation|uiMode|screenLayout|screenSize|smallestScreenSize|keyboard|keyboardHidden|navigation" | ||
android:preferMinimalPostProcessing="true" | ||
android:exported="true" | ||
> | ||
<intent-filter> | ||
<action android:name="android.intent.action.MAIN" /> | ||
<category android:name="android.intent.category.LAUNCHER" /> | ||
</intent-filter> | ||
<!-- Let Android know that we can handle some USB devices and should receive this event --> | ||
<intent-filter> | ||
<action android:name="android.hardware.usb.action.USB_DEVICE_ATTACHED" /> | ||
</intent-filter> | ||
<!-- Drop file event --> | ||
<!-- | ||
<intent-filter> | ||
<action android:name="android.intent.action.VIEW" /> | ||
<category android:name="android.intent.category.DEFAULT" /> | ||
<data android:mimeType="*/*" /> | ||
</intent-filter> | ||
--> | ||
</activity> | ||
</application> | ||
|
||
</manifest> |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<resources> | ||
<color name="colorPrimary">#3F51B5</color> | ||
<color name="colorPrimaryDark">#303F9F</color> | ||
<color name="colorAccent">#FF4081</color> | ||
</resources> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
<resources> | ||
<string name="app_name">Game</string> | ||
</resources> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<resources> | ||
<!-- Base application theme. --> | ||
<style name="AppTheme" parent="android:Theme.NoTitleBar.Fullscreen"> | ||
<!-- Customize your theme here. --> | ||
</style> | ||
</resources> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
// Top-level build file where you can add configuration options common to all sub-projects/modules. | ||
|
||
buildscript { | ||
repositories { | ||
mavenCentral() | ||
google() | ||
} | ||
dependencies { | ||
classpath 'com.android.tools.build:gradle:8.1.1' | ||
|
||
// NOTE: Do not place your application dependencies here; they belong | ||
// in the individual module build.gradle files | ||
} | ||
} | ||
|
||
allprojects { | ||
repositories { | ||
mavenCentral() | ||
google() | ||
} | ||
} | ||
|
||
task clean(type: Delete) { | ||
delete rootProject.buildDir | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
# Project-wide Gradle settings. | ||
|
||
# IDE (e.g. Android Studio) users: | ||
# Gradle settings configured through the IDE *will override* | ||
# any settings specified in this file. | ||
|
||
# For more details on how to configure your build environment visit | ||
# http://www.gradle.org/docs/current/userguide/build_environment.html | ||
|
||
# Specifies the JVM arguments used for the daemon process. | ||
# The setting is particularly useful for tweaking memory settings. | ||
org.gradle.jvmargs=-Xmx1536m | ||
|
||
# When configured, Gradle will run in incubating parallel mode. | ||
# This option should only be used with decoupled projects. More details, visit | ||
# http://www.gradle.org/docs/current/userguide/multi_project_builds.html#sec:decoupled_projects | ||
# org.gradle.parallel=true |
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
#Thu Nov 11 18:20:34 PST 2021 | ||
distributionBase=GRADLE_USER_HOME | ||
distributionUrl=https\://services.gradle.org/distributions/gradle-8.1.1-bin.zip | ||
distributionPath=wrapper/dists | ||
zipStorePath=wrapper/dists | ||
zipStoreBase=GRADLE_USER_HOME |
Oops, something went wrong.