Add support for Google TV devices

master
Kenny Root 2011-12-19 17:56:13 -06:00
parent 9565d768a1
commit a1894f46e6
6 changed files with 22 additions and 0 deletions

View File

@ -29,6 +29,8 @@
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
<uses-permission android:name="android.permission.WAKE_LOCK" />
<uses-feature android:name="android.hardware.touchscreen" android:required="false"/>
<supports-screens />
<application

View File

@ -127,6 +127,23 @@
includes="**/*.pot **/*.po" />
</target>
<target name="-check-ndk">
<fail
message="ndk.dir is missing. Make sure to put it in local.properties"
unless="ndk.dir"
/>
</target>
<target name="native-build" depends="-check-ndk">
<exec executable="${ndk.dir}/ndk-build" failonerror="true" />
</target>
<target name="native-clean" depends="-check-ndk">
<exec executable="${ndk.dir}/ndk-build" failonerror="true">
<arg value="clean" />
</exec>
</target>
<!-- End custom ConnectBot stuff -->
<!-- quick check on sdk.dir -->

2
jni/Application.mk Normal file
View File

@ -0,0 +1,2 @@
# Build both ARMv5TE and x86-32 machine code.
APP_ABI := armeabi x86

View File

@ -3,6 +3,7 @@ LOCAL_PATH := $(call my-dir)
include $(CLEAR_VARS)
LOCAL_MODULE := com_google_ase_Exec
LOCAL_CFLAGS := -Werror
LOCAL_SRC_FILES := com_google_ase_Exec.cpp
LOCAL_LDLIBS := -llog

Binary file not shown.