2 DEPENDS += "openjdk-langtools-native zip-native"
4 JNI_LIB_DIR = "/usr/lib/jni"
6 PACKAGE_ARCH = "${MACHINE_ARCH}"
9 JAVAH_OUT=${D}${JNI_LIB_DIR} \
10 LIB_DIR=${D}${JNI_LIB_DIR} \
11 JAVAH_CLASSPATH=${S}/build --debug \
12 COMMON_CLASSPATH=${STAGING_LIBDIR}/com.buglabs.bug.jni.common.jar \
13 STAGING_BUG_INCDIR=${STAGING_INCDIR}/bug \
14 BUG_LINUX_SRC=${STAGING_KERNEL_DIR} \
15 STAGING_INCDIR=${STAGING_INCDIR} \
16 CLASSPATH_INCDIR=${STAGING_INCDIR}/classpath \
17 ROOTFS_BUG=${STAGING_LIBDIR}/../../ \
20 addtask jni_compile after do_compile before do_install
26 addtask jni_install after do_install before do_package
28 install -d ${D}${JNI_LIB_DIR}
33 addtask jni_update_jar after do_jni_install before do_package
38 zip -u ${D}${datadir_java}/${JARFILENAME} lib/*.so
41 addtask jni_staging after do_jni_install before do_package
43 if test -e ${S}/src/c/*.so; then
44 install -d ${STAGING_LIBDIR}/bug
45 cp -r ${S}/src/c/*.so ${STAGING_LIBDIR}/bug
46 cp -r ${S}/src/c/*.so ${STAGING_LIBDIR}/
49 if test -e ${S}/src/c/include/*.h; then
50 install -d ${STAGING_INCDIR}/bug
51 cp -r ${S}/src/c/include/*.h ${STAGING_INCDIR}/bug
52 cp -r ${S}/src/c/include/*.h ${STAGING_INCDIR}/