[Android] Add initial version

This commit is contained in:
zilmar 2016-06-09 19:46:46 +10:00
parent d62a1c9455
commit ce812693e3
641 changed files with 23542 additions and 0 deletions

View File

@ -0,0 +1,17 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<launchConfiguration type="org.eclipse.ant.AntBuilderLaunchConfigurationType">
<booleanAttribute key="org.eclipse.ant.ui.ATTR_TARGETS_UPDATED" value="true"/>
<booleanAttribute key="org.eclipse.ant.ui.DEFAULT_VM_INSTALL" value="false"/>
<stringAttribute key="org.eclipse.debug.core.ATTR_REFRESH_SCOPE" value="${working_set:&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt;&#13;&#10;&lt;resources&gt;&#13;&#10;&lt;item path=&quot;/Project64/assets&quot; type=&quot;2&quot;/&gt;&#13;&#10;&lt;/resources&gt;}"/>
<booleanAttribute key="org.eclipse.debug.core.capture_output" value="false"/>
<booleanAttribute key="org.eclipse.debug.ui.ATTR_CONSOLE_OUTPUT_ON" value="false"/>
<booleanAttribute key="org.eclipse.debug.ui.ATTR_LAUNCH_IN_BACKGROUND" value="false"/>
<stringAttribute key="org.eclipse.jdt.launching.CLASSPATH_PROVIDER" value="org.eclipse.ant.ui.AntClasspathProvider"/>
<booleanAttribute key="org.eclipse.jdt.launching.DEFAULT_CLASSPATH" value="true"/>
<stringAttribute key="org.eclipse.jdt.launching.PROJECT_ATTR" value="Project64"/>
<booleanAttribute key="org.eclipse.ui.externaltools.ATTR_BUILDER_ENABLED" value="true"/>
<stringAttribute key="org.eclipse.ui.externaltools.ATTR_LOCATION" value="${workspace_loc:/Project64/buildAssets.xml}"/>
<stringAttribute key="org.eclipse.ui.externaltools.ATTR_RUN_BUILD_KINDS" value="clean"/>
<booleanAttribute key="org.eclipse.ui.externaltools.ATTR_TRIGGERS_CONFIGURED" value="true"/>
<stringAttribute key="org.eclipse.ui.externaltools.ATTR_WORKING_DIRECTORY" value="${workspace_loc:/Project64}"/>
</launchConfiguration>

View File

@ -0,0 +1,15 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<launchConfiguration type="org.eclipse.ant.AntBuilderLaunchConfigurationType">
<booleanAttribute key="org.eclipse.ant.ui.ATTR_TARGETS_UPDATED" value="true"/>
<booleanAttribute key="org.eclipse.ant.ui.DEFAULT_VM_INSTALL" value="false"/>
<stringAttribute key="org.eclipse.debug.core.ATTR_REFRESH_SCOPE" value="${working_set:&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt;&#13;&#10;&lt;resources&gt;&#13;&#10;&lt;item path=&quot;/Project64/jni&quot; type=&quot;2&quot;/&gt;&#13;&#10;&lt;/resources&gt;}"/>
<booleanAttribute key="org.eclipse.debug.ui.ATTR_LAUNCH_IN_BACKGROUND" value="false"/>
<stringAttribute key="org.eclipse.jdt.launching.CLASSPATH_PROVIDER" value="org.eclipse.ant.ui.AntClasspathProvider"/>
<booleanAttribute key="org.eclipse.jdt.launching.DEFAULT_CLASSPATH" value="true"/>
<stringAttribute key="org.eclipse.jdt.launching.PROJECT_ATTR" value="Project64"/>
<stringAttribute key="org.eclipse.ui.externaltools.ATTR_BUILD_SCOPE" value="${working_set:&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt;&#13;&#10;&lt;resources&gt;&#13;&#10;&lt;item path=&quot;/Project64&quot; type=&quot;4&quot;/&gt;&#13;&#10;&lt;/resources&gt;}"/>
<stringAttribute key="org.eclipse.ui.externaltools.ATTR_LOCATION" value="${workspace_loc:/Project64/copySource.xml}"/>
<stringAttribute key="org.eclipse.ui.externaltools.ATTR_RUN_BUILD_KINDS" value="clean"/>
<booleanAttribute key="org.eclipse.ui.externaltools.ATTR_TRIGGERS_CONFIGURED" value="true"/>
<stringAttribute key="org.eclipse.ui.externaltools.ATTR_WORKING_DIRECTORY" value="${workspace_loc:/Project64}"/>
</launchConfiguration>

15
Android/.gitignore vendored Normal file
View File

@ -0,0 +1,15 @@
# Generated and temporary files
assets/project64_data/Config
assets/project64_data/Lang
bin/
gen/
obj/
*.d
*.o
*.so
# Eclipse project files
.settings/
.classpath
.cproject
.project

53
Android/.project.init Normal file
View File

@ -0,0 +1,53 @@
<?xml version="1.0" encoding="UTF-8"?>
<projectDescription>
<name>Project64</name>
<comment></comment>
<projects>
</projects>
<buildSpec>
<buildCommand>
<name>com.android.ide.eclipse.adt.ResourceManagerBuilder</name>
<arguments>
</arguments>
</buildCommand>
<buildCommand>
<name>com.android.ide.eclipse.adt.PreCompilerBuilder</name>
<arguments>
</arguments>
</buildCommand>
<buildCommand>
<name>org.eclipse.jdt.core.javabuilder</name>
<arguments>
</arguments>
</buildCommand>
<buildCommand>
<name>com.android.ide.eclipse.adt.ApkBuilder</name>
<arguments>
</arguments>
</buildCommand>
<buildCommand>
<name>org.eclipse.ui.externaltools.ExternalToolBuilder</name>
<triggers>clean,</triggers>
<arguments>
<dictionary>
<key>LaunchConfigHandle</key>
<value>&lt;project&gt;/.externalToolBuilders/Copy Project64 C++ Source.launch</value>
</dictionary>
</arguments>
</buildCommand>
<buildCommand>
<name>org.eclipse.ui.externaltools.ExternalToolBuilder</name>
<triggers>clean,</triggers>
<arguments>
<dictionary>
<key>LaunchConfigHandle</key>
<value>&lt;project&gt;/.externalToolBuilders/Build Assets.launch</value>
</dictionary>
</arguments>
</buildCommand>
</buildSpec>
<natures>
<nature>com.android.ide.eclipse.adt.AndroidNature</nature>
<nature>org.eclipse.jdt.core.javanature</nature>
</natures>
</projectDescription>

View File

@ -0,0 +1,79 @@
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android" package="emu.project64" android:versionCode="1" android:versionName="1.0" >
<uses-feature android:glEsVersion="0x00020000" android:required="true" />
<uses-feature android:name="android.hardware.touchscreen" android:required="false" />
<uses-sdk android:minSdkVersion="14" android:targetSdkVersion="21" />
<uses-permission android:name="com.android.vending.BILLING" />
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
<uses-permission android:name="android.permission.VIBRATE" />
<application
android:name="emu.project64.Project64Application"
android:allowBackup="true"
android:isGame="true"
android:hardwareAccelerated="true"
android:icon="@drawable/icon"
android:label="@string/app_name"
android:theme="@style/appTheme" >
<activity
android:name="emu.project64.SplashActivity"
android:label="@string/SplashActivity_title"
android:theme="@style/Theme.Project64.Splash"
android:noHistory="true" >
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LEANBACK_LAUNCHER" />
<category android:name="android.intent.category.LAUNCHER" />
<category android:name="tv.ouya.intent.category.GAME" />
</intent-filter>
</activity>
<activity
android:name="emu.project64.GalleryActivity"
android:exported="false"
android:label="@string/GalleryActivity_title"
android:launchMode="singleTask"
android:theme="@style/Theme.AppCompat.NoActionBar" >
</activity>
<activity
android:name="emu.project64.ScanRomsActivity"
android:exported="false"
android:label="@string/ScanRomsActivity_title"
android:theme="@style/Theme.AppCompat" >
</activity>
<activity
android:name="emu.project64.persistent.GlobalPrefsActivity"
android:exported="false"
android:label="@string/SettingsGlobalActivity_title"
android:theme="@style/Theme.AppCompat" >
<intent-filter>
<action android:name=".persistent.GlobalPrefsActivity" />
<category android:name="android.intent.category.DEFAULT" />
</intent-filter>
</activity>
<!--
For the GameActivities, do not restart the activity when the phone's slider
opens or closes, or when the orientation (and thereby screen size) changes.
This behavior is specified in android:configChanges below.
-->
<activity
android:name="emu.project64.game.GameActivity"
android:configChanges="keyboardHidden|orientation|screenSize"
android:label="@string/GameActivity_title"
android:theme="@style/appTheme.Black" >
</activity>
<activity
android:name="emu.project64.game.GameActivityXperiaPlay"
android:configChanges="keyboardHidden|orientation|screenSize"
android:label="@string/GameActivity_title"
android:theme="@style/appTheme.Black" >
<meta-data
android:name="android.app.lib_name"
android:value="xperia-touchpad" />
</activity>
</application>
</manifest>

37
Android/Script/build.cmd Normal file
View File

@ -0,0 +1,37 @@
@ECHO OFF
SETLOCAL
set origdir=%cd%
cd /d %~dp0..\..\
set base_dir=%cd%
cd /d %origdir%
set NDK-BUILDER=
if exist "C:\Android\android-ndk-r11c\ndk-build.cmd" ( set NDK-BUILDER="C:\Android\android-ndk-r11c\ndk-build.cmd" )
if %NDK-BUILDER% == "" (
echo can not find android NDK
goto :EndErr
)
call "%base_dir%\Android\Script\buildAssets.cmd"
IF %ERRORLEVEL% NEQ 0 goto :EndErr
call "%base_dir%\Android\Script\copySource.cmd"
IF %ERRORLEVEL% NEQ 0 goto :EndErr
cd /d %base_dir%\Android
call %NDK-BUILDER% clean
call %NDK-BUILDER%
cd /d %origdir%
echo Build ok
goto :end
:EndErr
ENDLOCAL
echo Build failed
exit /B 1
:End
ENDLOCAL
exit /B 0

View File

@ -0,0 +1,32 @@
@ECHO OFF
SETLOCAL
set origdir=%cd%
cd /d %~dp0..\..\
set base_dir=%cd%
cd /d %origdir%
echo Building Lang files
xcopy "%base_dir%/Lang" "%base_dir%/Android/assets/project64_data/Lang/" /D /I /F /Y /E
IF %ERRORLEVEL% NEQ 0 (exit /B 1)
echo Copy config files
IF NOT EXIST "%base_dir%/Android/assets/project64_data/Config/" mkdir "%base_dir%/Android/assets/project64_data/Config/"
copy "%base_dir%\Config\Glide64.rdb" "%base_dir%\Android\assets\project64_data\Config\"
IF %ERRORLEVEL% NEQ 0 (exit /B 1)
copy "%base_dir%\Config\Project64.cht" "%base_dir%\Android\assets\project64_data\Config\"
IF %ERRORLEVEL% NEQ 0 (exit /B 1)
copy "%base_dir%\Config\Project64.rdb" "%base_dir%\Android\assets\project64_data\Config\"
IF %ERRORLEVEL% NEQ 0 (exit /B 1)
copy "%base_dir%\Config\Project64.rdx" "%base_dir%\Android\assets\project64_data\Config\"
IF %ERRORLEVEL% NEQ 0 (exit /B 1)
goto :end
:End
ENDLOCAL
exit /B 0

View File

@ -0,0 +1,63 @@
@ECHO OFF
SETLOCAL
set origdir=%cd%
cd /d %~dp0..\..\
set base_dir=%cd%
cd /d %origdir%
echo copy 3rdParty/7zip
xcopy "%base_dir%/Source/3rdParty/7zip" "%base_dir%/Android/jni/3rdParty/7zip/" /D /I /F /Y /E
IF %ERRORLEVEL% NEQ 0 (exit /B 1)
echo copy 3rdParty/png
xcopy "%base_dir%/Source/3rdParty/png" "%base_dir%/Android/jni/3rdParty/png/" /D /I /F /Y /E
IF %ERRORLEVEL% NEQ 0 (exit /B 1)
echo copy 3rdParty/zlib
xcopy "%base_dir%/Source/3rdParty/zlib" "%base_dir%/Android/jni/3rdParty/zlib/" /D /I /F /Y /E
IF %ERRORLEVEL% NEQ 0 (exit /B 1)
echo copy Common
xcopy "%base_dir%/Source/Common" "%base_dir%/Android/jni/Common/" /D /I /F /Y /E
IF %ERRORLEVEL% NEQ 0 (exit /B 1)
echo copy Glide64
xcopy "%base_dir%/Source/Glide64" "%base_dir%/Android/jni/Glide64/" /D /I /F /Y /E
IF %ERRORLEVEL% NEQ 0 (exit /B 1)
echo copy GlideHQ
xcopy "%base_dir%/Source/GlideHQ" "%base_dir%/Android/jni/GlideHQ/" /D /I /F /Y /E
IF %ERRORLEVEL% NEQ 0 (exit /B 1)
echo copy Glitch64
xcopy "%base_dir%/Source/Glitch64" "%base_dir%/Android/jni/Glitch64/" /D /I /F /Y /E
IF %ERRORLEVEL% NEQ 0 (exit /B 1)
echo copy PluginAudio
xcopy "%base_dir%/Source/Android/PluginAudio" "%base_dir%/Android/jni/PluginAudio/" /D /I /F /Y /E
IF %ERRORLEVEL% NEQ 0 (exit /B 1)
echo copy PluginInput
xcopy "%base_dir%/Source/Android/PluginInput" "%base_dir%/Android/jni/PluginInput/" /D /I /F /Y /E
IF %ERRORLEVEL% NEQ 0 (exit /B 1)
echo copy PluginRSP
xcopy "%base_dir%/Source/Android/PluginRSP" "%base_dir%/Android/jni/PluginRSP/" /D /I /F /Y /E
IF %ERRORLEVEL% NEQ 0 (exit /B 1)
echo copy Project64-bridge
xcopy "%base_dir%/Source/Android/Bridge" "%base_dir%/Android/jni/Project64-bridge/" /D /I /F /Y /E
IF %ERRORLEVEL% NEQ 0 (exit /B 1)
echo copy Project64-core
xcopy "%base_dir%/Source/Project64-core" "%base_dir%/Android/jni/Project64-core/" /D /I /F /Y /E
IF %ERRORLEVEL% NEQ 0 (exit /B 1)
echo copy Settings
xcopy "%base_dir%/Source/Settings" "%base_dir%/Android/jni/Settings/" /D /I /F /Y /E
IF %ERRORLEVEL% NEQ 0 (exit /B 1)
ENDLOCAL
exit /B 0

View File

@ -0,0 +1,65 @@
[FPS-Only]
comment=
fps-x=50
fps-y=100
[Analog]
comment=All controls except D-pad and L-button
fps-x=50
fps-y=100
analog-x=0
analog-y=100
analog-min=1
analog-max=55
analog-buff=55
groupAB-x=100
groupAB-y=100
groupC-x=100
groupC-y=50
buttonR-x=95
buttonR-y=0
buttonZ-x=0
buttonZ-y=0
buttonS-x=50
buttonS-y=0
[Digital]
comment=All controls except analog stick and Z-trigger
fps-x=50
fps-y=100
dpad-x=0
dpad-y=100
groupAB-x=100
groupAB-y=100
groupC-x=100
groupC-y=50
buttonL-x=0
buttonL-y=0
buttonR-x=95
buttonR-y=0
buttonS-x=50
buttonS-y=0
[Everything]
comment=All controls
fps-x=50
fps-y=100
analog-x=0
analog-y=100
analog-min=1
analog-max=55
analog-buff=55
dpad-x=0
dpad-y=20
groupAB-x=100
groupAB-y=100
groupC-x=100
groupC-y=50
buttonL-x=0
buttonL-y=0
buttonR-x=95
buttonR-y=0
buttonZ-x=0
buttonZ-y=58
buttonS-x=50
buttonS-y=0

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 319 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 322 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 311 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 321 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 245 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 232 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 264 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 246 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 269 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 264 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 259 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 239 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 238 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 249 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 447 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.4 KiB

View File

@ -0,0 +1,27 @@
[INFO]
name=Outline
referenceScreenWidth=1280
referenceScreenHeight=720
fps-numx=27
fps-numy=50
fps-minPixels=75
[MASK_COLOR]
Du=FF0000
Dru=FFFC00
Dr=00FFF0
Drd=FF9600
Dd=CC00FF
Dld=A000FF
Dl=D62D4D
Dlu=00FF5A
Cu=00E0CA
Cr=FF635C
Cd=84A1D5
Cl=5A6B1F
A=007F46
B=4B4B4B
L=FFB400
R=6B1F49
Z=42A6EC
S=B45D5D

Binary file not shown.

After

Width:  |  Height:  |  Size: 18 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 8.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 19 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 319 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 322 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 311 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 321 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 245 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 232 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 264 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 246 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 269 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 264 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 259 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 239 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 238 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 249 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 447 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 11 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 17 KiB

View File

@ -0,0 +1,27 @@
[INFO]
name=Shaded
referenceScreenWidth=1280
referenceScreenHeight=720
fps-numx=27
fps-numy=50
fps-minPixels=75
[MASK_COLOR]
Du=FF0000
Dru=FFFC00
Dr=00FFF0
Drd=FF9600
Dd=CC00FF
Dld=A000FF
Dl=D62D4D
Dlu=00FF5A
Cu=00E0CA
Cr=FF635C
Cd=84A1D5
Cl=5A6B1F
A=007F46
B=4B4B4B
L=FFB400
R=6B1F49
Z=42A6EC
S=B45D5D

92
Android/build.xml Normal file
View File

@ -0,0 +1,92 @@
<?xml version="1.0" encoding="UTF-8"?>
<project name="Project64" default="help">
<!-- The local.properties file is created and updated by the 'android' tool.
It contains the path to the SDK. It should *NOT* be checked into
Version Control Systems. -->
<property file="local.properties" />
<!-- The ant.properties file can be created by you. It is only edited by the
'android' tool to add properties to it.
This is the place to change some Ant specific build properties.
Here are some properties you may want to change/update:
source.dir
The name of the source directory. Default is 'src'.
out.dir
The name of the output directory. Default is 'bin'.
For other overridable properties, look at the beginning of the rules
files in the SDK, at tools/ant/build.xml
Properties related to the SDK location or the project target should
be updated using the 'android' tool with the 'update' action.
This file is an integral part of the build system for your
application and should be checked into Version Control Systems.
-->
<property file="ant.properties" />
<!-- if sdk.dir was not set from one of the property file, then
get it from the ANDROID_HOME env var.
This must be done before we load project.properties since
the proguard config can use sdk.dir -->
<property environment="env" />
<condition property="sdk.dir" value="${env.ANDROID_HOME}">
<isset property="env.ANDROID_HOME" />
</condition>
<!-- The project.properties file is created and updated by the 'android'
tool, as well as ADT.
This contains project specific properties such as project target, and library
dependencies. Lower level build properties are stored in ant.properties
(or in .classpath for Eclipse projects).
This file is an integral part of the build system for your
application and should be checked into Version Control Systems. -->
<loadproperties srcFile="project.properties" />
<!-- quick check on sdk.dir -->
<fail
message="sdk.dir is missing. Make sure to generate local.properties using 'android update project' or to inject it through the ANDROID_HOME environment variable."
unless="sdk.dir"
/>
<!--
Import per project custom build rules if present at the root of the project.
This is the place to put custom intermediary targets such as:
-pre-build
-pre-compile
-post-compile (This is typically used for code obfuscation.
Compiled code location: ${out.classes.absolute.dir}
If this is not done in place, override ${out.dex.input.absolute.dir})
-post-package
-post-build
-pre-clean
-->
<import file="custom_rules.xml" optional="true" />
<!-- Import the actual build file.
To customize existing targets, there are two options:
- Customize only one target:
- copy/paste the target into this file, *before* the
<import> task.
- customize it to your needs.
- Customize the whole content of build.xml
- copy/paste the content of the rules files (minus the top node)
into this file, replacing the <import> task.
- customize to your needs.
***********************
****** IMPORTANT ******
***********************
In all cases you must update the value of version-tag below to read 'custom' instead of an integer,
in order to avoid having your file be overridden by tools such as "android update project"
-->
<!-- version-tag: 1 -->
<import file="${sdk.dir}/tools/ant/build.xml" />
</project>

12
Android/buildAssets.xml Normal file
View File

@ -0,0 +1,12 @@
<?xml version="1.0" encoding="UTF-8"?>
<project name="Create Assets" default="Create Assets" basedir=".">
<target name="Create Assets">
<copy todir="./assets/project64_data/Lang/">
<fileset dir="../Lang"/>
</copy>
<copy file="../Config/Glide64.rdb" todir="./assets/project64_data/Config"/>
<copy file="../Config/Project64.cht" todir="./assets/project64_data/Config"/>
<copy file="../Config/Project64.rdb" todir="./assets/project64_data/Config"/>
<copy file="../Config/Project64.rdx" todir="./assets/project64_data/Config"/>
</target>
</project>

44
Android/copySource.xml Normal file
View File

@ -0,0 +1,44 @@
<?xml version="1.0" encoding="UTF-8"?>
<project name="Copy C++ Source" default="Copy C++ Source" basedir=".">
<target name="Copy C++ Source">
<copy todir="./jni/3rdParty/7zip/">
<fileset dir="../Source/3rdParty/7zip"/>
</copy>
<copy todir="./jni/3rdParty/png/">
<fileset dir="../Source/3rdParty/png"/>
</copy>
<copy todir="./jni/3rdParty/zlib/">
<fileset dir="../Source/3rdParty/zlib"/>
</copy>
<copy todir="./jni/Common/">
<fileset dir="../Source/Common"/>
</copy>
<copy todir="./jni/Glide64/">
<fileset dir="../Source/Glide64"/>
</copy>
<copy todir="./jni/GlideHQ/">
<fileset dir="../Source/GlideHQ"/>
</copy>
<copy todir="./jni/Glitch64/">
<fileset dir="../Source/Glitch64"/>
</copy>
<copy todir="./jni/PluginAudio/">
<fileset dir="../Source/Android/PluginAudio"/>
</copy>
<copy todir="./jni/PluginInput/">
<fileset dir="../Source/Android/PluginInput"/>
</copy>
<copy todir="./jni/PluginRSP/">
<fileset dir="../Source/Android/PluginRSP"/>
</copy>
<copy todir="./jni/Project64-bridge/">
<fileset dir="../Source/Android/Bridge"/>
</copy>
<copy todir="./jni/Project64-core/">
<fileset dir="../Source/Project64-core"/>
</copy>
<copy todir="./jni/Settings/">
<fileset dir="../Source/Settings"/>
</copy>
</target>
</project>

8
Android/jni/3rdParty/7zip/.gitignore vendored Normal file
View File

@ -0,0 +1,8 @@
*.c
*.cpp
*.h
*.vcproj
*.vcxproj
*.vcxproj.filters
*.dsp
*.plg

43
Android/jni/3rdParty/png/.gitignore vendored Normal file
View File

@ -0,0 +1,43 @@
*.3
*.5
*.bat
*.c
*.com
*.cpp
*.def
*.dsp
*.dsw
*.gcc
*.h
*.hp64
*.ico
*.in
*.jpg
*.mak
*.mms
*.pbxproj
*.plg
*.png
*.ppc
*.props
*.rc
*.sgi
*.sh
*.sln
*.solaris
*.std
*.tc3
*.txt
*.unx
*.vcproj
*.vcxproj
*.vcxproj.filters
ANNOUNCE
CHANGES
configure
COPYING
INSTALL
LICENSE
makefile*
README
TODO

34
Android/jni/3rdParty/png/png.mk vendored Normal file
View File

@ -0,0 +1,34 @@
#########################
# png
#########################
include $(CLEAR_VARS)
LOCAL_PATH := $(JNI_LOCAL_PATH)
SRCDIR := ./3rdParty/png
LOCAL_MODULE := png
LOCAL_C_INCLUDES := \
./jni/3rdParty/ \
LOCAL_SRC_FILES := \
$(SRCDIR)/png.c \
$(SRCDIR)/pngerror.c \
$(SRCDIR)/pngget.c \
$(SRCDIR)/pngmem.c \
$(SRCDIR)/pngpread.c \
$(SRCDIR)/pngread.c \
$(SRCDIR)/pngrio.c \
$(SRCDIR)/pngrtran.c \
$(SRCDIR)/pngrutil.c \
$(SRCDIR)/pngset.c \
$(SRCDIR)/pngtest.c \
$(SRCDIR)/pngtrans.c \
$(SRCDIR)/pngwio.c \
$(SRCDIR)/pngwrite.c \
$(SRCDIR)/pngwtran.c \
$(SRCDIR)/pngwutil.c \
LOCAL_CFLAGS := $(COMMON_CFLAGS)
LOCAL_CPPFLAGS := $(COMMON_CPPFLAGS)
include $(BUILD_STATIC_LIBRARY)

12
Android/jni/3rdParty/zlib/.gitignore vendored Normal file
View File

@ -0,0 +1,12 @@
*.c
*.cpp
*.h
*.vcproj
*.vcxproj
*.vcxproj.filters
*.dsp
*.plg
ChangeLog
INDEX
README
zconf.h.in

40
Android/jni/3rdParty/zlib/zlib.mk vendored Normal file
View File

@ -0,0 +1,40 @@
#########################
# zlib
#########################
include $(CLEAR_VARS)
LOCAL_PATH := $(JNI_LOCAL_PATH)
SRCDIR := ./3rdParty/zlib
LOCAL_MODULE := zlib
LOCAL_C_INCLUDES := \
LOCAL_SRC_FILES := \
$(SRCDIR)/adler32.c \
$(SRCDIR)/compress.c \
$(SRCDIR)/crc32.c \
$(SRCDIR)/deflate.c \
$(SRCDIR)/gzclose.c \
$(SRCDIR)/gzlib.c \
$(SRCDIR)/gzread.c \
$(SRCDIR)/gzwrite.c \
$(SRCDIR)/infback.c \
$(SRCDIR)/inffast.c \
$(SRCDIR)/inflate.c \
$(SRCDIR)/inftrees.c \
$(SRCDIR)/trees.c \
$(SRCDIR)/uncompr.c \
$(SRCDIR)/zutil.c \
$(SRCDIR)/contrib/minizip/ioapi.c \
$(SRCDIR)/contrib/minizip/miniunz.c \
$(SRCDIR)/contrib/minizip/minizip.c \
$(SRCDIR)/contrib/minizip/mztools.c \
$(SRCDIR)/contrib/minizip/unzip.c \
$(SRCDIR)/contrib/minizip/zip.c \
LOCAL_CFLAGS := $(COMMON_CFLAGS) \
-DIOAPI_NO_64 \
LOCAL_CPPFLAGS := $(COMMON_CPPFLAGS)
include $(BUILD_STATIC_LIBRARY)

30
Android/jni/Android.mk Normal file
View File

@ -0,0 +1,30 @@
JNI_LOCAL_PATH := $(call my-dir)
AE_BRIDGE_INCLUDES := $(JNI_LOCAL_PATH)/ae-bridge/
PJ64_SRC := $(JNI_LOCAL_PATH)/
COMMON_CFLAGS := \
-O3 \
-ffast-math \
-fno-strict-aliasing \
-fomit-frame-pointer \
-frename-registers \
-fsingle-precision-constant \
-fvisibility=hidden \
-DANDROID \
-DNO_ASM \
COMMON_CPPFLAGS := \
-fvisibility-inlines-hidden \
-fexceptions \
include $(JNI_LOCAL_PATH)/3rdParty/png/png.mk
include $(JNI_LOCAL_PATH)/3rdParty/zlib/zlib.mk
include $(JNI_LOCAL_PATH)/Common/common.mk
include $(JNI_LOCAL_PATH)/Glide64/Glide64.mk
include $(JNI_LOCAL_PATH)/PluginAudio/PluginAudio.mk
include $(JNI_LOCAL_PATH)/PluginInput/PluginInput.mk
include $(JNI_LOCAL_PATH)/PluginRSP/PluginRSP.mk
include $(JNI_LOCAL_PATH)/Project64-bridge/Project64-bridge.mk
include $(JNI_LOCAL_PATH)/Project64-core/Project64-core.mk
include $(JNI_LOCAL_PATH)/Settings/Settings.mk

View File

@ -0,0 +1,7 @@
APP_STL := gnustl_static
APP_ABI := armeabi-v7a armeabi x86
# TODO: mips
APP_PLATFORM := android-9
APP_OPTIM := release

7
Android/jni/Common/.gitignore vendored Normal file
View File

@ -0,0 +1,7 @@
*.cpp
*.h
*.vcproj
*.vcxproj
*.vcxproj.filters
*.dsp
*.plg

Some files were not shown because too many files have changed in this diff Show More