diff options
| author | Mark Lobodzinski <mark@lunarg.com> | 2018-04-11 13:38:11 -0600 |
|---|---|---|
| committer | Mark Lobodzinski <mark@lunarg.com> | 2018-05-11 20:10:23 -0600 |
| commit | 6e590c31d0ceaf3edc717d4e79aacc9afed46f5c (patch) | |
| tree | ff9cc5efbb622567d2f1bb823e0a5eb179fdc2e3 /cube/android/cube-with-layers | |
| parent | b37d3d8477db4ea1dc7ae25539b35a0e8e365a7f (diff) | |
| download | usermoji-6e590c31d0ceaf3edc717d4e79aacc9afed46f5c.tar.xz | |
cube: Move cube directory up to top level dir
Change-Id: Ie1116b0b6de742b4f85834a4c9d1927dd641e19b
Diffstat (limited to 'cube/android/cube-with-layers')
| -rw-r--r-- | cube/android/cube-with-layers/AndroidManifest.xml | 27 | ||||
| -rw-r--r-- | cube/android/cube-with-layers/custom_rules.xml | 25 | ||||
| -rw-r--r-- | cube/android/cube-with-layers/res/values/strings.xml | 24 |
3 files changed, 76 insertions, 0 deletions
diff --git a/cube/android/cube-with-layers/AndroidManifest.xml b/cube/android/cube-with-layers/AndroidManifest.xml new file mode 100644 index 00000000..29c8d1a0 --- /dev/null +++ b/cube/android/cube-with-layers/AndroidManifest.xml @@ -0,0 +1,27 @@ +<?xml version="1.0"?> +<manifest xmlns:android="http://schemas.android.com/apk/res/android" package="com.example.CubeWithLayers" android:versionCode="1" android:versionName="1.0"> + + <!-- Allow this app to read and write files (for use by tracing libraries). --> + <uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE"/> + <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/> + <uses-permission android:name="android.permission.INTERNET"/> + + <!-- This is the platform API where NativeActivity was introduced. --> + <uses-sdk android:minSdkVersion="23" android:targetSdkVersion="23"/> + + <!-- This .apk has no Java code itself, so set hasCode to false. --> + <application android:label="@string/app_name" android:hasCode="false" android:debuggable='true'> + + <!-- Our activity is the built-in NativeActivity framework class. + This will take care of integrating with our NDK code. --> + <activity android:name="android.app.NativeActivity" android:label="@string/app_name" android:exported="true"> + <!-- Tell NativeActivity the name of or .so --> + <meta-data android:name="android.app.lib_name" android:value="Cube"/> + <intent-filter> + <action android:name="android.intent.action.MAIN"/> + <category android:name="android.intent.category.LAUNCHER"/> + </intent-filter> + </activity> + </application> + +</manifest> diff --git a/cube/android/cube-with-layers/custom_rules.xml b/cube/android/cube-with-layers/custom_rules.xml new file mode 100644 index 00000000..ab517bfe --- /dev/null +++ b/cube/android/cube-with-layers/custom_rules.xml @@ -0,0 +1,25 @@ +<?xml version="1.0" encoding="UTF-8"?> +<project name="NativeActivity" default="help"> + +<property name="cubeWithLayersDir" location="../libs-with-layers" /> +<property name="cubeDir" location="../libs" /> +<property name="layersDir" location="../../../build-android/libs" /> + +<echo>CubeWithLayers: Creating libs-with-layers</echo> +<mkdir dir="${cubeWithLayersDir}"/> + +<echo>CubeWithLayers: Copying libs from demos/android</echo> +<copy todir="${cubeWithLayersDir}"> +<fileset dir="${cubeDir}"/> +</copy> + +<echo>CubeWithLayers: Copying layers from build-android</echo> +<copy todir="${cubeWithLayersDir}"> +<fileset dir="${layersDir}"/> +</copy> + +<!-- Point ndk-build at the libs-with-layers common dir --> +<echo>CubeWithLayers: Overriding native.libs.absolute.dir with ${cubeWithLayersDir}</echo> +<property name="native.libs.absolute.dir" location="${cubeWithLayersDir}" /> + +</project> diff --git a/cube/android/cube-with-layers/res/values/strings.xml b/cube/android/cube-with-layers/res/values/strings.xml new file mode 100644 index 00000000..bdf81e5b --- /dev/null +++ b/cube/android/cube-with-layers/res/values/strings.xml @@ -0,0 +1,24 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- Copyright 2013 The Android Open Source Project + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +--> + +<!-- This file contains resource definitions for displayed strings, allowing + them to be changed based on the locale and options. --> + +<resources> + <!-- Simple strings. --> + <string name="app_name">CubeWithLayers</string> + +</resources> |
