Skip to content

Commit 5068f3a

Browse files
author
gsherman
committed
Changes related to windows build
git-svn-id: http://svn.osgeo.org/qgis/trunk@5556 c8812cc2-4d05-0410-92ff-de0c093fc19c
1 parent ef5c131 commit 5068f3a

File tree

5 files changed

+32
-9
lines changed

5 files changed

+32
-9
lines changed

Makefile.win

+5-3
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,9 @@ install: all
1313
# Copy GRASS to QGIS
1414
cpgrass:
1515
mkdir -p -m 755 $(prefix)/grass/docs
16-
cp $(GRASS_BASE)/COPYING $(prefix)/grass
17-
cp $(GRASS_BASE)/AUTHORS $(prefix)/grass
18-
cp $(GRASS_BASE)/README $(prefix)/grass
16+
# cp $(GRASS_BASE)/COPYING $(prefix)/grass
17+
# cp $(GRASS_BASE)/AUTHORS $(prefix)/grass
18+
# cp $(GRASS_BASE)/README $(prefix)/grass
1919
cp -r $(GRASS_BASE)/etc $(prefix)/grass
2020
cp -r $(GRASS_BASE)/driver $(prefix)/grass
2121
cp -r $(GRASS_BASE)/bin $(prefix)/grass
@@ -54,6 +54,8 @@ pkg:
5454
@ echo "Creating binary package $(BINPKG)"
5555
mkdir -p -m 755 $(BINPKG)
5656
cp -r $(prefix)/* $(BINPKG)
57+
(cd $(BINPKG); rm -fr grass-6.1.cvs include)
58+
5759
zip -r $(BINPKG).zip $(BINPKG)
5860

5961

src/Makefile.win

+17-3
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,23 @@ STDSUBDIRS = core ui legend raster composer widgets helpviewer
77

88
WINSUBDIRS = core legend raster composer \
99
widgets/projectionselector gui \
10-
providers/ogr providers/grass providers/wms \
10+
providers/ogr \
11+
providers/grass \
12+
providers/wms \
1113
providers/postgres \
12-
plugins/grass
14+
providers/gpx \
15+
providers/delimitedtext \
16+
plugins/grass \
17+
plugins/north_arrow \
18+
plugins/copyright_label \
19+
plugins/geoprocessing \
20+
plugins/scale_bar \
21+
plugins/georeferencer \
22+
plugins/grid_maker \
23+
plugins/delimited_text
24+
plugins/gps_importer \
25+
plugins/spit
26+
1327

1428
all: stdsubdirs guilib winsubdirs
1529

@@ -19,7 +33,7 @@ guilib:
1933
install: all
2034
@list='$(WINSUBDIRS)'; \
2135
for subdir in $$list; do \
22-
echo $$subdir ; \
36+
echo !!!!!!!!!!!!!!!!!!!! $$subdir !!!!!!!!!!!!!!!!!!!!; \
2337
$(MAKE) -C $$subdir -f Makefile.win install || exit 1 ; \
2438
done
2539

src/plugins/grid_maker/Makefile.am

+4-1
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,11 @@ plugindir = ${pkglibdir}
1919
#for plugin so
2020
plugin_LTLIBRARIES = gridmakerplugin.la
2121

22-
#for standalon executable
22+
# For standalone executable
23+
# don't build on mingw since we haven't figured out the makefile issues
24+
if MINGW_FALSE
2325
bin_PROGRAMS = gridmaker
26+
endif
2427

2528
%.moc.cpp: %.h
2629
$(MOC) -o $@ $<

src/plugins/grid_maker/main.cpp

+3-1
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,15 @@
88
#include <qapplication.h>
99
#include <qtextcodec.h>
1010
#include <qtranslator.h>
11+
#include <QString>
1112

1213
int main(int argc, char *argv[])
1314
{
1415
QApplication a(argc, argv);
1516

1617
#if defined(Q_OS_MACX) || defined(WIN32)
17-
QString PKGDATAPATH = qApp->applicationDirPath() + "/share/qgis";
18+
// XXX Is the PKGDATAPATH setting below needed under Qt 4.x?
19+
// PKGDATAPATH = QString(qApp->applicationDirPath() + "/share/qgis");
1820
#endif
1921

2022
/* Load translationfile */

src/plugins/spit/Makefile.am

+3-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,9 @@
1313
plugindir = ${pkglibdir}
1414

1515
plugin_LTLIBRARIES = spitplugin.la
16+
if MINGW_FALSE
1617
bin_PROGRAMS = spit
18+
endif
1719

1820

1921
%.moc.cpp: %.h
@@ -76,7 +78,7 @@ BUILT_SOURCES = $(spit_MOC) $(spit_UI) $(spitplugin_la_MOC)
7678

7779
spitplugin_la_LIBADD = $(QT_LDADD) $(PG_LIB) $(GDAL_LDADD) ../../core/libqgis_core.la
7880
spitplugin_la_LDFLAGS = -avoid-version -module
79-
spitplugin_la_CXXFLAGS = $(CXXFLAGS) $(EXTRA_CXXFLAGS) $(GDAL_CFLAGS) $(QT_CXXFLAGS) $(PG_INC) $(GEOS_CFLAGS) -I../../gui -I../../ui -I../../core
81+
spitplugin_la_CXXFLAGS = $(CXXFLAGS) $(EXTRA_CXXFLAGS) $(GDAL_CFLAGS) $(QT_CXXFLAGS) $(PG_INC) -I../../gui -I../../ui -I../../core
8082

8183

8284
spit_LDADD = $(QT_LDADD) $(PG_LIB) $(GDAL_LDADD)

0 commit comments

Comments
 (0)