diff options
author | Tibor Král <tibor.kral@pantheon.tech> | 2018-09-19 16:14:22 +0200 |
---|---|---|
committer | Damjan Marion <dmarion@me.com> | 2018-09-21 15:42:46 +0000 |
commit | d974cd4262238168db65b9d837066f7c7511a9c5 (patch) | |
tree | f06e814ec7af341dc167180b345b18285afe1edc /extras | |
parent | ab395ec884d0ec9279893b1695379e97acd1f24d (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')
-rw-r--r-- | extras/japi/java/Makefile.am | 20 | ||||
-rw-r--r-- | extras/japi/java/jvpp-nsh/jvpp_nsh.c | 2 |
2 files changed, 21 insertions, 1 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 diff --git a/extras/japi/java/jvpp-nsh/jvpp_nsh.c b/extras/japi/java/jvpp-nsh/jvpp_nsh.c index b0577cf83ce..1736ce79910 100644 --- a/extras/japi/java/jvpp-nsh/jvpp_nsh.c +++ b/extras/japi/java/jvpp-nsh/jvpp_nsh.c @@ -78,7 +78,7 @@ JNIEXPORT void JNICALL Java_io_fd_vpp_jvpp_nsh_JVppNshImpl_close0 plugin_main->callbackClass = NULL; plugin_main->callbackObject = NULL; - +} /* Attach thread to JVM and cache class references when initiating JVPP ACL */ jint JNI_OnLoad(JavaVM *vm, void *reserved) { |