Files
gcs-nf/opmap/internals/internals.pro
T

105 lines
2.3 KiB
Prolog
Raw Normal View History

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.
2021-05-17 09:32:49 +08:00
TARGET = $$join(TARGET,,,d)
2020-05-27 19:39:59 +08:00
}
2021-05-17 09:32:49 +08:00
2020-05-27 19:39:59 +08:00
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
#目标生成路径
2021-05-15 17:36:33 +08:00
DESTDIR = $$PWD/../../bin
2019-12-31 18:56:34 +08:00
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
2021-05-15 17:36:33 +08:00
INCLUDEPATH += $$PWD/../../bin/include
2020-05-27 19:39:59 +08:00
# Capture whether this is a release/debug build.
CONFIG(debug, debug|release) {
2021-05-15 17:36:33 +08:00
LIBS += -L$$PWD/../../bin -lcored
2020-05-27 19:39:59 +08:00
}
CONFIG(release, debug|release) {
2021-05-15 17:36:33 +08:00
LIBS += -L$$PWD/../../bin -lcore
2020-05-27 19:39:59 +08:00
}
2019-12-31 18:56:34 +08:00
win32|win64 {
2019-12-31 18:56:34 +08:00
src_dir = $$PWD\\*.h
2021-05-15 17:36:33 +08:00
dst_dir = $$PWD\\..\\..\\bin\\include\\
2019-12-31 18:56:34 +08:00
# 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)
}
unix {
src_dir = $$PWD/*.h
2021-05-15 17:36:33 +08:00
dst_dir = $$PWD/../../bin/include/
2019-12-31 18:56:34 +08:00
!exists($$dst_dir): system(mkdir -p $$dst_dir)
system(cp $$src_dir $$dst_dir -arf )
src_prodir = $$PWD/projections/*.h
2021-05-15 17:36:33 +08:00
dst_prodir = $$PWD/../../bin/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