Skip to content

File tree

1 file changed

+27
-4
lines changed

1 file changed

+27
-4
lines changed
 

‎src/providers/grass/Makefile.win

Lines changed: 27 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,44 @@
11
QGTOP=../../../
22

3-
LDADD = .libs/libqgisgrass.a $(PLUGIN_LIBS) $(GRASS_LIB)
4-
53
OBJECTS = grassprovider_la-provider.o
64

5+
GRASS_DLL = .libs/qgis_grass.dll
6+
77
PROVIDER = .libs/grassprovider.dll
88

9-
all: objects $(PROVIDER)
9+
all: objects $(GRASS_DLL) $(PROVIDER)
1010

1111
objects:
1212
$(MAKE) -f Makefile
1313

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+
1427
$(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
1638
$(STRIP) $@
1739

1840
install: all
41+
$(INSTALL) -m 755 $(GRASS_DLL) $(prefix)/bin/qgis_grass.dll
1942
$(INSTALL) -m 755 $(PROVIDER) $(prefix)/lib/qgis/grassprovider.dll
2043

2144
include ../../../Makefile.win.rules

0 commit comments

Comments
 (0)
Please sign in to comment.