Move Android project to Gradle.
@ -1,18 +0,0 @@
|
||||
# This file is used to override default values used by the Ant build system.
|
||||
#
|
||||
# This file must be checked in Version Control Systems, as it is
|
||||
# integral to the build system of your project.
|
||||
|
||||
# This file is only used by the Ant script.
|
||||
|
||||
# You can use this to override default values such as
|
||||
# 'source.dir' for the location of your java source folder and
|
||||
# 'out.dir' for the location of your output folder.
|
||||
|
||||
# You can also use it define how the release builds are signed by declaring
|
||||
# the following properties:
|
||||
# 'key.store' for the location of your keystore and
|
||||
# 'key.alias' for the name of the key to use.
|
||||
# The password will be asked during the build when you use the 'release' target.
|
||||
|
||||
source.dir=../Source/ui_android/java/
|
84
build_android/build.gradle
Normal file
@ -0,0 +1,84 @@
|
||||
apply plugin: 'com.android.application'
|
||||
import org.apache.tools.ant.taskdefs.condition.Os
|
||||
|
||||
buildscript {
|
||||
repositories {
|
||||
mavenCentral()
|
||||
}
|
||||
|
||||
dependencies {
|
||||
classpath 'com.android.tools.build:gradle:1.5.0'
|
||||
}
|
||||
}
|
||||
|
||||
def getNdkBuildPath() {
|
||||
if(Os.isFamily(Os.FAMILY_WINDOWS)) {
|
||||
return System.getenv('ANDROID_NDK') + '\\ndk-build.cmd'
|
||||
} else {
|
||||
return System.getenv('ANDROID_NDK') + '/ndk-build'
|
||||
}
|
||||
}
|
||||
|
||||
project.afterEvaluate {
|
||||
compileDebugNdk.dependsOn 'ndkBuildDebug'
|
||||
compileReleaseNdk.dependsOn 'ndkBuildRelease'
|
||||
clean.dependsOn 'ndkCleanDebug'
|
||||
clean.dependsOn 'ndkCleanRelease'
|
||||
}
|
||||
|
||||
android {
|
||||
repositories {
|
||||
mavenCentral()
|
||||
}
|
||||
|
||||
compileSdkVersion 'android-23'
|
||||
buildToolsVersion '23.0.2'
|
||||
|
||||
defaultConfig {
|
||||
minSdkVersion 19
|
||||
targetSdkVersion 23
|
||||
}
|
||||
|
||||
dependencies {
|
||||
compile 'com.android.support:appcompat-v7:23.3.0'
|
||||
compile 'org.apache.commons:commons-lang3:3.4'
|
||||
compile 'commons-io:commons-io:2.5'
|
||||
}
|
||||
|
||||
buildTypes {
|
||||
debug {
|
||||
debuggable true
|
||||
jniDebuggable true
|
||||
}
|
||||
release {
|
||||
proguardFile getDefaultProguardFile('proguard-android.txt')
|
||||
}
|
||||
}
|
||||
|
||||
packagingOptions {
|
||||
exclude 'META-INF/LICENSE.txt'
|
||||
exclude 'META-INF/NOTICE.txt'
|
||||
}
|
||||
|
||||
sourceSets.main {
|
||||
java.srcDirs = [ '../Source/ui_android/java' ]
|
||||
jni.srcDirs = []
|
||||
jniLibs.srcDir 'src/main/libs'
|
||||
}
|
||||
|
||||
task ndkBuildDebug(type: Exec) {
|
||||
commandLine getNdkBuildPath(), '-C', file('src/main').absolutePath, '-j', Runtime.runtime.availableProcessors(), 'NDK_DEBUG=1'
|
||||
}
|
||||
|
||||
task ndkBuildRelease(type: Exec) {
|
||||
commandLine getNdkBuildPath(), '-C', file('src/main').absolutePath, '-j', Runtime.runtime.availableProcessors(), 'NDK_DEBUG=0'
|
||||
}
|
||||
|
||||
task ndkCleanDebug(type: Exec) {
|
||||
commandLine getNdkBuildPath(), '-C', file('src/main').absolutePath, 'clean', 'NDK_DEBUG=1'
|
||||
}
|
||||
|
||||
task ndkCleanRelease(type: Exec) {
|
||||
commandLine getNdkBuildPath(), '-C', file('src/main').absolutePath, 'clean', 'NDK_DEBUG=0'
|
||||
}
|
||||
}
|
@ -1,95 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project name="Play" 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>
|
||||
<condition property="ndk.dir" value="${env.ANDROID_NDK}">
|
||||
<isset property="env.ANDROID_NDK" />
|
||||
</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>
|
@ -1,3 +0,0 @@
|
||||
@echo off
|
||||
CALL %ANDROID_SDK_ROOT%/tools/android.bat update project -p .
|
||||
%ANT_HOME%/bin/ant debug -Dndk.debug=1
|
@ -1,4 +0,0 @@
|
||||
#!/bin/bash
|
||||
set -e
|
||||
$ANDROID_SDK_ROOT/tools/android.bat update project -p .
|
||||
$ANT_HOME/bin/ant debug -Dndk.debug=1
|
@ -1,3 +0,0 @@
|
||||
@echo off
|
||||
CALL %ANDROID_SDK_ROOT%/tools/android.bat update project -p .
|
||||
%ANT_HOME%/bin/ant release -Dndk.debug=0
|
@ -1,4 +0,0 @@
|
||||
#!/bin/bash
|
||||
set -e
|
||||
$ANDROID_SDK_ROOT/tools/android.bat update project -p .
|
||||
$ANT_HOME/bin/ant release -Dndk.debug=0
|
@ -1,3 +0,0 @@
|
||||
@echo off
|
||||
CALL %ANDROID_SDK_ROOT%/tools/android.bat update project -p .
|
||||
%ANT_HOME%/bin/ant clean
|
@ -1,4 +0,0 @@
|
||||
#!/bin/bash
|
||||
set -e
|
||||
$ANDROID_SDK_ROOT/tools/android.bat update project -p .
|
||||
$ANT_HOME/bin/ant clean
|
@ -1,40 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project name="play-native" default="help">
|
||||
<property environment="env" />
|
||||
<condition property="ndk.debug" value="${env.NDK_DEBUG}" else="1">
|
||||
<isset property="env.NDK_DEBUG" />
|
||||
</condition>
|
||||
<condition property="ndkcpu" value="-j${env.NUMBER_OF_PROCESSORS}" else="-j4">
|
||||
<isset property="env.NUMBER_OF_PROCESSORS" />
|
||||
</condition>
|
||||
<property name="java.source" value="1.7"/>
|
||||
<property name="java.target" value="1.7"/>
|
||||
|
||||
<target name="-pre-build">
|
||||
<exec executable="${ndk.dir}/ndk-build.cmd" failonerror="true" osfamily="windows">
|
||||
<env key="NDK_DEBUG" value="${ndk.debug}"/>
|
||||
<arg value="${ndkcpu}" />
|
||||
</exec>
|
||||
<exec executable="${ndk.dir}/ndk-build" failonerror="true" osfamily="unix">
|
||||
<env key="NDK_DEBUG" value="${ndk.debug}"/>
|
||||
<arg value="${ndkcpu}" />
|
||||
</exec>
|
||||
</target>
|
||||
|
||||
<target name="-pre-clean">
|
||||
<exec executable="${ndk.dir}/ndk-build.cmd" failonerror="true" osfamily="windows">
|
||||
<arg value="clean" />
|
||||
</exec>
|
||||
<exec executable="${ndk.dir}/ndk-build.cmd" failonerror="true" osfamily="windows">
|
||||
<arg value="clean" />
|
||||
<arg value="NDK_DEBUG=1" />
|
||||
</exec>
|
||||
<exec executable="${ndk.dir}/ndk-build" failonerror="true" osfamily="unix">
|
||||
<arg value="clean" />
|
||||
</exec>
|
||||
<exec executable="${ndk.dir}/ndk-build" failonerror="true" osfamily="unix">
|
||||
<arg value="clean" />
|
||||
<arg value="NDK_DEBUG=1" />
|
||||
</exec>
|
||||
</target>
|
||||
</project>
|
BIN
build_android/gradle/wrapper/gradle-wrapper.jar
vendored
Normal file
6
build_android/gradle/wrapper/gradle-wrapper.properties
vendored
Normal file
@ -0,0 +1,6 @@
|
||||
#Wed Apr 10 15:27:10 PDT 2013
|
||||
distributionBase=GRADLE_USER_HOME
|
||||
distributionPath=wrapper/dists
|
||||
zipStoreBase=GRADLE_USER_HOME
|
||||
zipStorePath=wrapper/dists
|
||||
distributionUrl=https\://services.gradle.org/distributions/gradle-2.8-all.zip
|
164
build_android/gradlew
vendored
Normal file
@ -0,0 +1,164 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
##############################################################################
|
||||
##
|
||||
## Gradle start up script for UN*X
|
||||
##
|
||||
##############################################################################
|
||||
|
||||
# Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
|
||||
DEFAULT_JVM_OPTS=""
|
||||
|
||||
APP_NAME="Gradle"
|
||||
APP_BASE_NAME=`basename "$0"`
|
||||
|
||||
# Use the maximum available, or set MAX_FD != -1 to use that value.
|
||||
MAX_FD="maximum"
|
||||
|
||||
warn ( ) {
|
||||
echo "$*"
|
||||
}
|
||||
|
||||
die ( ) {
|
||||
echo
|
||||
echo "$*"
|
||||
echo
|
||||
exit 1
|
||||
}
|
||||
|
||||
# OS specific support (must be 'true' or 'false').
|
||||
cygwin=false
|
||||
msys=false
|
||||
darwin=false
|
||||
case "`uname`" in
|
||||
CYGWIN* )
|
||||
cygwin=true
|
||||
;;
|
||||
Darwin* )
|
||||
darwin=true
|
||||
;;
|
||||
MINGW* )
|
||||
msys=true
|
||||
;;
|
||||
esac
|
||||
|
||||
# For Cygwin, ensure paths are in UNIX format before anything is touched.
|
||||
if $cygwin ; then
|
||||
[ -n "$JAVA_HOME" ] && JAVA_HOME=`cygpath --unix "$JAVA_HOME"`
|
||||
fi
|
||||
|
||||
# Attempt to set APP_HOME
|
||||
# Resolve links: $0 may be a link
|
||||
PRG="$0"
|
||||
# Need this for relative symlinks.
|
||||
while [ -h "$PRG" ] ; do
|
||||
ls=`ls -ld "$PRG"`
|
||||
link=`expr "$ls" : '.*-> \(.*\)$'`
|
||||
if expr "$link" : '/.*' > /dev/null; then
|
||||
PRG="$link"
|
||||
else
|
||||
PRG=`dirname "$PRG"`"/$link"
|
||||
fi
|
||||
done
|
||||
SAVED="`pwd`"
|
||||
cd "`dirname \"$PRG\"`/" >&-
|
||||
APP_HOME="`pwd -P`"
|
||||
cd "$SAVED" >&-
|
||||
|
||||
CLASSPATH=$APP_HOME/gradle/wrapper/gradle-wrapper.jar
|
||||
|
||||
# Determine the Java command to use to start the JVM.
|
||||
if [ -n "$JAVA_HOME" ] ; then
|
||||
if [ -x "$JAVA_HOME/jre/sh/java" ] ; then
|
||||
# IBM's JDK on AIX uses strange locations for the executables
|
||||
JAVACMD="$JAVA_HOME/jre/sh/java"
|
||||
else
|
||||
JAVACMD="$JAVA_HOME/bin/java"
|
||||
fi
|
||||
if [ ! -x "$JAVACMD" ] ; then
|
||||
die "ERROR: JAVA_HOME is set to an invalid directory: $JAVA_HOME
|
||||
|
||||
Please set the JAVA_HOME variable in your environment to match the
|
||||
location of your Java installation."
|
||||
fi
|
||||
else
|
||||
JAVACMD="java"
|
||||
which java >/dev/null 2>&1 || die "ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
|
||||
|
||||
Please set the JAVA_HOME variable in your environment to match the
|
||||
location of your Java installation."
|
||||
fi
|
||||
|
||||
# Increase the maximum file descriptors if we can.
|
||||
if [ "$cygwin" = "false" -a "$darwin" = "false" ] ; then
|
||||
MAX_FD_LIMIT=`ulimit -H -n`
|
||||
if [ $? -eq 0 ] ; then
|
||||
if [ "$MAX_FD" = "maximum" -o "$MAX_FD" = "max" ] ; then
|
||||
MAX_FD="$MAX_FD_LIMIT"
|
||||
fi
|
||||
ulimit -n $MAX_FD
|
||||
if [ $? -ne 0 ] ; then
|
||||
warn "Could not set maximum file descriptor limit: $MAX_FD"
|
||||
fi
|
||||
else
|
||||
warn "Could not query maximum file descriptor limit: $MAX_FD_LIMIT"
|
||||
fi
|
||||
fi
|
||||
|
||||
# For Darwin, add options to specify how the application appears in the dock
|
||||
if $darwin; then
|
||||
GRADLE_OPTS="$GRADLE_OPTS \"-Xdock:name=$APP_NAME\" \"-Xdock:icon=$APP_HOME/media/gradle.icns\""
|
||||
fi
|
||||
|
||||
# For Cygwin, switch paths to Windows format before running java
|
||||
if $cygwin ; then
|
||||
APP_HOME=`cygpath --path --mixed "$APP_HOME"`
|
||||
CLASSPATH=`cygpath --path --mixed "$CLASSPATH"`
|
||||
|
||||
# We build the pattern for arguments to be converted via cygpath
|
||||
ROOTDIRSRAW=`find -L / -maxdepth 1 -mindepth 1 -type d 2>/dev/null`
|
||||
SEP=""
|
||||
for dir in $ROOTDIRSRAW ; do
|
||||
ROOTDIRS="$ROOTDIRS$SEP$dir"
|
||||
SEP="|"
|
||||
done
|
||||
OURCYGPATTERN="(^($ROOTDIRS))"
|
||||
# Add a user-defined pattern to the cygpath arguments
|
||||
if [ "$GRADLE_CYGPATTERN" != "" ] ; then
|
||||
OURCYGPATTERN="$OURCYGPATTERN|($GRADLE_CYGPATTERN)"
|
||||
fi
|
||||
# Now convert the arguments - kludge to limit ourselves to /bin/sh
|
||||
i=0
|
||||
for arg in "$@" ; do
|
||||
CHECK=`echo "$arg"|egrep -c "$OURCYGPATTERN" -`
|
||||
CHECK2=`echo "$arg"|egrep -c "^-"` ### Determine if an option
|
||||
|
||||
if [ $CHECK -ne 0 ] && [ $CHECK2 -eq 0 ] ; then ### Added a condition
|
||||
eval `echo args$i`=`cygpath --path --ignore --mixed "$arg"`
|
||||
else
|
||||
eval `echo args$i`="\"$arg\""
|
||||
fi
|
||||
i=$((i+1))
|
||||
done
|
||||
case $i in
|
||||
(0) set -- ;;
|
||||
(1) set -- "$args0" ;;
|
||||
(2) set -- "$args0" "$args1" ;;
|
||||
(3) set -- "$args0" "$args1" "$args2" ;;
|
||||
(4) set -- "$args0" "$args1" "$args2" "$args3" ;;
|
||||
(5) set -- "$args0" "$args1" "$args2" "$args3" "$args4" ;;
|
||||
(6) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" ;;
|
||||
(7) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" ;;
|
||||
(8) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" ;;
|
||||
(9) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" "$args8" ;;
|
||||
esac
|
||||
fi
|
||||
|
||||
# Split up the JVM_OPTS And GRADLE_OPTS values into an array, following the shell quoting and substitution rules
|
||||
function splitJvmOpts() {
|
||||
JVM_OPTS=("$@")
|
||||
}
|
||||
eval splitJvmOpts $DEFAULT_JVM_OPTS $JAVA_OPTS $GRADLE_OPTS
|
||||
JVM_OPTS[${#JVM_OPTS[*]}]="-Dorg.gradle.appname=$APP_BASE_NAME"
|
||||
|
||||
exec "$JAVACMD" "${JVM_OPTS[@]}" -classpath "$CLASSPATH" org.gradle.wrapper.GradleWrapperMain "$@"
|
90
build_android/gradlew.bat
vendored
Normal file
@ -0,0 +1,90 @@
|
||||
@if "%DEBUG%" == "" @echo off
|
||||
@rem ##########################################################################
|
||||
@rem
|
||||
@rem Gradle startup script for Windows
|
||||
@rem
|
||||
@rem ##########################################################################
|
||||
|
||||
@rem Set local scope for the variables with windows NT shell
|
||||
if "%OS%"=="Windows_NT" setlocal
|
||||
|
||||
@rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
|
||||
set DEFAULT_JVM_OPTS=
|
||||
|
||||
set DIRNAME=%~dp0
|
||||
if "%DIRNAME%" == "" set DIRNAME=.
|
||||
set APP_BASE_NAME=%~n0
|
||||
set APP_HOME=%DIRNAME%
|
||||
|
||||
@rem Find java.exe
|
||||
if defined JAVA_HOME goto findJavaFromJavaHome
|
||||
|
||||
set JAVA_EXE=java.exe
|
||||
%JAVA_EXE% -version >NUL 2>&1
|
||||
if "%ERRORLEVEL%" == "0" goto init
|
||||
|
||||
echo.
|
||||
echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
|
||||
echo.
|
||||
echo Please set the JAVA_HOME variable in your environment to match the
|
||||
echo location of your Java installation.
|
||||
|
||||
goto fail
|
||||
|
||||
:findJavaFromJavaHome
|
||||
set JAVA_HOME=%JAVA_HOME:"=%
|
||||
set JAVA_EXE=%JAVA_HOME%/bin/java.exe
|
||||
|
||||
if exist "%JAVA_EXE%" goto init
|
||||
|
||||
echo.
|
||||
echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME%
|
||||
echo.
|
||||
echo Please set the JAVA_HOME variable in your environment to match the
|
||||
echo location of your Java installation.
|
||||
|
||||
goto fail
|
||||
|
||||
:init
|
||||
@rem Get command-line arguments, handling Windowz variants
|
||||
|
||||
if not "%OS%" == "Windows_NT" goto win9xME_args
|
||||
if "%@eval[2+2]" == "4" goto 4NT_args
|
||||
|
||||
:win9xME_args
|
||||
@rem Slurp the command line arguments.
|
||||
set CMD_LINE_ARGS=
|
||||
set _SKIP=2
|
||||
|
||||
:win9xME_args_slurp
|
||||
if "x%~1" == "x" goto execute
|
||||
|
||||
set CMD_LINE_ARGS=%*
|
||||
goto execute
|
||||
|
||||
:4NT_args
|
||||
@rem Get arguments from the 4NT Shell from JP Software
|
||||
set CMD_LINE_ARGS=%$
|
||||
|
||||
:execute
|
||||
@rem Setup the command line
|
||||
|
||||
set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar
|
||||
|
||||
@rem Execute Gradle
|
||||
"%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" org.gradle.wrapper.GradleWrapperMain %CMD_LINE_ARGS%
|
||||
|
||||
:end
|
||||
@rem End local scope for the variables with windows NT shell
|
||||
if "%ERRORLEVEL%"=="0" goto mainEnd
|
||||
|
||||
:fail
|
||||
rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of
|
||||
rem the _cmd.exe /c_ return code!
|
||||
if not "" == "%GRADLE_EXIT_CONSOLE%" exit 1
|
||||
exit /b 1
|
||||
|
||||
:mainEnd
|
||||
if "%OS%"=="Windows_NT" endlocal
|
||||
|
||||
:omega
|
@ -1,198 +0,0 @@
|
||||
LOCAL_PATH := $(call my-dir)
|
||||
|
||||
include $(LOCAL_PATH)/ExternalDependencies.mk
|
||||
|
||||
DEPENDENCIES_PATH := $(realpath $(LOCAL_PATH))/../../../Dependencies
|
||||
FRAMEWORK_PATH := $(realpath $(LOCAL_PATH))/../../../Framework
|
||||
CODEGEN_PATH := $(realpath $(LOCAL_PATH))/../../../CodeGen
|
||||
|
||||
include $(CLEAR_VARS)
|
||||
|
||||
LOCAL_MODULE := libboost
|
||||
LOCAL_SRC_FILES := $(DEPENDENCIES_PATH)/build_android/obj/local/$(TARGET_ARCH_ABI)/libboost.a
|
||||
|
||||
include $(PREBUILT_STATIC_LIBRARY)
|
||||
|
||||
include $(CLEAR_VARS)
|
||||
|
||||
LOCAL_MODULE := libbzip2
|
||||
LOCAL_SRC_FILES := $(DEPENDENCIES_PATH)/build_android/obj/local/$(TARGET_ARCH_ABI)/libbzip2.a
|
||||
|
||||
include $(PREBUILT_STATIC_LIBRARY)
|
||||
|
||||
include $(CLEAR_VARS)
|
||||
|
||||
LOCAL_MODULE := libFramework
|
||||
LOCAL_SRC_FILES := $(FRAMEWORK_PATH)/build_android/obj/local/$(TARGET_ARCH_ABI)/libFramework.a
|
||||
|
||||
include $(PREBUILT_STATIC_LIBRARY)
|
||||
|
||||
include $(CLEAR_VARS)
|
||||
|
||||
LOCAL_MODULE := libCodeGen
|
||||
LOCAL_SRC_FILES := $(CODEGEN_PATH)/build_android/src/main/obj/local/$(TARGET_ARCH_ABI)/libCodeGen.a
|
||||
|
||||
include $(PREBUILT_STATIC_LIBRARY)
|
||||
|
||||
include $(CLEAR_VARS)
|
||||
|
||||
LOCAL_MODULE := libPlay
|
||||
LOCAL_SRC_FILES := ../../Source/AppConfig.cpp \
|
||||
../../Source/BasicBlock.cpp \
|
||||
../../Source/ControllerInfo.cpp \
|
||||
../../Source/COP_FPU.cpp \
|
||||
../../Source/COP_FPU_Reflection.cpp \
|
||||
../../Source/COP_SCU.cpp \
|
||||
../../Source/COP_SCU_Reflection.cpp \
|
||||
../../Source/CsoImageStream.cpp \
|
||||
../../Source/DiskUtils.cpp \
|
||||
../../Source/ee/COP_VU.cpp \
|
||||
../../Source/ee/COP_VU_Reflection.cpp \
|
||||
../../Source/ee/DMAC.cpp \
|
||||
../../Source/ee/Dmac_Channel.cpp \
|
||||
../../Source/ee/Ee_SubSystem.cpp \
|
||||
../../Source/ee/EEAssembler.cpp \
|
||||
../../Source/ee/EeExecutor.cpp \
|
||||
../../Source/ee/FpAddTruncate.cpp \
|
||||
../../Source/ee/FpMulTruncate.cpp \
|
||||
../../Source/ee/GIF.cpp \
|
||||
../../Source/ee/INTC.cpp \
|
||||
../../Source/ee/IPU.cpp \
|
||||
../../Source/ee/IPU_DmVectorTable.cpp \
|
||||
../../Source/ee/IPU_MacroblockAddressIncrementTable.cpp \
|
||||
../../Source/ee/IPU_MacroblockTypeBTable.cpp \
|
||||
../../Source/ee/IPU_MacroblockTypeITable.cpp \
|
||||
../../Source/ee/IPU_MacroblockTypePTable.cpp \
|
||||
../../Source/ee/IPU_MotionCodeTable.cpp \
|
||||
../../Source/ee/MA_EE.cpp \
|
||||
../../Source/ee/MA_EE_Reflection.cpp \
|
||||
../../Source/ee/MA_VU.cpp \
|
||||
../../Source/ee/MA_VU_Lower.cpp \
|
||||
../../Source/ee/MA_VU_LowerReflection.cpp \
|
||||
../../Source/ee/MA_VU_Upper.cpp \
|
||||
../../Source/ee/MA_VU_UpperReflection.cpp \
|
||||
../../Source/ee/PS2OS.cpp \
|
||||
../../Source/ee/SIF.cpp \
|
||||
../../Source/ee/Timer.cpp \
|
||||
../../Source/ee/Vif.cpp \
|
||||
../../Source/ee/Vif1.cpp \
|
||||
../../Source/ee/Vpu.cpp \
|
||||
../../Source/ee/VuAnalysis.cpp \
|
||||
../../Source/ee/VuBasicBlock.cpp \
|
||||
../../Source/ee/VuExecutor.cpp \
|
||||
../../Source/ee/VUShared.cpp \
|
||||
../../Source/ee/VUShared_Reflection.cpp \
|
||||
../../Source/ELF.cpp \
|
||||
../../Source/ElfFile.cpp \
|
||||
../../Source/FrameDump.cpp \
|
||||
../../Source/gs/GsCachedArea.cpp \
|
||||
../../Source/gs/GSH_Null.cpp \
|
||||
../../Source/gs/GSHandler.cpp \
|
||||
../../Source/gs/GSH_OpenGL/GSH_OpenGL.cpp \
|
||||
../../Source/gs/GSH_OpenGL/GSH_OpenGL_Shader.cpp \
|
||||
../../Source/gs/GSH_OpenGL/GSH_OpenGL_Texture.cpp \
|
||||
../../Source/gs/GsPixelFormats.cpp \
|
||||
../../Source/iop/ArgumentIterator.cpp \
|
||||
../../Source/iop/DirectoryDevice.cpp \
|
||||
../../Source/iop/Iop_Cdvdfsv.cpp \
|
||||
../../Source/iop/Iop_Cdvdman.cpp \
|
||||
../../Source/iop/Iop_Dmac.cpp \
|
||||
../../Source/iop/Iop_DmacChannel.cpp \
|
||||
../../Source/iop/Iop_Dynamic.cpp \
|
||||
../../Source/iop/Iop_FileIo.cpp \
|
||||
../../Source/iop/Iop_FileIoHandler1000.cpp \
|
||||
../../Source/iop/Iop_FileIoHandler2100.cpp \
|
||||
../../Source/iop/Iop_FileIoHandler2300.cpp \
|
||||
../../Source/iop/Iop_Intc.cpp \
|
||||
../../Source/iop/Iop_Intrman.cpp \
|
||||
../../Source/iop/Iop_Ioman.cpp \
|
||||
../../Source/iop/Iop_LibSd.cpp \
|
||||
../../Source/iop/Iop_Loadcore.cpp \
|
||||
../../Source/iop/Iop_McServ.cpp \
|
||||
../../Source/iop/Iop_Modload.cpp \
|
||||
../../Source/iop/Iop_MtapMan.cpp \
|
||||
../../Source/iop/Iop_PadMan.cpp \
|
||||
../../Source/iop/Iop_RootCounters.cpp \
|
||||
../../Source/iop/Iop_SifCmd.cpp \
|
||||
../../Source/iop/Iop_SifDynamic.cpp \
|
||||
../../Source/iop/Iop_SifMan.cpp \
|
||||
../../Source/iop/Iop_SifManNull.cpp \
|
||||
../../Source/iop/Iop_SifManPs2.cpp \
|
||||
../../Source/iop/Iop_Sio2.cpp \
|
||||
../../Source/iop/Iop_Spu.cpp \
|
||||
../../Source/iop/Iop_Spu2.cpp \
|
||||
../../Source/iop/Iop_Spu2_Core.cpp \
|
||||
../../Source/iop/Iop_SpuBase.cpp \
|
||||
../../Source/iop/Iop_Stdio.cpp \
|
||||
../../Source/iop/Iop_SubSystem.cpp \
|
||||
../../Source/iop/Iop_Sysclib.cpp \
|
||||
../../Source/iop/Iop_Sysmem.cpp \
|
||||
../../Source/iop/Iop_Thbase.cpp \
|
||||
../../Source/iop/Iop_Thevent.cpp \
|
||||
../../Source/iop/Iop_Thmsgbx.cpp \
|
||||
../../Source/iop/Iop_Thsema.cpp \
|
||||
../../Source/iop/Iop_Thvpool.cpp \
|
||||
../../Source/iop/Iop_Timrman.cpp \
|
||||
../../Source/iop/Iop_Vblank.cpp \
|
||||
../../Source/iop/IopBios.cpp \
|
||||
../../Source/iop/IsoDevice.cpp \
|
||||
../../Source/ISO9660/DirectoryRecord.cpp \
|
||||
../../Source/ISO9660/File.cpp \
|
||||
../../Source/ISO9660/ISO9660.cpp \
|
||||
../../Source/ISO9660/PathTable.cpp \
|
||||
../../Source/ISO9660/PathTableRecord.cpp \
|
||||
../../Source/ISO9660/VolumeDescriptor.cpp \
|
||||
../../Source/IszImageStream.cpp \
|
||||
../../Source/Log.cpp \
|
||||
../../Source/MA_MIPSIV.cpp \
|
||||
../../Source/MA_MIPSIV_Reflection.cpp \
|
||||
../../Source/MA_MIPSIV_Templates.cpp \
|
||||
../../Source/MailBox.cpp \
|
||||
../../Source/MemoryMap.cpp \
|
||||
../../Source/MemoryStateFile.cpp \
|
||||
../../Source/MemoryUtils.cpp \
|
||||
../../Source/MIPS.cpp \
|
||||
../../Source/MIPSAnalysis.cpp \
|
||||
../../Source/MIPSArchitecture.cpp \
|
||||
../../Source/MIPSAssembler.cpp \
|
||||
../../Source/MIPSCoprocessor.cpp \
|
||||
../../Source/MipsExecutor.cpp \
|
||||
../../Source/MIPSInstructionFactory.cpp \
|
||||
../../Source/MipsJitter.cpp \
|
||||
../../Source/MIPSReflection.cpp \
|
||||
../../Source/MIPSTags.cpp \
|
||||
../../Source/PadHandler.cpp \
|
||||
../../Source/PadListener.cpp \
|
||||
../../Source/PH_Generic.cpp \
|
||||
../../Source/Profiler.cpp \
|
||||
../../Source/PS2VM.cpp \
|
||||
../../Source/RegisterStateFile.cpp \
|
||||
../../Source/StructCollectionStateFile.cpp \
|
||||
../../Source/StructFile.cpp \
|
||||
../../Source/VirtualPad.cpp \
|
||||
../../Source/ui_android/GSH_OpenGLAndroid.cpp \
|
||||
../../Source/ui_android/InputManager.cpp \
|
||||
../../Source/ui_android/NativeInterop.cpp \
|
||||
../../Source/ui_android/NativeShared.cpp \
|
||||
../../Source/ui_android/SettingsManager.cpp \
|
||||
../../Source/ui_android/SH_OpenSL.cpp \
|
||||
../../Source/ui_android/StatsManager.cpp \
|
||||
../../Source/Utils.cpp
|
||||
LOCAL_CFLAGS := -Wno-extern-c-compat -D_IOP_EMULATE_MODULES -DDISABLE_LOGGING -DGLES_COMPATIBILITY
|
||||
LOCAL_C_INCLUDES := $(BOOST_PATH) $(DEPENDENCIES_PATH)/bzip2-1.0.6 $(FRAMEWORK_PATH)/include $(CODEGEN_PATH)/include $(LOCAL_PATH)/../../include
|
||||
LOCAL_CPP_FEATURES := exceptions rtti
|
||||
LOCAL_LDLIBS := -landroid -llog -lOpenSLES -lGLESv3 -lEGL -lz
|
||||
LOCAL_STATIC_LIBRARIES := libCodeGen libFramework libbzip2 libboost cpufeatures
|
||||
|
||||
ifeq ($(APP_OPTIM),debug)
|
||||
LOCAL_CFLAGS += -D_DEBUG
|
||||
endif
|
||||
|
||||
ifeq ($(TARGET_ARCH_ABI),armeabi-v7a)
|
||||
LOCAL_CFLAGS += -mcpu=cortex-a7
|
||||
LOCAL_ARM_NEON := true
|
||||
endif
|
||||
|
||||
include $(BUILD_SHARED_LIBRARY)
|
||||
|
||||
$(call import-module,android/cpufeatures)
|
1
build_android/settings.gradle
Normal file
@ -0,0 +1 @@
|
||||
rootProject.name = 'Play'
|
199
build_android/src/main/jni/Android.mk
Normal file
@ -0,0 +1,199 @@
|
||||
LOCAL_PATH := $(call my-dir)
|
||||
|
||||
include $(LOCAL_PATH)/ExternalDependencies.mk
|
||||
|
||||
PROJECT_PATH := $(realpath $(LOCAL_PATH))/../../../../
|
||||
DEPENDENCIES_PATH := $(realpath $(LOCAL_PATH))/../../../../../Dependencies
|
||||
FRAMEWORK_PATH := $(realpath $(LOCAL_PATH))/../../../../../Framework
|
||||
CODEGEN_PATH := $(realpath $(LOCAL_PATH))/../../../../../CodeGen
|
||||
|
||||
include $(CLEAR_VARS)
|
||||
|
||||
LOCAL_MODULE := libboost
|
||||
LOCAL_SRC_FILES := $(DEPENDENCIES_PATH)/build_android/obj/local/$(TARGET_ARCH_ABI)/libboost.a
|
||||
|
||||
include $(PREBUILT_STATIC_LIBRARY)
|
||||
|
||||
include $(CLEAR_VARS)
|
||||
|
||||
LOCAL_MODULE := libbzip2
|
||||
LOCAL_SRC_FILES := $(DEPENDENCIES_PATH)/build_android/obj/local/$(TARGET_ARCH_ABI)/libbzip2.a
|
||||
|
||||
include $(PREBUILT_STATIC_LIBRARY)
|
||||
|
||||
include $(CLEAR_VARS)
|
||||
|
||||
LOCAL_MODULE := libFramework
|
||||
LOCAL_SRC_FILES := $(FRAMEWORK_PATH)/build_android/obj/local/$(TARGET_ARCH_ABI)/libFramework.a
|
||||
|
||||
include $(PREBUILT_STATIC_LIBRARY)
|
||||
|
||||
include $(CLEAR_VARS)
|
||||
|
||||
LOCAL_MODULE := libCodeGen
|
||||
LOCAL_SRC_FILES := $(CODEGEN_PATH)/build_android/src/main/obj/local/$(TARGET_ARCH_ABI)/libCodeGen.a
|
||||
|
||||
include $(PREBUILT_STATIC_LIBRARY)
|
||||
|
||||
include $(CLEAR_VARS)
|
||||
|
||||
LOCAL_MODULE := libPlay
|
||||
LOCAL_SRC_FILES := $(PROJECT_PATH)/Source/AppConfig.cpp \
|
||||
$(PROJECT_PATH)/Source/BasicBlock.cpp \
|
||||
$(PROJECT_PATH)/Source/ControllerInfo.cpp \
|
||||
$(PROJECT_PATH)/Source/COP_FPU.cpp \
|
||||
$(PROJECT_PATH)/Source/COP_FPU_Reflection.cpp \
|
||||
$(PROJECT_PATH)/Source/COP_SCU.cpp \
|
||||
$(PROJECT_PATH)/Source/COP_SCU_Reflection.cpp \
|
||||
$(PROJECT_PATH)/Source/CsoImageStream.cpp \
|
||||
$(PROJECT_PATH)/Source/DiskUtils.cpp \
|
||||
$(PROJECT_PATH)/Source/ee/COP_VU.cpp \
|
||||
$(PROJECT_PATH)/Source/ee/COP_VU_Reflection.cpp \
|
||||
$(PROJECT_PATH)/Source/ee/DMAC.cpp \
|
||||
$(PROJECT_PATH)/Source/ee/Dmac_Channel.cpp \
|
||||
$(PROJECT_PATH)/Source/ee/Ee_SubSystem.cpp \
|
||||
$(PROJECT_PATH)/Source/ee/EEAssembler.cpp \
|
||||
$(PROJECT_PATH)/Source/ee/EeExecutor.cpp \
|
||||
$(PROJECT_PATH)/Source/ee/FpAddTruncate.cpp \
|
||||
$(PROJECT_PATH)/Source/ee/FpMulTruncate.cpp \
|
||||
$(PROJECT_PATH)/Source/ee/GIF.cpp \
|
||||
$(PROJECT_PATH)/Source/ee/INTC.cpp \
|
||||
$(PROJECT_PATH)/Source/ee/IPU.cpp \
|
||||
$(PROJECT_PATH)/Source/ee/IPU_DmVectorTable.cpp \
|
||||
$(PROJECT_PATH)/Source/ee/IPU_MacroblockAddressIncrementTable.cpp \
|
||||
$(PROJECT_PATH)/Source/ee/IPU_MacroblockTypeBTable.cpp \
|
||||
$(PROJECT_PATH)/Source/ee/IPU_MacroblockTypeITable.cpp \
|
||||
$(PROJECT_PATH)/Source/ee/IPU_MacroblockTypePTable.cpp \
|
||||
$(PROJECT_PATH)/Source/ee/IPU_MotionCodeTable.cpp \
|
||||
$(PROJECT_PATH)/Source/ee/MA_EE.cpp \
|
||||
$(PROJECT_PATH)/Source/ee/MA_EE_Reflection.cpp \
|
||||
$(PROJECT_PATH)/Source/ee/MA_VU.cpp \
|
||||
$(PROJECT_PATH)/Source/ee/MA_VU_Lower.cpp \
|
||||
$(PROJECT_PATH)/Source/ee/MA_VU_LowerReflection.cpp \
|
||||
$(PROJECT_PATH)/Source/ee/MA_VU_Upper.cpp \
|
||||
$(PROJECT_PATH)/Source/ee/MA_VU_UpperReflection.cpp \
|
||||
$(PROJECT_PATH)/Source/ee/PS2OS.cpp \
|
||||
$(PROJECT_PATH)/Source/ee/SIF.cpp \
|
||||
$(PROJECT_PATH)/Source/ee/Timer.cpp \
|
||||
$(PROJECT_PATH)/Source/ee/Vif.cpp \
|
||||
$(PROJECT_PATH)/Source/ee/Vif1.cpp \
|
||||
$(PROJECT_PATH)/Source/ee/Vpu.cpp \
|
||||
$(PROJECT_PATH)/Source/ee/VuAnalysis.cpp \
|
||||
$(PROJECT_PATH)/Source/ee/VuBasicBlock.cpp \
|
||||
$(PROJECT_PATH)/Source/ee/VuExecutor.cpp \
|
||||
$(PROJECT_PATH)/Source/ee/VUShared.cpp \
|
||||
$(PROJECT_PATH)/Source/ee/VUShared_Reflection.cpp \
|
||||
$(PROJECT_PATH)/Source/ELF.cpp \
|
||||
$(PROJECT_PATH)/Source/ElfFile.cpp \
|
||||
$(PROJECT_PATH)/Source/FrameDump.cpp \
|
||||
$(PROJECT_PATH)/Source/gs/GsCachedArea.cpp \
|
||||
$(PROJECT_PATH)/Source/gs/GSH_Null.cpp \
|
||||
$(PROJECT_PATH)/Source/gs/GSHandler.cpp \
|
||||
$(PROJECT_PATH)/Source/gs/GSH_OpenGL/GSH_OpenGL.cpp \
|
||||
$(PROJECT_PATH)/Source/gs/GSH_OpenGL/GSH_OpenGL_Shader.cpp \
|
||||
$(PROJECT_PATH)/Source/gs/GSH_OpenGL/GSH_OpenGL_Texture.cpp \
|
||||
$(PROJECT_PATH)/Source/gs/GsPixelFormats.cpp \
|
||||
$(PROJECT_PATH)/Source/iop/ArgumentIterator.cpp \
|
||||
$(PROJECT_PATH)/Source/iop/DirectoryDevice.cpp \
|
||||
$(PROJECT_PATH)/Source/iop/Iop_Cdvdfsv.cpp \
|
||||
$(PROJECT_PATH)/Source/iop/Iop_Cdvdman.cpp \
|
||||
$(PROJECT_PATH)/Source/iop/Iop_Dmac.cpp \
|
||||
$(PROJECT_PATH)/Source/iop/Iop_DmacChannel.cpp \
|
||||
$(PROJECT_PATH)/Source/iop/Iop_Dynamic.cpp \
|
||||
$(PROJECT_PATH)/Source/iop/Iop_FileIo.cpp \
|
||||
$(PROJECT_PATH)/Source/iop/Iop_FileIoHandler1000.cpp \
|
||||
$(PROJECT_PATH)/Source/iop/Iop_FileIoHandler2100.cpp \
|
||||
$(PROJECT_PATH)/Source/iop/Iop_FileIoHandler2300.cpp \
|
||||
$(PROJECT_PATH)/Source/iop/Iop_Intc.cpp \
|
||||
$(PROJECT_PATH)/Source/iop/Iop_Intrman.cpp \
|
||||
$(PROJECT_PATH)/Source/iop/Iop_Ioman.cpp \
|
||||
$(PROJECT_PATH)/Source/iop/Iop_LibSd.cpp \
|
||||
$(PROJECT_PATH)/Source/iop/Iop_Loadcore.cpp \
|
||||
$(PROJECT_PATH)/Source/iop/Iop_McServ.cpp \
|
||||
$(PROJECT_PATH)/Source/iop/Iop_Modload.cpp \
|
||||
$(PROJECT_PATH)/Source/iop/Iop_MtapMan.cpp \
|
||||
$(PROJECT_PATH)/Source/iop/Iop_PadMan.cpp \
|
||||
$(PROJECT_PATH)/Source/iop/Iop_RootCounters.cpp \
|
||||
$(PROJECT_PATH)/Source/iop/Iop_SifCmd.cpp \
|
||||
$(PROJECT_PATH)/Source/iop/Iop_SifDynamic.cpp \
|
||||
$(PROJECT_PATH)/Source/iop/Iop_SifMan.cpp \
|
||||
$(PROJECT_PATH)/Source/iop/Iop_SifManNull.cpp \
|
||||
$(PROJECT_PATH)/Source/iop/Iop_SifManPs2.cpp \
|
||||
$(PROJECT_PATH)/Source/iop/Iop_Sio2.cpp \
|
||||
$(PROJECT_PATH)/Source/iop/Iop_Spu.cpp \
|
||||
$(PROJECT_PATH)/Source/iop/Iop_Spu2.cpp \
|
||||
$(PROJECT_PATH)/Source/iop/Iop_Spu2_Core.cpp \
|
||||
$(PROJECT_PATH)/Source/iop/Iop_SpuBase.cpp \
|
||||
$(PROJECT_PATH)/Source/iop/Iop_Stdio.cpp \
|
||||
$(PROJECT_PATH)/Source/iop/Iop_SubSystem.cpp \
|
||||
$(PROJECT_PATH)/Source/iop/Iop_Sysclib.cpp \
|
||||
$(PROJECT_PATH)/Source/iop/Iop_Sysmem.cpp \
|
||||
$(PROJECT_PATH)/Source/iop/Iop_Thbase.cpp \
|
||||
$(PROJECT_PATH)/Source/iop/Iop_Thevent.cpp \
|
||||
$(PROJECT_PATH)/Source/iop/Iop_Thmsgbx.cpp \
|
||||
$(PROJECT_PATH)/Source/iop/Iop_Thsema.cpp \
|
||||
$(PROJECT_PATH)/Source/iop/Iop_Thvpool.cpp \
|
||||
$(PROJECT_PATH)/Source/iop/Iop_Timrman.cpp \
|
||||
$(PROJECT_PATH)/Source/iop/Iop_Vblank.cpp \
|
||||
$(PROJECT_PATH)/Source/iop/IopBios.cpp \
|
||||
$(PROJECT_PATH)/Source/iop/IsoDevice.cpp \
|
||||
$(PROJECT_PATH)/Source/ISO9660/DirectoryRecord.cpp \
|
||||
$(PROJECT_PATH)/Source/ISO9660/File.cpp \
|
||||
$(PROJECT_PATH)/Source/ISO9660/ISO9660.cpp \
|
||||
$(PROJECT_PATH)/Source/ISO9660/PathTable.cpp \
|
||||
$(PROJECT_PATH)/Source/ISO9660/PathTableRecord.cpp \
|
||||
$(PROJECT_PATH)/Source/ISO9660/VolumeDescriptor.cpp \
|
||||
$(PROJECT_PATH)/Source/IszImageStream.cpp \
|
||||
$(PROJECT_PATH)/Source/Log.cpp \
|
||||
$(PROJECT_PATH)/Source/MA_MIPSIV.cpp \
|
||||
$(PROJECT_PATH)/Source/MA_MIPSIV_Reflection.cpp \
|
||||
$(PROJECT_PATH)/Source/MA_MIPSIV_Templates.cpp \
|
||||
$(PROJECT_PATH)/Source/MailBox.cpp \
|
||||
$(PROJECT_PATH)/Source/MemoryMap.cpp \
|
||||
$(PROJECT_PATH)/Source/MemoryStateFile.cpp \
|
||||
$(PROJECT_PATH)/Source/MemoryUtils.cpp \
|
||||
$(PROJECT_PATH)/Source/MIPS.cpp \
|
||||
$(PROJECT_PATH)/Source/MIPSAnalysis.cpp \
|
||||
$(PROJECT_PATH)/Source/MIPSArchitecture.cpp \
|
||||
$(PROJECT_PATH)/Source/MIPSAssembler.cpp \
|
||||
$(PROJECT_PATH)/Source/MIPSCoprocessor.cpp \
|
||||
$(PROJECT_PATH)/Source/MipsExecutor.cpp \
|
||||
$(PROJECT_PATH)/Source/MIPSInstructionFactory.cpp \
|
||||
$(PROJECT_PATH)/Source/MipsJitter.cpp \
|
||||
$(PROJECT_PATH)/Source/MIPSReflection.cpp \
|
||||
$(PROJECT_PATH)/Source/MIPSTags.cpp \
|
||||
$(PROJECT_PATH)/Source/PadHandler.cpp \
|
||||
$(PROJECT_PATH)/Source/PadListener.cpp \
|
||||
$(PROJECT_PATH)/Source/PH_Generic.cpp \
|
||||
$(PROJECT_PATH)/Source/Profiler.cpp \
|
||||
$(PROJECT_PATH)/Source/PS2VM.cpp \
|
||||
$(PROJECT_PATH)/Source/RegisterStateFile.cpp \
|
||||
$(PROJECT_PATH)/Source/StructCollectionStateFile.cpp \
|
||||
$(PROJECT_PATH)/Source/StructFile.cpp \
|
||||
$(PROJECT_PATH)/Source/VirtualPad.cpp \
|
||||
$(PROJECT_PATH)/Source/ui_android/GSH_OpenGLAndroid.cpp \
|
||||
$(PROJECT_PATH)/Source/ui_android/InputManager.cpp \
|
||||
$(PROJECT_PATH)/Source/ui_android/NativeInterop.cpp \
|
||||
$(PROJECT_PATH)/Source/ui_android/NativeShared.cpp \
|
||||
$(PROJECT_PATH)/Source/ui_android/SettingsManager.cpp \
|
||||
$(PROJECT_PATH)/Source/ui_android/SH_OpenSL.cpp \
|
||||
$(PROJECT_PATH)/Source/ui_android/StatsManager.cpp \
|
||||
$(PROJECT_PATH)/Source/Utils.cpp
|
||||
LOCAL_CFLAGS := -Wno-extern-c-compat -D_IOP_EMULATE_MODULES -DDISABLE_LOGGING -DGLES_COMPATIBILITY
|
||||
LOCAL_C_INCLUDES := $(BOOST_PATH) $(DEPENDENCIES_PATH)/bzip2-1.0.6 $(FRAMEWORK_PATH)/include $(CODEGEN_PATH)/include $(PROJECT_PATH)/include
|
||||
LOCAL_CPP_FEATURES := exceptions rtti
|
||||
LOCAL_LDLIBS := -landroid -llog -lOpenSLES -lGLESv3 -lEGL -lz
|
||||
LOCAL_STATIC_LIBRARIES := libCodeGen libFramework libbzip2 libboost cpufeatures
|
||||
|
||||
ifeq ($(APP_OPTIM),debug)
|
||||
LOCAL_CFLAGS += -D_DEBUG
|
||||
endif
|
||||
|
||||
ifeq ($(TARGET_ARCH_ABI),armeabi-v7a)
|
||||
LOCAL_CFLAGS += -mcpu=cortex-a7
|
||||
LOCAL_ARM_NEON := true
|
||||
endif
|
||||
|
||||
include $(BUILD_SHARED_LIBRARY)
|
||||
|
||||
$(call import-module,android/cpufeatures)
|
@ -1,5 +1,5 @@
|
||||
APP_PLATFORM := android-19
|
||||
APP_ABI := armeabi-v7a arm64-v8a x86 x86_64
|
||||
APP_STL := c++_static
|
||||
APP_CPPFLAGS += -std=c++11
|
||||
NDK_TOOLCHAIN_VERSION := clang
|
||||
APP_PLATFORM := android-19
|
||||
APP_ABI := armeabi-v7a arm64-v8a x86 x86_64
|
||||
APP_STL := c++_static
|
||||
APP_CPPFLAGS += -std=c++11
|
||||
NDK_TOOLCHAIN_VERSION := clang
|
@ -1 +1 @@
|
||||
BOOST_PATH := /path/to/boost
|
||||
BOOST_PATH := /path/to/boost
|
Before Width: | Height: | Size: 2.8 KiB After Width: | Height: | Size: 2.8 KiB |
Before Width: | Height: | Size: 174 B After Width: | Height: | Size: 174 B |
Before Width: | Height: | Size: 1.0 KiB After Width: | Height: | Size: 1.0 KiB |
Before Width: | Height: | Size: 10 KiB After Width: | Height: | Size: 10 KiB |
Before Width: | Height: | Size: 1.9 KiB After Width: | Height: | Size: 1.9 KiB |
Before Width: | Height: | Size: 202 B After Width: | Height: | Size: 202 B |
Before Width: | Height: | Size: 19 KiB After Width: | Height: | Size: 19 KiB |
Before Width: | Height: | Size: 1.7 KiB After Width: | Height: | Size: 1.7 KiB |
Before Width: | Height: | Size: 28 KiB After Width: | Height: | Size: 28 KiB |
Before Width: | Height: | Size: 4.5 KiB After Width: | Height: | Size: 4.5 KiB |
Before Width: | Height: | Size: 16 KiB After Width: | Height: | Size: 16 KiB |
Before Width: | Height: | Size: 29 KiB After Width: | Height: | Size: 29 KiB |
Before Width: | Height: | Size: 26 KiB After Width: | Height: | Size: 26 KiB |
Before Width: | Height: | Size: 21 KiB After Width: | Height: | Size: 21 KiB |
0
build_android/res/drawable/game_selector.xml → build_android/src/main/res/drawable/game_selector.xml
Executable file → Normal file
0
build_android/res/drawable/gradient_bg.xml → build_android/src/main/res/drawable/gradient_bg.xml
Executable file → Normal file
0
build_android/res/drawable/gradient_bg_hover.xml → build_android/src/main/res/drawable/gradient_bg_hover.xml
Executable file → Normal file
Before Width: | Height: | Size: 9.7 KiB After Width: | Height: | Size: 9.7 KiB |
Before Width: | Height: | Size: 10 KiB After Width: | Height: | Size: 10 KiB |
Before Width: | Height: | Size: 21 KiB After Width: | Height: | Size: 21 KiB |
Before Width: | Height: | Size: 2.2 KiB After Width: | Height: | Size: 2.2 KiB |
Before Width: | Height: | Size: 21 KiB After Width: | Height: | Size: 21 KiB |
Before Width: | Height: | Size: 20 KiB After Width: | Height: | Size: 20 KiB |
Before Width: | Height: | Size: 23 KiB After Width: | Height: | Size: 23 KiB |
Before Width: | Height: | Size: 22 KiB After Width: | Height: | Size: 22 KiB |
Before Width: | Height: | Size: 27 KiB After Width: | Height: | Size: 27 KiB |
Before Width: | Height: | Size: 21 KiB After Width: | Height: | Size: 21 KiB |
@ -1,36 +1,36 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:id="@+id/childview"
|
||||
android:orientation="vertical"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:background="@drawable/game_selector"
|
||||
android:gravity="center"
|
||||
android:layout_weight="1"
|
||||
android:padding="5dp">
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/game_icon"
|
||||
android:layout_width="@dimen/cover_width"
|
||||
android:layout_height="@dimen/cover_height"
|
||||
android:layout_gravity="center"
|
||||
android:scaleType="fitXY"
|
||||
android:src="@drawable/boxart"
|
||||
android:adjustViewBounds="false" />
|
||||
|
||||
<RelativeLayout
|
||||
android:id="@+id/text_wrapper"
|
||||
android:orientation="vertical"
|
||||
android:layout_width="@dimen/cover_width"
|
||||
android:layout_height="@dimen/cover_height"
|
||||
android:layout_alignTop="@+id/game_icon" >
|
||||
|
||||
<TextView
|
||||
android:id="@+id/game_text"
|
||||
android:layout_width="162dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_margin="5dp"
|
||||
android:layout_alignParentBottom="true" />
|
||||
</RelativeLayout>
|
||||
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:id="@+id/childview"
|
||||
android:orientation="vertical"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:background="@drawable/game_selector"
|
||||
android:gravity="center"
|
||||
android:layout_weight="1"
|
||||
android:padding="5dp">
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/game_icon"
|
||||
android:layout_width="@dimen/cover_width"
|
||||
android:layout_height="@dimen/cover_height"
|
||||
android:layout_gravity="center"
|
||||
android:scaleType="fitXY"
|
||||
android:src="@drawable/boxart"
|
||||
android:adjustViewBounds="false" />
|
||||
|
||||
<RelativeLayout
|
||||
android:id="@+id/text_wrapper"
|
||||
android:orientation="vertical"
|
||||
android:layout_width="@dimen/cover_width"
|
||||
android:layout_height="@dimen/cover_height"
|
||||
android:layout_alignTop="@+id/game_icon" >
|
||||
|
||||
<TextView
|
||||
android:id="@+id/game_text"
|
||||
android:layout_width="162dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_margin="5dp"
|
||||
android:layout_alignParentBottom="true" />
|
||||
</RelativeLayout>
|
||||
|
||||
</RelativeLayout>
|