2017-03-29 18:18:49 +08:00
|
|
|
ADS_OUT_ROOT = $${OUT_PWD}/..
|
2019-01-26 00:28:36 +08:00
|
|
|
CONFIG += c++14
|
2019-01-18 16:33:11 +08:00
|
|
|
CONFIG += debug_and_release
|
2018-12-11 22:19:59 +08:00
|
|
|
TARGET = $$qtLibraryTarget(qtadvanceddocking)
|
2019-01-17 00:49:59 +08:00
|
|
|
DEFINES += QT_DEPRECATED_WARNINGS
|
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 \
|
2019-11-29 22:56:57 +08:00
|
|
|
DockWidgetTab.h \
|
|
|
|
DockingStateReader.h \
|
2017-03-13 04:41:50 +08:00
|
|
|
FloatingDockContainer.h \
|
2019-12-16 18:18:22 +08:00
|
|
|
FloatingDragPreview.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 \
|
2019-10-18 14:31:26 +08:00
|
|
|
ElidingLabel.h \
|
|
|
|
IconProvider.h
|
2019-07-11 22:12:15 +08:00
|
|
|
|
|
|
|
|
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 \
|
2019-11-29 22:56:57 +08:00
|
|
|
DockingStateReader.cpp \
|
2018-08-24 19:41:58 +08:00
|
|
|
DockWidgetTab.cpp \
|
2017-03-13 04:41:50 +08:00
|
|
|
FloatingDockContainer.cpp \
|
2019-12-16 18:18:22 +08:00
|
|
|
FloatingDragPreview.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 \
|
2019-10-18 14:31:26 +08:00
|
|
|
ElidingLabel.cpp \
|
|
|
|
IconProvider.cpp
|
2019-07-11 22:12:15 +08:00
|
|
|
|
|
|
|
|
|
|
|
unix {
|
|
|
|
HEADERS += linux/FloatingWidgetTitleBar.h
|
|
|
|
SOURCES += linux/FloatingWidgetTitleBar.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
|
2019-01-17 01:52:53 +08:00
|
|
|
INSTALLS += headers target
|
2019-05-14 21:32:50 +08:00
|
|
|
|
|
|
|
DISTFILES +=
|