aboutsummaryrefslogtreecommitdiffstats
path: root/extras/japi/java/Makefile.am
diff options
context:
space:
mode:
authorTibor Král <tibor.kral@pantheon.tech>2018-09-19 16:14:22 +0200
committerDamjan Marion <dmarion@me.com>2018-09-21 15:42:46 +0000
commitd974cd4262238168db65b9d837066f7c7511a9c5 (patch)
treef06e814ec7af341dc167180b345b18285afe1edc /extras/japi/java/Makefile.am
parentab395ec884d0ec9279893b1695379e97acd1f24d (diff)
Fixed japi/java/Makefile.am so the JAR for NSH plugin builds as well.
Change-Id: I15b3e51d6e0206f4a387eb2ce764914167149385 Signed-off-by: Tibor Král <tibor.kral@pantheon.tech>
Diffstat (limited to 'extras/japi/java/Makefile.am')
-rw-r--r--extras/japi/java/Makefile.am20
1 files changed, 20 insertions, 0 deletions
diff --git a/extras/japi/java/Makefile.am b/extras/japi/java/Makefile.am
index 7ef42ba740c..d33ae82ff0d 100644
--- a/extras/japi/java/Makefile.am
+++ b/extras/japi/java/Makefile.am
@@ -185,6 +185,26 @@ jvpp-nat/io_fd_vpp_jvpp_nat_JVppNatImpl.h: $(jvpp_registry_ok) $(jvpp_nat_json_f
endif
#
+# NSH Plugin
+#
+if ENABLE_NSH_PLUGIN
+noinst_LTLIBRARIES += libjvpp_nsh.la
+libjvpp_nsh_la_SOURCES = jvpp-nsh/jvpp_nsh.c
+libjvpp_nsh_la_CPPFLAGS = -Ijvpp-nsh
+libjvpp_nsh_la_LIBADD = $(JVPP_LIBS)
+libjvpp_nsh_la_DEPENDENCIES = libjvpp_common.la
+
+BUILT_SOURCES += jvpp-nsh/io_fd_vpp_jvpp_nsh_JVppNshImpl.h
+JAR_FILES += jvpp-nsh-$(PACKAGE_VERSION).jar
+CLEANDIRS += jvpp-nsh/target
+
+jvpp_nsh_json_files = @top_builddir@/../vpp/plugins/nsh/nsh.api.json
+
+jvpp-nsh/io_fd_vpp_jvpp_nsh_JVppNshImpl.h: $(jvpp_registry_ok) $(jvpp_nsh_json_files)
+ $(call japigen,nsh,JVppNshImpl)
+endif
+
+#
# iOAM Trace Plugin
#
if ENABLE_IOAM_PLUGIN