summaryrefslogtreecommitdiff
path: root/src/ui/android
diff options
context:
space:
mode:
authorkr.angelov <kr.angelov@gmail.com>2013-09-05 12:19:59 +0000
committerkr.angelov <kr.angelov@gmail.com>2013-09-05 12:19:59 +0000
commit46f2460a926a93a5bff360b0bfe7a52a983f2a56 (patch)
tree341b6c5e5ff21a405086b3482dbf3ccd6d34fc3b /src/ui/android
parentd7916c1b085826fc6be73527dde70db00941e909 (diff)
move src/runtime/android to src/ui/android/jni
Diffstat (limited to 'src/ui/android')
-rw-r--r--src/ui/android/.classpath7
-rw-r--r--src/ui/android/jni/Android.mk16
-rw-r--r--src/ui/android/jni/Application.mk2
3 files changed, 23 insertions, 2 deletions
diff --git a/src/ui/android/.classpath b/src/ui/android/.classpath
index 48f4f566f..2f27127f0 100644
--- a/src/ui/android/.classpath
+++ b/src/ui/android/.classpath
@@ -3,8 +3,11 @@
<classpathentry kind="src" path="src"/>
<classpathentry kind="src" path="gen"/>
<classpathentry kind="con" path="com.android.ide.eclipse.adt.ANDROID_FRAMEWORK"/>
- <classpathentry exported="true" kind="con" path="com.android.ide.eclipse.adt.LIBRARIES"/>
+ <classpathentry exported="true" kind="con" path="com.android.ide.eclipse.adt.LIBRARIES">
+ <attributes>
+ <attribute name="org.eclipse.jdt.launching.CLASSPATH_ATTR_LIBRARY_PATH_ENTRY" value="jni"/>
+ </attributes>
+ </classpathentry>
<classpathentry exported="true" kind="con" path="com.android.ide.eclipse.adt.DEPENDENCIES"/>
- <classpathentry combineaccessrules="false" kind="src" path="/jpgf"/>
<classpathentry kind="output" path="bin/classes"/>
</classpath>
diff --git a/src/ui/android/jni/Android.mk b/src/ui/android/jni/Android.mk
new file mode 100644
index 000000000..febd57a65
--- /dev/null
+++ b/src/ui/android/jni/Android.mk
@@ -0,0 +1,16 @@
+LOCAL_PATH := $(call my-dir)
+
+include $(CLEAR_VARS)
+
+jni_c_files := jpgf.c
+pgf_c_files := data.c expr.c graphviz.c lexer.c linearizer.c literals.c parser.c parseval.c pgf.c printer.c reader.c reasoner.c
+gu_c_files := assert.c choice.c exn.c fun.c in.c list.c map.c out.c str.c type.c utf8.c \
+bits.c defs.c enum.c file.c hash.c intern.c log.c mem.c prime.c seq.c string.c ucs.c variant.c
+
+LOCAL_MODULE := jpgf
+LOCAL_SRC_FILES := $(addprefix ../../../runtime/java/, $(jni_c_files)) \
+ $(addprefix ../../../runtime/c/pgf/, $(pgf_c_files)) \
+ $(addprefix ../../../runtime/c/gu/, $(gu_c_files))
+LOCAL_C_INCLUDES := ../../../runtime/c
+
+include $(BUILD_SHARED_LIBRARY)
diff --git a/src/ui/android/jni/Application.mk b/src/ui/android/jni/Application.mk
new file mode 100644
index 000000000..1c6face0e
--- /dev/null
+++ b/src/ui/android/jni/Application.mk
@@ -0,0 +1,2 @@
+
+APP_CFLAGS := -std=gnu99