mirror of
https://github.com/eclipse/upm.git
synced 2025-07-02 09:51:14 +03:00
JAVA: Remove library source compile from JAVA packages
Previously the JAVA packages re-compile UPM library source files. This was a work-around for compiling JAVA-specific functionality from the UPM source into the SWIG'ed JAVA pacakges. This commit removes the source from the JAVA SWIG compile and provides an example on how to add the JAVA-specific code with a swig extend call. * Added _upm.i file for %import (not %include) * Added macros to _upm.i; 1 which performs the loadLibrary, and one which adds the java installISR runnable. * Updated the src/CMakeLists.txt file to NOT build library src into pacakges. * Updated the a110x library with examples on how to use the macros. Signed-off-by: Noel Eck <noel.eck@intel.com>
This commit is contained in:

committed by
Stefan Andritoiu

parent
7422ec937c
commit
70a352a545
@ -36,7 +36,9 @@ class AutoLoadLibrary(u.TestCase):
|
||||
if not '%module' in data:
|
||||
print "%%module not found in %s, skipping" % fileName
|
||||
continue
|
||||
if not snippet in data:
|
||||
# Check for the autoload code or the autoload macro
|
||||
if (not 'JAVA_JNI_LOADLIBRARY(javaupm_' in data) and \
|
||||
(not snippet in data):
|
||||
broken_modules.append('%s: %s' % \
|
||||
(moduleName, os.path.join(subdir, fileName)))
|
||||
|
||||
|
Reference in New Issue
Block a user