-
Notifications
You must be signed in to change notification settings - Fork 0
/
mere-widgets.pro
102 lines (91 loc) · 2.41 KB
/
mere-widgets.pro
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
include(../../mere-utils/mere-utils-lib/mere-utils-lib.pri)
#include(../../mere-log/mere-log-lib/mere-log-lib.pri)
#include(../../mere-config/mere-config-lib/mere-config-lib.pri)
QT += core gui network
greaterThan(QT_MAJOR_VERSION, 4): QT += widgets
CONFIG += c++11
CONFIG += shared
TARGET = mere-widgets
VERSION= 0.0.1b
TEMPLATE = lib
DEFINES += LIB_CODE=\\\"widgets\\\"
DEFINES += LIB_NAME=\\\"$$TARGET\\\"
DEFINES += LIB_VERSION=\\\"$$VERSION\\\"
DEFINES += QT_DEPRECATED_WARNINGS MERE_WIDGETS_LIB
SOURCES += \
src/app.cpp \
src/defaultapp.cpp \
src/defaultwin.cpp \
src/defaultwinheader.cpp \
src/editablelabel.cpp \
src/headerview.cpp \
src/merepushmenu.cpp \
src/mereballonwidget.cpp \
src/merelabel.cpp \
src/mereclickdetector.cpp \
src/mereshadowwidget.cpp \
src/noteeditor.cpp \
src/noteeditorpanel.cpp \
src/panelview.cpp \
src/resizeablewin.cpp \
src/resizer.cpp \
src/scratchboard.cpp \
src/scratcheditor.cpp \
src/scratcheditorpanel.cpp \
src/scratcheditorscroller.cpp \
src/simplewinheader.cpp \
src/simplewinheaderex.cpp \
src/statusbar.cpp \
src/texteditor.cpp \
src/win.cpp \
src/winheader.cpp
HEADERS += \
src/app.h \
src/defaultapp.h \
src/defaultwin.h \
src/defaultwinheader.h \
src/editablelabel.h \
src/global.h \
src/headerview.h \
src/merepushmenu.h \
src/mereballonwidget.h \
src/merelabel.h \
src/merepopupmenu.h \
src/mereclickdetector.h \
src/mereshadowwidget.h \
src/moveable.h \
src/noteeditor.h \
src/noteeditorpanel.h \
src/panelview.h \
src/resizeablewin.h \
src/resizer.h \
src/scratchboard.h \
src/scratcheditor.h \
src/scratcheditorpanel.h \
src/scratcheditorscroller.h \
src/simplewinheader.h \
src/simplewinheaderex.h \
src/statusbar.h \
src/texteditor.h \
src/win.h \
src/winheader.h
RESOURCES += \
res/widgets.qrc
INCLUDEPATH += /usr/local/include
LIBS += -lX11
#
# Install
#
unix {
target.path = /usr/local/lib
INSTALLS += target
INSTALL_PREFIX = /usr/local/include/mere/widgets
for(header, HEADERS) {
sdir = $${dirname(header)}
sdir = $$replace(sdir, "src", "")
path = $${INSTALL_PREFIX}$${sdir}
eval(headers_$${path}.files += $$header)
eval(headers_$${path}.path = $$path)
eval(INSTALLS *= headers_$${path})
}
}