blob: c25a1261b8d1ec246572a0a71ee2b3051ef6bc57 (
plain)
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
|
#####################################################################
# DirectUI project file
#####################################################################
CONFIG += ordered
TEMPLATE = subdirs
!win32:!macx {
!exists($${OUT_PWD}/mkspecs/duiconfig.pri) {
error("Please run ./configure before proceeding")
}
}
include(mkspecs/common.pri)
isEqual( IN_PWD, $${OUT_PWD} ) {
IS_OUT_OF_SOURCE = 0
} else {
IS_OUT_OF_SOURCE = 1
}
isEmpty(DUI_BUILD_PARTS) { #defaults
DUI_BUILD_PARTS = libs demos
} else { #make sure the build order makes sense
contains(DUI_BUILD_PARTS, libs) {
DUI_BUILD_PARTS -= libs
DUI_BUILD_PARTS = libs $$DUI_BUILD_PARTS
}
}
#process the projects
for(PROJECT, $$list($$lower($$unique(DUI_BUILD_PARTS)))) {
isEqual(PROJECT, libs) {
SUBDIRS += \
duimoc \
duigen \
src \
src/translations \
contains(DEFINES, HAVE_DBUS) {
SUBDIRS += \
duiappletrunner \
duiservicemapper \
duithemedaemon \
tools
}
} else:isEqual(PROJECT, plainqt) {
SUBDIRS += plainqt
} else:isEqual(PROJECT, tests) {
SUBDIRS += tests
macx:SUBDIRS -= tests
win32:SUBDIRS -= tests
} else:isEqual(PROJECT, benchmarks) {
SUBDIRS += benchmarks
macx:SUBDIRS -= benchmarks
win32:SUBDIRS -= benchmarks
} else:isEqual(PROJECT, demos) {
SUBDIRS += demos
} else {
message(Unknown PROJECT: $$PROJECT)
}
# Docs are always explicitly built with "make doc"
include(doc/doc.pri)
}
# note: proper way to clean up extradata would be running pkgdata --clean...
# but listing *.a & *.o is easier with qmake
QMAKE_CLEAN += lib/libdui* build-stamp configure-stamp tests/*/*.log.xml tests/*/*.log *.log.xml *.log **/*.gcda extradata/*.o extradata/*.a
QMAKE_DISTCLEAN += lib/libdui* build-stamp configure-stamp tests/*/*.log.xml tests/*/*.log *.log.xml *.log **/*.gcda extradata/*.o extradata/*.a
check.target = check
check.CONFIG = recursive
QMAKE_EXTRA_TARGETS += check
check-xml.target = check-xml
check-xml.CONFIG = recursive
QMAKE_EXTRA_TARGETS += check-xml
|