File tree Expand file tree Collapse file tree 1 file changed +23
-3
lines changed Expand file tree Collapse file tree 1 file changed +23
-3
lines changed Original file line number Diff line number Diff line change 1
1
QGTOP=../../
2
2
3
- LDADD = $(QGIS_LIBS)
3
+ #LDADD = $(QGIS_LIBS)
4
+ LDADD = $(GUI_DLL) $(RASTER_DLL) $(LEGEND_DLL) $(COMPOSER_A) \
5
+ $(PROJSEL_DLL) \
6
+ $(GDAL_LDADD) $(PG_LIB) $(GEOS_LDADD) -lproj -lsqlite3 \
7
+ $(QT_LDADD) -lwsock32
8
+
9
+ DLL=qgis_gui.dll
4
10
5
11
OBJECTS = qgis-main.o
6
12
7
- all: libs objects qgis.exe
13
+ all: libs $(DLL) objects qgis.exe
8
14
9
15
objects:
10
16
$(MAKE) -f Makefile qgis-main.o
11
17
12
18
libs:
13
19
$(MAKE) -f Makefile libqgis_gui.la
20
+
21
+ $(DLL):
22
+ $(CXX) -shared -o $(DLL) \
23
+ -Wl,--out-implib=lib$(DLL).a \
24
+ -Wl,--export-all-symbols \
25
+ -Wl,--enable-auto-import \
26
+ -Wl,--whole-archive .libs/libqgis_gui.a \
27
+ -Wl,--no-whole-archive \
28
+ $(CORE_A) $(COMPOSER_A) $(LEGEND_A) $(RASTER_A) \
29
+ $(GUI_A) $(PROJSEL_A) \
30
+ -lsqlite3 -lgeos -lproj -lgdal \
31
+ $(QT_LDADD) \
32
+ -lwsock32 -lmingw32
14
33
15
34
qgis.exe:
16
35
$(CXX) -o $@ $(OBJECTS) $(LDADD)
17
36
$(STRIP) $@
18
37
19
38
install: all
20
39
$(INSTALL) -m 755 qgis.exe $(prefix)/bin/qgis.exe
40
+ $(INSTALL) -m 755 $(DLL) $(prefix)/bin/$(DLL)
21
41
22
- include ../.. /Makefile.win.rules
42
+ include $(QGTOP) /Makefile.win.rules
You can’t perform that action at this time.
0 commit comments