2017-03-29 18:18:49 +08:00
|
|
|
ADS_OUT_ROOT = $${OUT_PWD}/..
|
2019-01-17 00:49:59 +08:00
|
|
|
CONFIG += c++11
|
2018-12-11 22:19:59 +08:00
|
|
|
TARGET = $$qtLibraryTarget(qtadvanceddocking)
|
2019-01-17 00:49:59 +08:00
|
|
|
DEFINES += QT_DEPRECATED_WARNINGS
|
|
|
|
CONFIG(debug, debug|release) {
|
|
|
|
mac: TARGET = $$join(TARGET,,,_debug)
|
|
|
|
win32: TARGET = $$join(TARGET,,,d)
|
|
|
|
}
|
2017-03-13 04:41:50 +08:00
|
|
|
TEMPLATE = lib
|
2017-03-29 18:18:49 +08:00
|
|
|
DESTDIR = $${ADS_OUT_ROOT}/lib
|
|
|
|
QT += core gui widgets
|
2017-03-13 04:41:50 +08:00
|
|
|
|
2019-01-17 00:49:59 +08:00
|
|
|
!adsBuildStatic {
|
2017-03-13 04:41:50 +08:00
|
|
|
CONFIG += shared
|
2018-07-17 21:11:49 +08:00
|
|
|
DEFINES += ADS_SHARED_EXPORT
|
2017-03-13 04:41:50 +08:00
|
|
|
}
|
2019-01-17 00:49:59 +08:00
|
|
|
adsBuildStatic {
|
2017-03-13 04:41:50 +08:00
|
|
|
CONFIG += staticlib
|
2019-01-17 00:49:59 +08:00
|
|
|
DEFINES += ADS_STATIC
|
2017-03-13 04:41:50 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
windows {
|
|
|
|
# MinGW
|
|
|
|
*-g++* {
|
|
|
|
QMAKE_CXXFLAGS += -Wall -Wextra -pedantic
|
|
|
|
}
|
|
|
|
# MSVC
|
|
|
|
*-msvc* {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
RESOURCES += ads.qrc
|
|
|
|
|
|
|
|
HEADERS += \
|
|
|
|
ads_globals.h \
|
|
|
|
DockAreaWidget.h \
|
2018-08-24 19:41:58 +08:00
|
|
|
DockAreaTabBar.h \
|
2017-03-13 04:41:50 +08:00
|
|
|
DockContainerWidget.h \
|
|
|
|
DockManager.h \
|
|
|
|
DockWidget.h \
|
2018-08-24 19:41:58 +08:00
|
|
|
DockWidgetTab.h \
|
2017-03-13 04:41:50 +08:00
|
|
|
FloatingDockContainer.h \
|
2017-03-24 17:18:25 +08:00
|
|
|
DockOverlay.h \
|
2018-10-12 19:37:37 +08:00
|
|
|
DockSplitter.h \
|
2018-11-05 19:00:56 +08:00
|
|
|
DockAreaTitleBar.h \
|
|
|
|
ElidingLabel.h
|
2017-03-13 04:41:50 +08:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
SOURCES += \
|
|
|
|
ads_globals.cpp \
|
|
|
|
DockAreaWidget.cpp \
|
2018-08-24 19:41:58 +08:00
|
|
|
DockAreaTabBar.cpp \
|
2017-03-13 04:41:50 +08:00
|
|
|
DockContainerWidget.cpp \
|
|
|
|
DockManager.cpp \
|
|
|
|
DockWidget.cpp \
|
2018-08-24 19:41:58 +08:00
|
|
|
DockWidgetTab.cpp \
|
2017-03-13 04:41:50 +08:00
|
|
|
FloatingDockContainer.cpp \
|
2017-03-24 17:18:25 +08:00
|
|
|
DockOverlay.cpp \
|
2018-10-12 19:37:37 +08:00
|
|
|
DockSplitter.cpp \
|
2018-11-05 19:00:56 +08:00
|
|
|
DockAreaTitleBar.cpp \
|
|
|
|
ElidingLabel.cpp
|
2019-01-17 00:49:59 +08:00
|
|
|
|
|
|
|
isEmpty(PREFIX){
|
|
|
|
PREFIX=..\installed
|
|
|
|
warning("Install Prefix not set")
|
|
|
|
}
|
|
|
|
headers.path=$$PREFIX/include
|
|
|
|
headers.files=$$HEADERS
|
|
|
|
target.path=$$PREFIX/lib
|
|
|
|
INSTALLS += headers target
|