File tree Expand file tree Collapse file tree 1 file changed +27
-4
lines changed Expand file tree Collapse file tree 1 file changed +27
-4
lines changed Original file line number Diff line number Diff line change 1
1
QGTOP=../../../
2
2
3
- LDADD = .libs/libqgisgrass.a $(PLUGIN_LIBS) $(GRASS_LIB)
4
-
5
3
OBJECTS = grassprovider_la-provider.o
6
4
5
+ GRASS_DLL = .libs/qgis_grass.dll
6
+
7
7
PROVIDER = .libs/grassprovider.dll
8
8
9
- all: objects $(PROVIDER)
9
+ all: objects $(GRASS_DLL) $( PROVIDER)
10
10
11
11
objects:
12
12
$(MAKE) -f Makefile
13
13
14
+ $(GRASS_DLL):
15
+ $(CXX) -shared -o $(GRASS_DLL) \
16
+ -Wl,--out-implib=.libs/libqgis_grass.dll.a \
17
+ -Wl,--export-all-symbols \
18
+ -Wl,--enable-auto-import \
19
+ -Wl,--whole-archive .libs/libqgisgrass.a \
20
+ -Wl,--no-whole-archive \
21
+ $(CORE_A) $(GUI_A) $(CORE_A) \
22
+ $(GRASS_LIB) \
23
+ $(QT_LDADD) \
24
+ -lwsock32 -lmingw32
25
+ $(STRIP) $@
26
+
14
27
$(PROVIDER): $(OBJECTS)
15
- $(CXX) -shared -o $@ $(OBJECTS) $(LDADD)
28
+ $(CXX) -shared -o $@ \
29
+ -Wl,--export-all-symbols \
30
+ -Wl,--enable-auto-import \
31
+ -Wl,--whole-archive grassprovider_la-provider.o \
32
+ -Wl,--no-whole-archive \
33
+ .libs/libqgisgrass.a \
34
+ $(CORE_A) $(GUI_A) $(CORE_A) \
35
+ $(GRASS_LIB) \
36
+ $(QT_LDADD) \
37
+ -lwsock32 -lmingw32
16
38
$(STRIP) $@
17
39
18
40
install: all
41
+ $(INSTALL) -m 755 $(GRASS_DLL) $(prefix)/bin/qgis_grass.dll
19
42
$(INSTALL) -m 755 $(PROVIDER) $(prefix)/lib/qgis/grassprovider.dll
20
43
21
44
include ../../../Makefile.win.rules
You can’t perform that action at this time.
0 commit comments