Skip to content

Commit

Permalink
Makefiles for building win32 version
Browse files Browse the repository at this point in the history
git-svn-id: http://svn.osgeo.org/qgis/trunk@5557 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
gsherman committed Jul 1, 2006
1 parent 5068f3a commit 1ed0915
Show file tree
Hide file tree
Showing 10 changed files with 275 additions and 0 deletions.
26 changes: 26 additions & 0 deletions src/plugins/copyright_label/Makefile.win
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
QGTOP=../../../

OBJECTS = $(wildcard *.o)

PLUGIN = .libs/copyrightlabelplugin.dll

all: objects $(PLUGIN)

objects:
$(MAKE) -f Makefile

$(PLUGIN): $(OBJECTS)
$(CXX) -shared -o $@ \
-Wl,--export-all-symbols \
-Wl,--enable-auto-import \
-Wl,--whole-archive $(OBJECTS) \
-Wl,--no-whole-archive \
$(PLUGIN_LIBS)
$(STRIP) $@

# ../../providers/grass/.libs/libqgisgrass.a \

install: all
$(INSTALL) -m 755 $(PLUGIN) $(prefix)/lib/qgis/copyrightlabelplugin.dll

include $(QGTOP)/Makefile.win.rules
28 changes: 28 additions & 0 deletions src/plugins/delimited_text/Makefile.win
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
QGTOP=../../../

LDADD = $(PLUGIN_LIBS)

OBJECTS = $(wildcard *.o)

PLUGIN = .libs/delimitedtextplugin.dll

all: objects $(PLUGIN)

objects:
$(MAKE) -f Makefile

$(PLUGIN): $(OBJECTS)
$(CXX) -shared -o $@ \
-Wl,--export-all-symbols \
-Wl,--enable-auto-import \
-Wl,--whole-archive $(OBJECTS) \
-Wl,--no-whole-archive \
$(PLUGIN_LIBS)
$(STRIP) $@

# ../../providers/grass/.libs/libqgisgrass.a \

install: all
$(INSTALL) -m 755 $(PLUGIN) $(prefix)/lib/qgis/delimitedtextplugin.dll

include $(QGTOP)/Makefile.win.rules
26 changes: 26 additions & 0 deletions src/plugins/geoprocessing/Makefile.win
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
QGTOP=../../../

OBJECTS = $(wildcard *.o)

PLUGIN = .libs/pggeoprocessing.dll

all: objects $(PLUGIN)

objects:
$(MAKE) -f Makefile

$(PLUGIN): $(OBJECTS)
$(CXX) -shared -o $@ \
-Wl,--export-all-symbols \
-Wl,--enable-auto-import \
-Wl,--whole-archive $(OBJECTS) \
-Wl,--no-whole-archive \
$(PLUGIN_LIBS)
$(STRIP) $@

# ../../providers/grass/.libs/libqgisgrass.a \

install: all
$(INSTALL) -m 755 $(PLUGIN) $(prefix)/lib/qgis/pggeoprocessing.dll

include $(QGTOP)/Makefile.win.rules
27 changes: 27 additions & 0 deletions src/plugins/georeferencer/Makefile.win
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
QGTOP=../../../

OBJECTS = $(wildcard *.o)

PLUGIN = .libs/georefplugin.dll

all: objects $(PLUGIN)

objects:
$(MAKE) -f Makefile

$(PLUGIN): $(OBJECTS)
$(CXX) -shared -o $@ \
-Wl,--export-all-symbols \
-Wl,--enable-auto-import \
-Wl,--whole-archive $(OBJECTS) \
-Wl,--no-whole-archive \
-L/home/user/win/i586-mingw32msvc/lib -lgsl -lgslcblas \
$(PLUGIN_LIBS)
$(STRIP) $@

# ../../providers/grass/.libs/libqgisgrass.a \

install: all
$(INSTALL) -m 755 $(PLUGIN) $(prefix)/lib/qgis/georefplugin.dll

include $(QGTOP)/Makefile.win.rules
26 changes: 26 additions & 0 deletions src/plugins/grid_maker/Makefile.win
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
QGTOP=../../../

OBJECTS = $(wildcard *.o)

PLUGIN = .libs/gridmakerplugin.dll

all: objects $(PLUGIN)

objects:
$(MAKE) -f Makefile

$(PLUGIN): $(OBJECTS)
$(CXX) -shared -o $@ \
-Wl,--export-all-symbols \
-Wl,--enable-auto-import \
-Wl,--whole-archive $(OBJECTS) \
-Wl,--no-whole-archive \
$(PLUGIN_LIBS)
$(STRIP) $@

# ../../providers/grass/.libs/libqgisgrass.a \

install: all
$(INSTALL) -m 755 $(PLUGIN) $(prefix)/lib/qgis/gridmakerplugin.dll

include $(QGTOP)/Makefile.win.rules
26 changes: 26 additions & 0 deletions src/plugins/north_arrow/Makefile.win
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
QGTOP=../../../

OBJECTS = $(wildcard *.o)

PLUGIN = .libs/northarrowplugin.dll

all: objects $(PLUGIN)

objects:
$(MAKE) -f Makefile

$(PLUGIN): $(OBJECTS)
$(CXX) -shared -o $@ \
-Wl,--export-all-symbols \
-Wl,--enable-auto-import \
-Wl,--whole-archive $(OBJECTS) \
-Wl,--no-whole-archive \
$(PLUGIN_LIBS)
$(STRIP) $@

# ../../providers/grass/.libs/libqgisgrass.a \

install: all
$(INSTALL) -m 755 $(PLUGIN) $(prefix)/lib/qgis/northarrowplugin.dll

include $(QGTOP)/Makefile.win.rules
26 changes: 26 additions & 0 deletions src/plugins/scale_bar/Makefile.win
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
QGTOP=../../../

OBJECTS = $(wildcard *.o)

PLUGIN = .libs/libScaleBarplugin.dll

all: objects $(PLUGIN)

objects:
$(MAKE) -f Makefile

$(PLUGIN): $(OBJECTS)
$(CXX) -shared -o $@ \
-Wl,--export-all-symbols \
-Wl,--enable-auto-import \
-Wl,--whole-archive $(OBJECTS) \
-Wl,--no-whole-archive \
$(PLUGIN_LIBS)
$(STRIP) $@

# ../../providers/grass/.libs/libqgisgrass.a \

install: all
$(INSTALL) -m 755 $(PLUGIN) $(prefix)/lib/qgis/libScaleBarplugin.dll

include $(QGTOP)/Makefile.win.rules
28 changes: 28 additions & 0 deletions src/plugins/spit/Makefile.win
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
QGTOP=../../../

OBJECTS = $(wildcard *.o)

PLUGIN = .libs/spitplugin.dll

all: objects $(PLUGIN)

objects:
$(MAKE) -f Makefile

$(PLUGIN): $(OBJECTS)
$(CXX) -shared -o $@ \
-Wl,--export-all-symbols \
-Wl,--enable-auto-import \
-Wl,--whole-archive $(OBJECTS) \
-Wl,--no-whole-archive \
-L ../../providers/postgres/.libs/ -lpostgresprovider -lpq \
-lwsock32 \
$(PLUGIN_LIBS)
$(STRIP) $@

# ../../providers/grass/.libs/libqgisgrass.a \

install: all
$(INSTALL) -m 755 $(PLUGIN) $(prefix)/lib/qgis/spitplugin.dll

include $(QGTOP)/Makefile.win.rules
32 changes: 32 additions & 0 deletions src/providers/delimitedtext/Makefile.win
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
QGTOP=../../../

LDADD = $(PLUGIN_LIBS)

OBJECTS = delimitedtextprovider_la-qgsdelimitedtextprovider.o

PROVIDER = .libs/delimitedtextprovider.dll

all: objects $(PROVIDER)

objects:
$(MAKE) -f Makefile

$(PROVIDER): $(OBJECTS)
$(CXX) -shared -o $@ \
-Wl,--export-all-symbols \
-Wl,--enable-auto-import \
-Wl,--whole-archive delimitedtextprovider_la-qgsdelimitedtextprovider.o \
-Wl,--no-whole-archive \
$(CORE_DLL) $(GUI_DLL) $(CORE_DLL) \
$(RASTER_DLL) $(PROJSEL_DLL) $(LEGEND_DLL) \
$(GUI_DLL) $(CORE_DLL) $(COMPOSER_DLL) $(GUI_DLL) \
-lgdal -lgeos -lsqlite3 -lproj $(PG_LIB) \
$(QT_LDADD) \
-lwsock32 -lmingw32
$(STRIP) $@

install: all
mkdir -p $(prefix)/lib/qgis/
$(INSTALL) -m 755 .libs/delimitedtextprovider.dll $(prefix)/lib/qgis/delimitedtextprovider.dll

include ../../../Makefile.win.rules
30 changes: 30 additions & 0 deletions src/providers/gpx/Makefile.win
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
QGTOP=../../../

LDADD = $(PLUGIN_LIBS)

PROVIDER = .libs/gpxprovider.dll

all: objects $(PROVIDER)

objects:
$(MAKE) -f Makefile

$(PROVIDER): .libs/gpxprovider.a
$(CXX) -shared -o $@ \
-Wl,--export-all-symbols \
-Wl,--enable-auto-import \
-Wl,--whole-archive .libs/gpxprovider.a \
-Wl,--no-whole-archive \
$(CORE_A) $(GUI_A) $(CORE_A) \
$(RASTER_A) $(PROJSEL_A) $(LEGEND_A) \
$(GUI_A) $(CORE_A) $(COMPOSER_A) $(GUI_A) \
-lgdal -lgeos -lsqlite3 -lproj -lexpat \
$(QT_LDADD) \
-lwsock32 -lmingw32
$(STRIP) $@

install: all
mkdir -p $(prefix)/lib/qgis/
$(INSTALL) -m 755 .libs/gpxprovider.dll $(prefix)/lib/qgis/gpxprovider.dll

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

0 comments on commit 1ed0915

Please sign in to comment.