Commit 63d0f40e authored by Georg Kunz's avatar Georg Kunz

[sequencechart] build system upate

Added a make target nativelibs to the root Makefile. Updated README
accordingly.
parent 92b45026
......@@ -88,6 +88,12 @@ $(JNILIBS): nedxml
cd $(OMNETPP_UI_DIR)/$@ && $(MAKE) clean
cd $(OMNETPP_UI_DIR)/$@ && $(MAKE)
nativelibs: nedxml
@echo ===== Compiling $@ =====
cd ide/org.omnetpp.ide.nativelibs && $(MAKE)
nativelibs-clean:
cd ide/org.omnetpp.ide.nativelibs && $(MAKE) clean
#
# Documentation
......
......@@ -56,7 +56,8 @@ ifeq ("$(JNI_LIB_SUFFIX)",".jnilib")
STRIP_FLAGS=-x
endif
DLL_TARGET_DIR = ../org.omnetpp.ide.nativelibs.$(PLATFORM)
UI_VERSION_STRING = 4.1.0.100611-4b63c38
DLL_TARGET_DIR = ../plugins/org.omnetpp.ide.nativelibs.$(PLATFORM)_$(UI_VERSION_STRING)
#
# Local definitions
......@@ -114,7 +115,7 @@ $O/$(DLL): $(OBJS)
$(STRIP) $(STRIP_FLAGS) $O/$(DLL)
$(DLL_TARGET_DIR)/$(DLL): $O/$(DLL)
cp $O/$(DLL) $(DLL_TARGET_DIR)
cp $O/$(DLL) $(DLL_TARGET_DIR)/$(DLL)
missing-dependency:
......
......@@ -36,15 +36,15 @@ Building from source
1. Build and install C++ nativelibs:
------------------------------------
- Make sure that SWIG 1.x is correctly installed
- Build libopplibs.so and create Java wrappers
$> cd ide/org.omnetpp.ide.nativelibs
$> make
This creates the file "horizon/out/gcc-<mode>/ui/libopplibs.so" and Java
files in "ide/org.omnetpp.ide.nativelibs/src"
- Replace the stock libopplibs.so file in
"ide/org.omnetpp.ide.nativelibs.<YOUR-PLATFORM>_<version-string>" with the
previously built libopplibs.so
$> cd <horizon-root>
$> make nativelibs
This creates Java JNI wrapper files in ide/org.omnetpp.ide.nativelibs/src and
installs the C++ counterpart in
ide/plugins/org.omnetpp.ide.nativelibs.<YOUR_PLATFORM>-<VERSION_STRING>/libopplibs.so
2. Build and install Java nativelibs wrapper
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment