Changeset 771 for trunk/zoo-project/zoo-api
- Timestamp:
- Jun 10, 2016, 1:40:44 AM (8 years ago)
- Location:
- trunk/zoo-project/zoo-api/java
- Files:
-
- 2 added
- 2 edited
- 1 moved
Legend:
- Unmodified
- Added
- Removed
-
trunk/zoo-project/zoo-api/java/Makefile
r612 r771 20 20 all: libZOO.${ext} 21 21 22 ZOO.class:ZOO.java23 javac ZOO.java22 org/zoo_project/ZOO.class: org/zoo_project/ZOO.java 23 javac org/zoo_project/ZOO.java 24 24 25 ZOO.h: ZOO.javaZOO.class26 javah ZOO25 org_zoo_project_ZOO.h: org/zoo_project/ZOO.java org/zoo_project/ZOO.class 26 javah org.zoo_project.ZOO 27 27 28 zoo-api.o: zoo-api.c ZOO.h28 zoo-api.o: zoo-api.c org_zoo_project_ZOO.h 29 29 gcc -fPIC -c zoo-api.c ${JAVACFLAGS} ${XML2CFLAGS} -I../../zoo-kernel/ -I../../../thirds/cgic206/ 30 30 31 31 libZOO.${ext}: zoo-api.o 32 gcc zoo-api.o -shared -o libZOO.${ext} -Wl,../../zoo-kernel/ service_internal.o,${JAVA_FILES},${MS_FILES}${JS_FILES}../../zoo-kernel/ulinet.o ${GDAL_LIBS} ${XML2LDFLAGS} ${PYTHONLDFLAGS} ${PERLLDFLAGS} ${PHPLDFLAGS} ${JAVALDFLAGS} ${JSLDFLAGS} -lcrypto ${MS_LDFLAGS} ${MACOS_LD_FLAGS} -lcurl -lfcgi ${MACOS_LD_NET_FLAGS}32 gcc zoo-api.o -shared -o libZOO.${ext} -Wl,../../zoo-kernel//service_yaml.o,../../zoo-kernel/lex.cr.o,../../zoo-kernel/main_conf_read.tab.o,../../zoo-kernel/lex.sr.o,../../zoo-kernel/service_conf.tab.o,../../zoo-kernel/service_internal.o,../../zoo-kernel/server_internal.o,../../zoo-kernel/response_print.o,${JAVA_FILES},${MS_FILES}${JS_FILES}../../zoo-kernel/ulinet.o ${GDAL_LIBS} ${XML2LDFLAGS} ${PYTHONLDFLAGS} ${PERLLDFLAGS} ${PHPLDFLAGS} ${JAVALDFLAGS} ${JSLDFLAGS} -lcrypto ${MS_LDFLAGS} ${MACOS_LD_FLAGS} -lcurl -lfcgi ${MACOS_LD_NET_FLAGS} -lzoo_service -lyaml 33 33 34 34 clean: 35 rm -f *${ext} *o *.h *class 35 rm -f *${ext} *o *.h *class org/zoo_project/*.class -
trunk/zoo-project/zoo-api/java/org/zoo_project/ZOO.java
r766 r771 1 package org.zoo_project; 2 1 3 import java.lang.*; 2 4 import java.util.*; … … 6 8 public static Integer SERVICE_SUCCEEDED=3; 7 9 public static Integer SERVICE_FAILED=4; 8 public static native String _(String a);10 public static native String translate(String a); 9 11 public static native Integer updateStatus(HashMap conf,String pourcent,String message); 10 12 } -
trunk/zoo-project/zoo-api/java/zoo-api.c
r766 r771 1 #include " ZOO.h"1 #include "org_zoo_project_ZOO.h" 2 2 #include "service.h" 3 3 #include "service_internal.h" 4 4 #include "service_internal_java.h" 5 5 6 JNIEXPORT jstring JNICALL Java_ ZOO__16 JNIEXPORT jstring JNICALL Java_org_zoo_1project_ZOO_translate 7 7 (JNIEnv *env, jclass _class, jstring msg){ 8 8 const char *message = … … 17 17 } 18 18 19 JNIEXPORT jobject JNICALL Java_ ZOO_updateStatus19 JNIEXPORT jobject JNICALL Java_org_zoo_1project_ZOO_updateStatus 20 20 (JNIEnv *env, jclass _class, jobject conf, jstring pourc, jstring msg){ 21 21
Note: See TracChangeset
for help on using the changeset viewer.