2018-10-29 00:11:23 +01:00
|
|
|
TARGET = pbf
|
|
|
|
TEMPLATE = lib
|
|
|
|
CONFIG += plugin
|
2018-11-11 14:10:38 +01:00
|
|
|
QT += gui
|
2018-10-29 00:11:23 +01:00
|
|
|
|
|
|
|
PROTOS = protobuf/vector_tile.proto
|
|
|
|
include(protobuf/vector_tile.pri)
|
|
|
|
|
|
|
|
INCLUDEPATH += ./protobuf
|
|
|
|
HEADERS += src/pbfhandler.h \
|
|
|
|
src/pbfplugin.h \
|
|
|
|
src/gzip.h \
|
|
|
|
src/pbf.h \
|
|
|
|
src/style.h \
|
|
|
|
src/color.h \
|
|
|
|
src/text.h \
|
|
|
|
src/tile.h \
|
|
|
|
src/function.h \
|
2018-10-29 18:30:55 +01:00
|
|
|
src/textpathitem.h \
|
2018-11-11 14:10:38 +01:00
|
|
|
src/textpointitem.h \
|
|
|
|
src/font.h \
|
2018-11-22 21:57:21 +01:00
|
|
|
src/textitem.h \
|
|
|
|
src/sprites.h
|
2018-10-29 00:11:23 +01:00
|
|
|
SOURCES += src/pbfplugin.cpp \
|
|
|
|
src/pbfhandler.cpp \
|
|
|
|
src/gzip.cpp \
|
|
|
|
src/pbf.cpp \
|
|
|
|
src/style.cpp \
|
|
|
|
src/color.cpp \
|
|
|
|
src/text.cpp \
|
|
|
|
src/function.cpp \
|
2018-10-29 18:30:55 +01:00
|
|
|
src/textpathitem.cpp \
|
2018-11-11 14:10:38 +01:00
|
|
|
src/textpointitem.cpp \
|
2018-11-22 21:57:21 +01:00
|
|
|
src/font.cpp \
|
|
|
|
src/sprites.cpp
|
2018-11-01 18:15:05 +01:00
|
|
|
RESOURCES += pbfplugin.qrc
|
2018-10-29 00:11:23 +01:00
|
|
|
|
2018-11-11 19:28:22 +01:00
|
|
|
unix:!macx{
|
2018-11-04 09:06:15 +01:00
|
|
|
LIBS += -lprotobuf-lite \
|
|
|
|
-lz
|
|
|
|
}
|
|
|
|
win32 {
|
|
|
|
INCLUDEPATH += $$PROTOBUF/include \
|
|
|
|
$$ZLIB/include
|
|
|
|
LIBS += $$PROTOBUF/lib/libprotobuf-lite.lib \
|
|
|
|
$$ZLIB/lib/zlibstatic.lib
|
|
|
|
}
|
2018-11-11 19:28:22 +01:00
|
|
|
macx {
|
|
|
|
INCLUDEPATH += $$PROTOBUF/include
|
|
|
|
LIBS += $$PROTOBUF/lib/libprotobuf-lite.a \
|
|
|
|
-lz
|
|
|
|
}
|
2018-10-29 00:11:23 +01:00
|
|
|
|
|
|
|
target.path += $$[QT_INSTALL_PLUGINS]/imageformats
|
|
|
|
INSTALLS += target
|