summaryrefslogtreecommitdiffstats
path: root/src/3rdparty/harfbuzz-ng/harfbuzz-ng.pro
blob: 8b53f3e990ebe75cb2cbdaf23381b413243f0980 (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
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
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
TARGET = qtharfbuzz

CONFIG += \
    static \
    hide_symbols \
    exceptions_off rtti_off warn_off

MODULE_INCLUDEPATH += $$PWD/include/harfbuzz


# built-in shapers list configuration:
SHAPERS += opentype       # HB's main shaper; enabling it should be enough most of the time

# native shaper on Apple platforms; could be used alone to handle both OT and AAT fonts
darwin: SHAPERS += coretext

# fallback shaper: not really useful with opentype or coretext shaper
#SHAPERS += fallback

DEFINES += HAVE_CONFIG_H
DEFINES += HB_NO_UNICODE_FUNCS
DEFINES += HB_NDEBUG
DEFINES += HB_EXTERN=

# platform/compiler specific definitions
DEFINES += HAVE_ATEXIT
unix: DEFINES += HAVE_PTHREAD HAVE_SCHED_H HAVE_SCHED_YIELD
win32: DEFINES += HB_NO_WIN1256

# Harfbuzz-NG inside Qt uses the Qt atomics (inline code only)
INCLUDEPATH += $$QT.core.includes
DEFINES += QT_NO_VERSION_TAGGING

SOURCES += \
    $$PWD/src/hb-aat-layout.cc \
    $$PWD/src/hb-aat-map.cc \
    $$PWD/src/hb-blob.cc \
    $$PWD/src/hb-buffer.cc \
    $$PWD/src/hb-buffer-serialize.cc \
    $$PWD/src/hb-face.cc \
    $$PWD/src/hb-fallback-shape.cc \
    $$PWD/src/hb-font.cc \
    $$PWD/src/hb-map.cc \
    $$PWD/src/hb-number.cc \
    $$PWD/src/hb-set.cc \
    $$PWD/src/hb-shape.cc \
    $$PWD/src/hb-shape-plan.cc \
    $$PWD/src/hb-shaper.cc \
    $$PWD/src/hb-subset.cc \
    $$PWD/src/hb-subset-cff-common.cc \
    $$PWD/src/hb-subset-cff1.cc \
    $$PWD/src/hb-subset-cff2.cc \
    $$PWD/src/hb-subset-input.cc \
    $$PWD/src/hb-subset-plan.cc \
    $$PWD/src/hb-unicode.cc \
    $$PWD/hb-dummy.cc

OTHER_FILES += \
    $$PWD/src/harfbuzz.cc

HEADERS += \
    $$PWD/src/hb-atomic.hh \
    $$PWD/src/hb-algs.hh \
    $$PWD/src/hb-buffer.hh \
    $$PWD/src/hb-buffer-deserialize-json.hh \
    $$PWD/src/hb-buffer-deserialize-text.hh \
    $$PWD/src/hb-cache.hh \
    $$PWD/src/hb-debug.hh \
    $$PWD/src/hb-face.hh \
    $$PWD/src/hb-font.hh \
    $$PWD/src/hb-mutex.hh \
    $$PWD/src/hb-object.hh \
    $$PWD/src/hb-open-file.hh \
    $$PWD/src/hb-open-type.hh \
    $$PWD/src/hb-set-digest.hh \
    $$PWD/src/hb-set.hh \
    $$PWD/src/hb-shape-plan.hh \
    $$PWD/src/hb-shaper-impl.hh \
    $$PWD/src/hb-shaper-list.hh \
    $$PWD/src/hb-shaper.hh \
    $$PWD/src/hb-string-array.hh \
    $$PWD/src/hb-unicode.hh \
    $$PWD/src/hb-utf.hh

HEADERS += \
    $$PWD/src/hb.h \
    $$PWD/src/hb-blob.h \
    $$PWD/src/hb-buffer.h \
    $$PWD/src/hb-common.h \
    $$PWD/src/hb-deprecated.h \
    $$PWD/src/hb-face.h \
    $$PWD/src/hb-font.h \
    $$PWD/src/hb-set.h \
    $$PWD/src/hb-shape.h \
    $$PWD/src/hb-shape-plan.h \
    $$PWD/src/hb-unicode.h \
    $$PWD/src/hb-version.h

contains(SHAPERS, opentype) {
    DEFINES += HAVE_OT

    SOURCES += \
        $$PWD/src/hb-ot-cff1-table.cc \
        $$PWD/src/hb-ot-cff2-table.cc \
        $$PWD/src/hb-ot-color.cc \
        $$PWD/src/hb-ot-face.cc \
        $$PWD/src/hb-ot-font.cc \
        $$PWD/src/hb-ot-layout.cc \
        $$PWD/src/hb-ot-map.cc \
        $$PWD/src/hb-ot-math.cc \
        $$PWD/src/hb-ot-meta.cc \
        $$PWD/src/hb-ot-metrics.cc \
        $$PWD/src/hb-ot-name.cc \
        $$PWD/src/hb-ot-shape.cc \
        $$PWD/src/hb-ot-tag.cc \
        $$PWD/src/hb-ot-shape-complex-arabic.cc \
        $$PWD/src/hb-ot-shape-complex-default.cc \
        $$PWD/src/hb-ot-shape-complex-hangul.cc \
        $$PWD/src/hb-ot-shape-complex-hebrew.cc \
        $$PWD/src/hb-ot-shape-complex-indic.cc \
        $$PWD/src/hb-ot-shape-complex-indic-table.cc \
        $$PWD/src/hb-ot-shape-complex-khmer.cc \
        $$PWD/src/hb-ot-shape-complex-myanmar.cc \
        $$PWD/src/hb-ot-shape-complex-thai.cc \
        $$PWD/src/hb-ot-shape-complex-use.cc \
        $$PWD/src/hb-ot-shape-complex-use-table.cc \
        $$PWD/src/hb-ot-shape-complex-vowel-constraints.cc \
        $$PWD/src/hb-ot-shape-fallback.cc \
        $$PWD/src/hb-ot-shape-normalize.cc \
        $$PWD/src/hb-ot-var.cc

    HEADERS += \
        $$PWD/src/hb-ot-cmap-table.hh \
        $$PWD/src/hb-ot-color-cbdt-table.hh \
        $$PWD/src/hb-ot-glyf-table.hh \
        $$PWD/src/hb-ot-head-table.hh \
        $$PWD/src/hb-ot-hhea-table.hh \
        $$PWD/src/hb-ot-hmtx-table.hh \
        $$PWD/src/hb-ot-kern-table.hh \
        $$PWD/src/hb-ot-layout.hh \
        $$PWD/src/hb-ot-layout-gdef-table.hh \
        $$PWD/src/hb-ot-layout-gpos-table.hh \
        $$PWD/src/hb-ot-layout-gsub-table.hh \
        $$PWD/src/hb-ot-layout-jstf-table.hh \
        $$PWD/src/hb-ot-map.hh \
        $$PWD/src/hb-ot-math-table.hh \
        $$PWD/src/hb-ot-maxp-table.hh \
        $$PWD/src/hb-ot-name-table.hh \
        $$PWD/src/hb-ot-os2-table.hh \
        $$PWD/src/hb-ot-post-table.hh \
        $$PWD/src/hb-ot-post-macroman.hh \
        $$PWD/src/hb-ot-shape.hh \
        $$PWD/src/hb-ot-shape-complex-arabic.hh \
        $$PWD/src/hb-ot-shape-complex-arabic-fallback.hh \
        $$PWD/src/hb-ot-shape-complex-arabic-table.hh \
#        $$PWD/src/hb-ot-shape-complex-arabic-win1256.hh \ # disabled with HB_NO_WIN1256
        $$PWD/src/hb-ot-shape-complex-indic.hh \
        $$PWD/src/hb-ot-shape-complex-indic-machine.hh \
        $$PWD/src/hb-ot-shape-complex-myanmar-machine.hh \
        $$PWD/src/hb-ot-shape-complex-use.hh \
        $$PWD/src/hb-ot-shape-complex-use-machine.hh \
        $$PWD/src/hb-ot-shape-fallback.hh \
        $$PWD/src/hb-ot-shape-normalize.hh \
        $$PWD/src/hb-ot-var-avar-table.hh \
        $$PWD/src/hb-ot-var-fvar-table.hh \
        $$PWD/src/hb-ot-var-hvar-table.hh \
        $$PWD/src/hb-ot-var-mvar-table.hh

    HEADERS += \
        $$PWD/src/hb-ot.h \
        $$PWD/src/hb-ot-font.h \
        $$PWD/src/hb-ot-layout.h \
        $$PWD/src/hb-ot-math.h \
        $$PWD/src/hb-ot-shape.h \
        $$PWD/src/hb-ot-var.h
}

MODULE_EXT_HEADERS = $$HEADERS

contains(SHAPERS, fallback)|isEmpty(SHAPERS) {
    DEFINES += HAVE_FALLBACK

    SOURCES += \
        $$PWD/src/hb-fallback-shape.cc
}

load(qt_helper_lib)