-
Notifications
You must be signed in to change notification settings - Fork 0
/
mere-xdg-lib.pro
98 lines (86 loc) · 2.39 KB
/
mere-xdg-lib.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
QT = core
CONFIG += c++11
CONFIG += shared
TARGET = mere-xdg
VERSION= 0.0.1b
TEMPLATE = lib
DEFINES += LIB_CODE=\\\"xdg\\\"
DEFINES += LIB_NAME=\\\"$$TARGET\\\"
DEFINES += LIB_VERSION=\\\"$$VERSION\\\"
DEFINES += MERE_XDG_LIB
SOURCES += \
src/autostartdirectory.cpp \
src/autostartdirectorytraverser.cpp \
src/basedirectory.cpp \
src/baseentry.cpp \
src/config.cpp \
src/desktopentry.cpp \
src/desktopentryaction.cpp \
src/desktopentrycategory.cpp \
src/desktopentrydirectory.cpp \
src/desktopentrydirectorytraverser.cpp \
src/desktopentryparser.cpp \
src/environment.cpp \
src/icondirectorytraverser.cpp \
src/iconlookuphelper.cpp \
src/iconmemorycache.cpp \
src/iconpathfinder.cpp \
src/iconsoftlinkcache.cpp \
src/icontheme.cpp \
src/iconthemecache.cpp \
src/iconthemecontext.cpp \
src/iconthemedirectory.cpp \
src/iconthemedirectorytraverser.cpp \
src/iconthemeparser.cpp \
src/iconthemesubdirectory.cpp \
src/xsessiondirectory.cpp \
src/xsessiondirectorytraverser.cpp
HEADERS += \
src/autostartdirectory.h \
src/autostartdirectorytraverser.h \
src/basedirectory.h \
src/baseentry.h \
src/config.h \
src/desktopentry.h \
src/desktopentryaction.h \
src/desktopentrycategory.h \
src/desktopentrydirectory.h \
src/desktopentrydirectorytraverser.h \
src/desktopentryparser.h \
src/environment.h \
src/global.h \
src/icondirectorytraverser.h \
src/iconlookuphelper.h \
src/iconmemorycache.h \
src/iconpathfinder.h \
src/iconsoftlinkcache.h \
src/icontheme.h \
src/iconthemecache.h \
src/iconthemecontext.h \
src/iconthemedirectory.h \
src/iconthemedirectorytraverser.h \
src/iconthemeparser.h \
src/iconthemesubdirectory.h \
src/xsessiondirectory.h \
src/xsessiondirectorytraverser.h
DISTFILES += \
etc/xdg.conf
INCLUDEPATH += /usr/local/include
LIBS += -L/usr/local/lib
LIBS += -lmere-config-lite -lmere-utils
#
# Install
#
unix {
target.path = /usr/local/lib
INSTALLS += target
XDG_PATH = /usr/local/include/mere/xdg
for(header, HEADERS) {
sdir = $${dirname(header)}
sdir = $$replace(sdir, "src", "")
path = $${XDG_PATH}$${sdir}
eval(headers_$${path}.files += $$header)
eval(headers_$${path}.path = $$path)
eval(INSTALLS *= headers_$${path})
}
}