Changeset 20045 in osm for applications/editors/josm
- Timestamp:
- 2010-02-17T17:10:45+01:00 (15 years ago)
- Location:
- applications/editors/josm/plugins/wmsplugin
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/wmsplugin/Makefile
r16592 r20045 1 1 #!/usr/bin/make 2 2 3 MOC=moc 4 #MOC=/usr/share/qt4/bin/moc 5 CFLAGS = 6 LDFLAGS = 7 LDLIBS = `pkg-config --libs --cflags QtCore QtGui QtWebKit` 3 ifneq ($(windir),) 4 MINGWPATH = C:\\PROGRA~1\\mingw\\bin\\ 5 QTPATH = C:\\PROGRA~1\\qt\\ 6 7 CPP = ${MINGWPATH}c++.exe 8 MOC = ${QTPATH}bin\\moc.exe 9 RM = del 10 CFLAGS = -W -O2 -I${QTPATH}include 11 LDFLAGS = -L${QTPATH}lib 12 LDLIBS = -lQtCore4 -lQtWebKit4 -lQtGui4 -lQtNetwork4 13 else 14 MOC = moc 15 #MOC = /usr/share/qt4/bin/moc 16 CPP = gcc 17 18 PACKAGES = QtCore QtGui QtWebKit QtNetwork 19 CFLAGS = -W -O2 `pkg-config --cflags ${PACKAGES}` 20 LDFLAGS = `pkg-config --libs-only-L ${PACKAGES}` 21 LDLIBS = `pkg-config --libs-only-l ${PACKAGES}` 22 endif 8 23 9 24 webkit-image: webkit-image.cpp webkit-image.h 10 g++ -W -o $@ -O2$(CFLAGS) $(LDFLAGS) webkit-image.cpp $(LDLIBS)25 $(CPP) -o $@ $(CFLAGS) $(LDFLAGS) webkit-image.cpp $(LDLIBS) 11 26 12 27 webkit-image.h: webkit-image.cpp … … 14 29 15 30 clean: 16 rm -f*.o webkit-image webkit-image.h31 ${RM} *.o webkit-image webkit-image.h -
applications/editors/josm/plugins/wmsplugin/webkit-image.cpp
r19704 r20045 1 /* compile with2 moc webkit-image.cpp >webkit-image.h3 g++ webkit-image.cpp -o webkit-image -lQtCore -lQtWebKit -lQtGui -s -O24 or under Windows:5 g++ webkit-image.cpp -o webkit-image -lQtCore4 -lQtWebKit4 -lQtGui4 -s O26 adding the correct directories with -L or -I:7 -I C:\Progra~1\Qt\include -L C:\Progra~1\Qt\lib8 */9 1 #include <QtGui/QApplication> 10 2 #include <QtGui/QPainter> … … 17 9 #include <QtCore/QProcess> 18 10 #if QT_VERSION >= 0x040500 19 #include <Q DesktopServices>20 #include <Q NetworkDiskCache>11 #include <QtGui/QDesktopServices> 12 #include <QtNetwork/QNetworkDiskCache> 21 13 #endif 22 14
Note:
See TracChangeset
for help on using the changeset viewer.