create_jni_header.sh 1.23 KB
Newer Older
Elemer Lelik's avatar
Elemer Lelik committed
1
###############################################################################
Adam Knapp's avatar
Adam Knapp committed
2
# Copyright (c) 2000-2021 Ericsson Telecom AB
Elemer Lelik's avatar
Elemer Lelik committed
3
# All rights reserved. This program and the accompanying materials
4
# are made available under the terms of the Eclipse Public License v2.0
Elemer Lelik's avatar
Elemer Lelik committed
5
# which accompanies this distribution, and is available at
6
# https://www.eclipse.org/org/documents/epl-2.0/EPL-2.0.html
Elemer Lelik's avatar
Elemer Lelik committed
7
8
9
10
11
#
# Contributors:
#   Balasko, Jeno
#   Lovassy, Arpad
#
Elemer Lelik's avatar
Elemer Lelik committed
12
13
###############################################################################

earplov's avatar
earplov committed
14
# Creates C++ header from the Java code for Java to C++ JNI function calls.
15
# This must be run if any of the native Java methods change (in org.eclipse.titan.executor.jni.JNIMiddleWare).
Elemer Lelik's avatar
Elemer Lelik committed
16
17
18
19
20
21
22
23
24
# A C++ function header is generated for each native Java method.
# Native Java method: declared with native keyword without implementation
# This script generates these files into ../../JNI/ directory:
#   org_eclipse_titan_executor_jni_JNIMiddleWare_EventDispatcher.h (this is empty, it can be deleted after creation)
#   org_eclipse_titan_executor_jni_JNIMiddleWare.h
#
# NOTE: Copyright header is not added to the generated file, it must be added manually.

javah -jni -classpath bin -d ../../JNI/ org.eclipse.titan.executor.jni.JNIMiddleWare