diff options
author | Sven Gothel <[email protected]> | 2014-01-26 02:14:26 +0100 |
---|---|---|
committer | Sven Gothel <[email protected]> | 2014-01-26 02:14:26 +0100 |
commit | aac4c5fc4ab7c77eff3b71f518100dd182ec2c33 (patch) | |
tree | 3883e6e9a97146a0cbf503ff67f7b58870fe22dd /make/resources/android | |
parent | ac84afd26ad3b34851a423fb90e6c819b9dc9495 (diff) |
Cleanup Build: GlueGen config files, stub_includes; Add JoclVersion, Android JoclVersionActivity
Cleanup Build:
- Move gluegen config files into make/config (cleanup)
- Move stub_includes into respective folder make/stub_includes
and keep resources 'clean'
JoclVersion:
- Analoge to JoglVersion, replaces JOCLVersion (deprecated for now)
- Added text based CL info dump.
JoclVersionActivity:
- Analog to JoclVersionActivity
- Added full launch .. tested on Android (but no OpenCL avail.)
Diffstat (limited to 'make/resources/android')
-rw-r--r-- | make/resources/android/AndroidManifest-jocl.xml | 11 | ||||
-rw-r--r-- | make/resources/android/AndroidManifest-test.xml | 20 | ||||
-rw-r--r-- | make/resources/android/res-jocl/values/strings.xml | 4 | ||||
-rw-r--r-- | make/resources/android/res-test/drawable-hdpi/icon.png | bin | 0 -> 2516 bytes | |||
-rw-r--r-- | make/resources/android/res-test/drawable-ldpi/icon.png | bin | 0 -> 1172 bytes | |||
-rw-r--r-- | make/resources/android/res-test/drawable-mdpi/icon.png | bin | 0 -> 1570 bytes | |||
-rw-r--r-- | make/resources/android/res-test/layout/main.xml | 12 | ||||
-rw-r--r-- | make/resources/android/res-test/values/strings.xml | 8 |
8 files changed, 53 insertions, 2 deletions
diff --git a/make/resources/android/AndroidManifest-jocl.xml b/make/resources/android/AndroidManifest-jocl.xml index 07fff315..2f39c9ab 100644 --- a/make/resources/android/AndroidManifest-jocl.xml +++ b/make/resources/android/AndroidManifest-jocl.xml @@ -13,6 +13,17 @@ android:description="@string/app_descr" android:persistent="false" > + <activity android:name="jogamp.opencl.os.android.JoclVersionActivityLauncher" + android:finishOnTaskLaunch="true" + android:launchMode="singleTop" + android:label="@string/activity_v_name" + android:description="@string/activity_v_descr" + > + <intent-filter> + <action android:name="android.intent.action.MAIN" /> + <category android:name="android.intent.category.LAUNCHER" /> + </intent-filter> + </activity> </application> </manifest> diff --git a/make/resources/android/AndroidManifest-test.xml b/make/resources/android/AndroidManifest-test.xml new file mode 100644 index 00000000..bad971e5 --- /dev/null +++ b/make/resources/android/AndroidManifest-test.xml @@ -0,0 +1,20 @@ +<?xml version="1.0" encoding="utf-8"?> +<manifest xmlns:android="http://schemas.android.com/apk/res/android" + sharedUserId="com.jogamp.Community" + package="com.jogamp.opencl.test"> + + <uses-library android:name="com.jogamp.common" android:required="true" /> + <uses-library android:name="javax.media.opengl" android:required="true" /> + <uses-library android:name="com.jogamp.opencl" android:required="true" /> + <uses-library android:name="jogamp.android.launcher" android:required="true" /> + + <uses-sdk android:minSdkVersion="9" android:targetSdkVersion="14"/> + + <application android:icon="@drawable/icon" + android:label="@string/app_name" + android:description="@string/app_descr" + android:persistent="false" + > + </application> + +</manifest> diff --git a/make/resources/android/res-jocl/values/strings.xml b/make/resources/android/res-jocl/values/strings.xml index 24038557..9834b351 100644 --- a/make/resources/android/res-jocl/values/strings.xml +++ b/make/resources/android/res-jocl/values/strings.xml @@ -3,6 +3,6 @@ <string name="hello">Jocl Library</string> <string name="app_name">JogAmp\'s Jocl Library</string> <string name="app_descr">Contains Dalvik and native code, supporting native bindings.</string> - <string name="activity_v_name">Jocl</string> - <string name="activity_v_descr">The Jocl Library.</string> + <string name="activity_v_name">Jocl\'s Version</string> + <string name="activity_v_descr">Shows the version of the JOCL Library and runtime CL infos.</string> </resources> diff --git a/make/resources/android/res-test/drawable-hdpi/icon.png b/make/resources/android/res-test/drawable-hdpi/icon.png Binary files differnew file mode 100644 index 00000000..2148232c --- /dev/null +++ b/make/resources/android/res-test/drawable-hdpi/icon.png diff --git a/make/resources/android/res-test/drawable-ldpi/icon.png b/make/resources/android/res-test/drawable-ldpi/icon.png Binary files differnew file mode 100644 index 00000000..c16211f3 --- /dev/null +++ b/make/resources/android/res-test/drawable-ldpi/icon.png diff --git a/make/resources/android/res-test/drawable-mdpi/icon.png b/make/resources/android/res-test/drawable-mdpi/icon.png Binary files differnew file mode 100644 index 00000000..1c26e3f8 --- /dev/null +++ b/make/resources/android/res-test/drawable-mdpi/icon.png diff --git a/make/resources/android/res-test/layout/main.xml b/make/resources/android/res-test/layout/main.xml new file mode 100644 index 00000000..3a5f117d --- /dev/null +++ b/make/resources/android/res-test/layout/main.xml @@ -0,0 +1,12 @@ +<?xml version="1.0" encoding="utf-8"?> +<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" + android:orientation="vertical" + android:layout_width="fill_parent" + android:layout_height="fill_parent" + > +<TextView + android:layout_width="fill_parent" + android:layout_height="wrap_content" + android:text="@string/hello" + /> +</LinearLayout> diff --git a/make/resources/android/res-test/values/strings.xml b/make/resources/android/res-test/values/strings.xml new file mode 100644 index 00000000..bc47312c --- /dev/null +++ b/make/resources/android/res-test/values/strings.xml @@ -0,0 +1,8 @@ +<?xml version="1.0" encoding="utf-8"?> +<resources> + <string name="hello">Jocl Test</string> + <string name="app_name">Jocl Tests</string> + <string name="app_descr">Launches Jocl Tests</string> + <string name="activity_opencltest1_name">JOCLTST1</string> + <string name="activity_opencltest1_descr">JOCLTST1</string> +</resources> |