2019-12-31 18:56:34 +08:00
|
|
|
|
2020-02-20 22:45:48 +08:00
|
|
|
|
|
|
|
|
|
2020-05-27 19:39:59 +08:00
|
|
|
# Capture whether this is a release/debug build.
|
|
|
|
|
CONFIG(debug, debug|release) {
|
|
|
|
|
# Target name.
|
|
|
|
|
TARGET = internalsd
|
|
|
|
|
}
|
|
|
|
|
CONFIG(release, debug|release) {
|
|
|
|
|
# Target name.
|
|
|
|
|
TARGET = internals
|
|
|
|
|
}
|
|
|
|
|
TEMPLATE = lib
|
|
|
|
|
|
2020-02-20 22:45:48 +08:00
|
|
|
DEFINES += OPMAPINTERNALS_LIBRARY
|
|
|
|
|
DEFINES += QtOpmapInternals
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#VS的补丁 使用 自定义的数学常数
|
|
|
|
|
DEFINES += _USE_MATH_DEFINES
|
|
|
|
|
|
2019-12-31 18:56:34 +08:00
|
|
|
#目标生成路径
|
|
|
|
|
DESTDIR = $$PWD/../../thirdpart/lib
|
|
|
|
|
MOC_DIR = $$PWD/../../build
|
|
|
|
|
OBJECTS_DIR = $$PWD/../../build
|
|
|
|
|
|
|
|
|
|
QT += network
|
|
|
|
|
QT += sql
|
2020-12-25 14:03:50 +08:00
|
|
|
CONFIG += staticlib
|
2020-01-17 16:38:58 +08:00
|
|
|
|
2019-12-31 18:56:34 +08:00
|
|
|
HEADERS += core.h \
|
2020-02-20 22:45:48 +08:00
|
|
|
internalglobal.h \
|
|
|
|
|
mathdefine.h \
|
2019-12-31 18:56:34 +08:00
|
|
|
mousewheelzoomtype.h \
|
|
|
|
|
rectangle.h \
|
|
|
|
|
tile.h \
|
|
|
|
|
tilematrix.h \
|
|
|
|
|
loadtask.h \
|
|
|
|
|
copyrightstrings.h \
|
|
|
|
|
pureprojection.h \
|
|
|
|
|
pointlatlng.h \
|
|
|
|
|
rectlatlng.h \
|
|
|
|
|
sizelatlng.h \
|
|
|
|
|
debugheader.h
|
|
|
|
|
SOURCES += core.cpp \
|
|
|
|
|
rectangle.cpp \
|
|
|
|
|
tile.cpp \
|
|
|
|
|
tilematrix.cpp \
|
|
|
|
|
pureprojection.cpp \
|
|
|
|
|
rectlatlng.cpp \
|
|
|
|
|
sizelatlng.cpp \
|
|
|
|
|
pointlatlng.cpp \
|
|
|
|
|
loadtask.cpp \
|
|
|
|
|
mousewheelzoomtype.cpp
|
|
|
|
|
HEADERS += ./projections/lks94projection.h \
|
|
|
|
|
./projections/mercatorprojection.h \
|
|
|
|
|
./projections/mercatorprojectionyandex.h \
|
|
|
|
|
./projections/platecarreeprojection.h \
|
|
|
|
|
./projections/platecarreeprojectionpergo.h
|
|
|
|
|
SOURCES += ./projections/lks94projection.cpp \
|
|
|
|
|
./projections/mercatorprojection.cpp \
|
|
|
|
|
./projections/mercatorprojectionyandex.cpp \
|
|
|
|
|
./projections/platecarreeprojection.cpp \
|
|
|
|
|
./projections/platecarreeprojectionpergo.cpp
|
|
|
|
|
|
|
|
|
|
INCLUDEPATH += $$PWD/../../thirdpart/include
|
2020-05-27 19:39:59 +08:00
|
|
|
|
|
|
|
|
# Capture whether this is a release/debug build.
|
|
|
|
|
CONFIG(debug, debug|release) {
|
|
|
|
|
LIBS += -L$$PWD/../../thirdpart/lib -lcored
|
|
|
|
|
}
|
|
|
|
|
CONFIG(release, debug|release) {
|
|
|
|
|
LIBS += -L$$PWD/../../thirdpart/lib -lcore
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
2019-12-31 18:56:34 +08:00
|
|
|
|
2020-02-22 19:59:28 +08:00
|
|
|
win32|win64 {
|
2019-12-31 18:56:34 +08:00
|
|
|
src_dir = $$PWD\\*.h
|
|
|
|
|
dst_dir = $$PWD\\..\\..\\thirdpart\\include\\
|
|
|
|
|
# dst_dir 最后的 \\ 是必须的,用来标示 xcopy 到一个文件夹,若不存在,创建之
|
|
|
|
|
|
|
|
|
|
# Replace slashes in paths with backslashes for Windows
|
|
|
|
|
src_dir ~= s,/,\\,g
|
|
|
|
|
dst_dir ~= s,/,\\,g
|
|
|
|
|
|
|
|
|
|
system(xcopy $$src_dir $$dst_dir /y /e)
|
|
|
|
|
}
|
|
|
|
|
|
2020-09-09 18:06:00 +08:00
|
|
|
unix {
|
|
|
|
|
src_dir = $$PWD/*.h
|
|
|
|
|
dst_dir = $$PWD/../../thirdpart/include/
|
2019-12-31 18:56:34 +08:00
|
|
|
|
2020-09-09 18:06:00 +08:00
|
|
|
!exists($$dst_dir): system(mkdir -p $$dst_dir)
|
|
|
|
|
|
|
|
|
|
system(cp $$src_dir $$dst_dir -arf )
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
src_prodir = $$PWD/projections/*.h
|
|
|
|
|
dst_prodir = $$PWD/../../thirdpart/include/projections/
|
|
|
|
|
|
|
|
|
|
!exists($$dst_prodir): system(mkdir -p $$dst_prodir)
|
|
|
|
|
|
|
|
|
|
system(cp $$src_prodir $$dst_prodir -arf )
|
|
|
|
|
|
|
|
|
|
}
|
2019-12-31 18:56:34 +08:00
|
|
|
|