Avoid redundant YAZ includes.
authorAdam Dickmeiss <adam@indexdata.dk>
Mon, 7 Apr 2008 13:12:12 +0000 (15:12 +0200)
committerAdam Dickmeiss <adam@indexdata.dk>
Mon, 7 Apr 2008 13:12:12 +0000 (15:12 +0200)
libyaz4j/build.sh
libyaz4j/include/zoom-extra.h
libyaz4j/libyaz4j.i
libyaz4j/src/zoom-extra.cpp

index 05768a5..36574a0 100755 (executable)
@@ -1,11 +1,11 @@
 #!/bin/bash
 JNI_DIR=${JAVA_HOME}/include
 
-swig -I"include" -I"../dependencies/yaz-2.1.28/include/yaz/" -outdir ../src/org/yaz4j/jni -package org.yaz4j.jni -o src/libyaz4j.cpp -c++ -java libyaz4j.i
+swig -I"include" -I"../dependencies/yaz-2.1.28/include" -outdir ../src/org/yaz4j/jni -package org.yaz4j.jni -o src/libyaz4j.cpp -c++ -java libyaz4j.i
 
-g++ -I"include" -I"$JNI_DIR" -I"$JNI_DIR/linux" -I"../dependencies/yaz-2.1.28/include/yaz" -I"../dependencies/yaz-2.1.28/include" -c -Wall -o obj/libyaz4j.o src/libyaz4j.cpp
+g++ -I"include" -I"$JNI_DIR" -I"$JNI_DIR/linux" -I"../dependencies/yaz-2.1.28/include" -c -Wall -o obj/libyaz4j.o src/libyaz4j.cpp
 
-g++ -I"include" -I"$JNI_DIR" -I"$JNI_DIR/linux" -I"../dependencies/yaz-2.1.28/include/yaz" -I"../dependencies/yaz-2.1.28/include" -c -Wall -o obj/zoom-extra.o src/zoom-extra.cpp
+g++ -I"include" -I"$JNI_DIR" -I"$JNI_DIR/linux" -I"../dependencies/yaz-2.1.28/include" -c -Wall -o obj/zoom-extra.o src/zoom-extra.cpp
 
 g++ -L"../dependencies/yaz-2.1.28/lib" -shared obj/libyaz4j.o obj/zoom-extra.o -lyaz -o lib/libyaz4j.so
 
index 3aedc97..3b39133 100644 (file)
@@ -1,6 +1,6 @@
 #ifndef INCLUDED_WRAPPER
 #define INCLUDED_WRAPPER
-#include <zoom.h>
+#include <yaz/zoom.h>
 typedef struct CharStarByteArray
 {
        char* data;
index 1bac4d7..d75a915 100644 (file)
@@ -2,7 +2,7 @@
 %module yaz4jlib
        %{
                #include "zoom-extra.h"
-               #include <zoom.h>
+               #include <yaz/zoom.h>
        %}
        %include "typemaps.i"
        %include "arrays_java.i"
@@ -19,5 +19,5 @@
        %define YAZ_BEGIN_CDECL %enddef
        %define YAZ_END_CDECL %enddef
        %include "zoom-extra.h"
-       %include <zoom.h>
+       %include <yaz/zoom.h>
 
index 343103a..0521686 100644 (file)
@@ -1,5 +1,4 @@
 #include "zoom-extra.h"
-#include <zoom.h>
 #include <string.h>
 
 struct CharStarByteArray ZOOM_record_get_bytes(ZOOM_record rec, const char *type, int *len)