aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorSven Gothel <[email protected]>2020-09-08 13:10:16 +0200
committerSven Gothel <[email protected]>2020-09-15 00:24:42 +0200
commit24cc8c1bca73f484d21fe8a8b2ab8b0c39d71097 (patch)
treeb483d30a03a5a8e478d2430260eef87c6f8dfb2f /test
parentf55316db7ff3e27678e92947ba33abc53b3bacb7 (diff)
Only generate JNI headers when Java sources have been modified, i.e. when Jar file is being build.
JNI header generation is satisfied by 'add_jar(.. GENERATE_NATIVE_HEADERS <target> DESTINATION <dir>)', note that its GENERATE_NATIVE_HEADERS target is a dummy target, since jni/direct_bt defines target javadirect_bt. Weakness of not directly checking build dependency of javadirect_bt against generated headers exists, however, it is unrealistic to assume that the transient generated JNI header will be edited manually within the process. Therefor we can use the dummy target javadirect_bt_javah and JNI header generation will only occur when java sources have been modified, i.e. the jar file being actually build.
Diffstat (limited to 'test')
0 files changed, 0 insertions, 0 deletions