From 237944f38b6b08b83dff9dafbf0f7ee3ce9a3752 Mon Sep 17 00:00:00 2001 From: Ed Warnicke Date: Wed, 6 Jul 2016 15:23:34 -0700 Subject: jvpp support for nsh Augment APIs with entry_index for reply, dump and details Squashes: https://gerrit.fd.io/r/#/c/2538/ https://gerrit.fd.io/r/#/c/2118/ https://gerrit.fd.io/r/#/c/1884/ Change-Id: Ibbdc53e2db8ffa5499380f6ce70356c4a401315e Signed-off-by: Marek Gradzki Signed-off-by: Hongjun Ni Signed-off-by: Ed Warnicke --- nsh-plugin/java/Makefile.am | 69 +++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 69 insertions(+) create mode 100644 nsh-plugin/java/Makefile.am (limited to 'nsh-plugin/java/Makefile.am') diff --git a/nsh-plugin/java/Makefile.am b/nsh-plugin/java/Makefile.am new file mode 100644 index 0000000..a16c846 --- /dev/null +++ b/nsh-plugin/java/Makefile.am @@ -0,0 +1,69 @@ +# Copyright (c) 2015 Cisco and/or its affiliates. +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at: +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +AUTOMAKE_OPTIONS = foreign subdir-objects +ACLOCAL_AMFLAGS = -I m4 +AM_CFLAGS = -Wall + + +noinst_PROGRAMS = +BUILT_SOURCES = +bin_PROGRAMS = +CLEANFILES = + +nobase_include_HEADERS = jvpp/org_openvpp_jvpp_nsh_JVppNshImpl.h + +jarfile_jnsh_sfc = jnsh_sfc-$(PACKAGE_VERSION).jar +# fixme update dirs after package in jvpp is changed from org.openvpp.jvpp to io.fd.vpp +java_packagedir = io/fd/nsh_sfc/jvpp +java_gendir = jvpp/src/main/java +resourcesdir = jvpp/src/main/resources +api_file=$(srcdir)/../nsh/nsh.api +jvpp_gen = jvpp_gen.py + + +lib_LTLIBRARIES = libjvpp_nsh.la +libjvpp_nsh_la_SOURCES = $(srcdir)/../java/nsh.api.h jvpp/jvpp_nsh.c jvpp/org_openvpp_jvpp_nsh_JVppNshImpl.h +libjvpp_nsh_la_LIBADD = -lvlibmemoryclient -lvlibapi -lsvm -lvppinfra \ + -lpthread -lm -lrt -ljvpp_common +libjvpp_nsh_la_LDFLAGS = -module +libjvpp_nsh_la_CPPFLAGS = -I$(JAVA_HOME)/include -I$(JAVA_HOME)/include/linux -I../ -I$(srcdir)/../ + +BUILT_SOURCES = jvpp/org_openvpp_jvpp_nsh_JVppNshImpl.h + +jvpp/org_openvpp_jvpp_nsh_JVppNshImpl.h: defs_nsh_sfc_papi.py + dir=`pwd`; \ + mkdir -p $(java_gendir)/$(java_packagedir); \ + cd $(java_gendir)/$(java_packagedir); \ + mkdir -p dto future callfacade callback notification test; \ + $(jvpp_gen) -i $${dir}/defs_nsh_sfc_papi.py --plugin_name nsh --control_ping_class NshControlPing; \ + cd -; \ + mv -f $(java_gendir)/$(java_packagedir)/jvpp_nsh_gen.h jvpp/jvpp_nsh_gen.h; \ + cp $(srcdir)/pom.xml jvpp/; \ + cp $(srcdir)/jvpp/test/*.java $(java_gendir)/$(java_packagedir)/test/; \ + cd jvpp; \ + mvn $${MAVEN_SETTINGS_OPTIONS} -v; \ + mvn $${MAVEN_SETTINGS_OPTIONS} clean process-classes; + +$(jarfile_jnsh_sfc): libjvpp_nsh.la + mkdir -p $(resourcesdir); \ + cp .libs/libjvpp_nsh.so.0.0.0 $(resourcesdir); \ + cd jvpp; \ + mvn $${MAVEN_SETTINGS_OPTIONS} -v; \ + mvn $${MAVEN_SETTINGS_OPTIONS} package; + +defs_nsh_sfc_papi.py: + @echo " jNsh_sfc API"; \ + vppapigen --input $(api_file) --python defs_nsh_sfc_papi.py; + +all-local: $(jarfile_jnsh_sfc) -- cgit 1.2.3-korg