Project

General

Profile

Revision 63d0f40e

ID63d0f40edf7e6732f1dae2e349cbc8a3dec1941d

Added by Georg Kunz almost 9 years ago

[sequencechart] build system upate

Added a make target nativelibs to the root Makefile. Updated README
accordingly.

View differences:

Makefile
88 88
	cd $(OMNETPP_UI_DIR)/$@ && $(MAKE) clean
89 89
	cd $(OMNETPP_UI_DIR)/$@ && $(MAKE)
90 90

  
91
nativelibs: nedxml
92
	@echo ===== Compiling $@ =====
93
	cd ide/org.omnetpp.ide.nativelibs && $(MAKE)
94
	
95
nativelibs-clean:
96
	cd ide/org.omnetpp.ide.nativelibs && $(MAKE) clean	
91 97

  
92 98
#
93 99
# Documentation
ide/org.omnetpp.ide.nativelibs/Makefile
56 56
STRIP_FLAGS=-x
57 57
endif
58 58

  
59
DLL_TARGET_DIR = ../org.omnetpp.ide.nativelibs.$(PLATFORM)
59
UI_VERSION_STRING = 4.1.0.100611-4b63c38
60
DLL_TARGET_DIR = ../plugins/org.omnetpp.ide.nativelibs.$(PLATFORM)_$(UI_VERSION_STRING)
60 61

  
61 62
#
62 63
# Local definitions
......
114 115
	$(STRIP) $(STRIP_FLAGS) $O/$(DLL)
115 116

  
116 117
$(DLL_TARGET_DIR)/$(DLL): $O/$(DLL)
117
	cp $O/$(DLL) $(DLL_TARGET_DIR)
118
	cp $O/$(DLL) $(DLL_TARGET_DIR)/$(DLL)
118 119

  
119 120

  
120 121
missing-dependency:
ide/org.omnetpp.sequencechart/README.txt
36 36
1. Build and install C++ nativelibs:
37 37
------------------------------------
38 38

  
39
- Make sure that SWIG 1.x is correctly installed
40

  
39 41
- Build libopplibs.so and create Java wrappers
40
    $> cd ide/org.omnetpp.ide.nativelibs
41
    $> make
42
  This creates the file "horizon/out/gcc-<mode>/ui/libopplibs.so" and Java 
43
  files in "ide/org.omnetpp.ide.nativelibs/src"
44
  
45
- Replace the stock libopplibs.so file in 
46
  "ide/org.omnetpp.ide.nativelibs.<YOUR-PLATFORM>_<version-string>" with the 
47
  previously built libopplibs.so
42
    $> cd <horizon-root>
43
    $> make nativelibs
44

  
45
  This creates Java JNI wrapper files in ide/org.omnetpp.ide.nativelibs/src and
46
  installs the C++ counterpart in 
47
  ide/plugins/org.omnetpp.ide.nativelibs.<YOUR_PLATFORM>-<VERSION_STRING>/libopplibs.so
48 48

  
49 49

  
50 50
2. Build and install Java nativelibs wrapper

Also available in: Unified diff