From f97f4f89dd2548bff5db6af98275ca2901ffea74 Mon Sep 17 00:00:00 2001 From: Adam Dickmeiss Date: Tue, 22 Sep 2009 11:07:19 +0200 Subject: [PATCH] Fix build of JNI sources. Fix build of JNI sources. Use the generate-sources phase. --- libyaz4j/Makefile | 4 ++++ pom.xml | 15 +++++++++++++++ 2 files changed, 19 insertions(+) diff --git a/libyaz4j/Makefile b/libyaz4j/Makefile index d151414..ebbdb9c 100644 --- a/libyaz4j/Makefile +++ b/libyaz4j/Makefile @@ -6,6 +6,10 @@ YAZ_LIBS=`${YAZ_CONFIG} --libs` all: lib/libyaz4j.so +.PHONY: generate-sources + +generate-sources: src/libyaz4j.cpp + src/libyaz4j.cpp: libyaz4j.i swig -I"include" -I"$(YAZ_PREFIX)/include" -outdir ../src/main/java/org/yaz4j/jni -package org.yaz4j.jni -o src/libyaz4j.cpp -c++ -java libyaz4j.i diff --git a/pom.xml b/pom.xml index 92a7226..195d321 100644 --- a/pom.xml +++ b/pom.xml @@ -100,6 +100,21 @@ maven-antrun-plugin + native-sources + generate-sources + + run + + + + + + + + + + + build-native compile -- 1.7.10.4