/
src.pro
116 lines (95 loc) · 2.58 KB
/
src.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
103
104
105
106
107
108
109
110
111
112
113
114
115
116
CONFIG += ordered
DEFINES += M_BUILD_MLOCALE
include(common_top.pri)
QT += xml
QT -= gui
TARGET = mlocale5
INCLUDEPATH += .
RESOURCES += i18n.qrc
PUBLIC_HEADERS += \
mbreakiterator.h \
mlocale.h \
mlocalebuckets.h \
mlocaleexport.h \
mcountry.h \
mcity.h \
mlocationdatabase.h \
mlocaleabstractconfigitem.h \
mlocaleabstractconfigitemfactory.h \
mlocalenullconfigitem.h \
mlocalenullconfigitemfactory.h \
PRIVATE_HEADERS += \
mcalendar_p.h \
debug.h \
SOURCES += \
mbreakiterator.cpp \
mlocale.cpp \
mlocalebuckets.cpp \
mcountry.cpp \
mcity.cpp \
mlocationdatabase.cpp \
\
mlocaleabstractconfigitem.cpp \
mlocalenullconfigitem.cpp \
mlocalenullconfigitemfactory.cpp \
debug.cpp \
contains(DEFINES, HAVE_ICU) {
PUBLIC_HEADERS += \
mcalendar.h \
mcollator.h \
mcharsetdetector.h \
mcharsetmatch.h \
mstringsearch.h \
PRIVATE_HEADERS += \
micubreakiterator.h \
micuconversions.h
SOURCES += \
mcalendar.cpp \
mcollator.cpp \
micubreakiterator.cpp \
micuconversions.cpp \
mcharsetdetector.cpp \
mcharsetmatch.cpp \
mstringsearch.cpp \
} else {
PRIVATE_HEADERS += \
mnullbreakiterator.h \
SOURCES += \
mnullbreakiterator.cpp
}
contains(DEFINES, HAVE_QMSYSTEM2) {
CONFIG+=qmsystem2
QMAKE_CXXFLAGS -= -pedantic
}
HEADERS += \
$$PUBLIC_HEADERS \
$$PRIVATE_HEADERS
install_headers.path = $$ML_INSTALL_HEADERS
install_headers.files = $$PUBLIC_HEADERS
INSTALLS += target \
install_headers
###
# install MeeGo Touch feature files
install_prf.path = $$[QT_INSTALL_DATA]/mkspecs/features
install_prf.files = \
$${M_SOURCE_TREE}/mkspecs/features/mlocale.prf \
$${M_SOURCE_TREE}/mkspecs/features/mlocale_common.prf \
$${M_SOURCE_TREE}/mkspecs/features/mlocale_coverage.prf \
$${M_SOURCE_TREE}/mkspecs/features/mlocale_translations.prf \
$${M_BUILD_TREE}/mkspecs/features/mlocale_defines.prf \
INSTALLS += install_prf
# install pkgconfig file
install_pkgconfig.path = $$ML_INSTALL_LIBS/pkgconfig
install_pkgconfig.files = data/mlocale5.pc
INSTALLS += install_pkgconfig
# install forwarding headers
win32 {
# for windows we can live with the broken pattern matching
FORWARDING_HEADERS = include/M*
} else {
# match only the camel case forwarding headers here
FORWARDING_HEADERS = $$system( find include/M* )
}
forwarding_headers.path = $$ML_INSTALL_HEADERS
forwarding_headers.files = $$FORWARDING_HEADERS
INSTALLS += forwarding_headers