Bug 1760604 - fix bogus domain to be example.com which is part of our test PAC rules...
[gecko.git] / gfx / harfbuzz / src / moz.build
blob42143161bb71898ea3e80b541f7f78ddea07227e
1 # -*- Mode: python; indent-tabs-mode: nil; tab-width: 40 -*-
2 # vim: set filetype=python:
3 # This Source Code Form is subject to the terms of the Mozilla Public
4 # License, v. 2.0. If a copy of the MPL was not distributed with this
5 # file, You can obtain one at http://mozilla.org/MPL/2.0/.
7 FILES_PER_UNIFIED_FILE = 100
9 EXPORTS.harfbuzz += [
10     'hb-aat-layout.h',
11     'hb-aat.h',
12     'hb-blob.h',
13     'hb-buffer.h',
14     'hb-common.h',
15     'hb-deprecated.h',
16     'hb-draw.h',
17     'hb-face.h',
18     'hb-font.h',
19     'hb-map.h',
20     'hb-ot-color.h',
21     'hb-ot-deprecated.h',
22     'hb-ot-font.h',
23     'hb-ot-layout.h',
24     'hb-ot-math.h',
25     'hb-ot-meta.h',
26     'hb-ot-metrics.h',
27     'hb-ot-name.h',
28     'hb-ot-shape.h',
29     'hb-ot-var.h',
30     'hb-ot.h',
31     'hb-set.h',
32     'hb-shape-plan.h',
33     'hb-shape.h',
34     'hb-style.h',
35     'hb-unicode.h',
36     'hb-version.h',
37     'hb.h',
40 UNIFIED_SOURCES += [
41     'hb-aat-layout.cc',
42     'hb-aat-map.cc',
43     'hb-blob.cc',
44     'hb-buffer-serialize.cc',
45     'hb-buffer-verify.cc',
46     'hb-buffer.cc',
47     'hb-common.cc',
48     'hb-draw.cc',
49     'hb-face.cc',
50     'hb-font.cc',
51     'hb-number.cc',
52     'hb-ot-cff1-table.cc',
53     'hb-ot-cff2-table.cc',
54     'hb-ot-color.cc',
55     'hb-ot-face.cc',
56     'hb-ot-font.cc',
57     'hb-ot-layout.cc',
58     'hb-ot-map.cc',
59     'hb-ot-math.cc',
60     'hb-ot-meta.cc',
61     'hb-ot-metrics.cc',
62     'hb-ot-name.cc',
63     'hb-ot-shape-complex-arabic.cc',
64     'hb-ot-shape-complex-default.cc',
65     'hb-ot-shape-complex-hangul.cc',
66     'hb-ot-shape-complex-hebrew.cc',
67     'hb-ot-shape-complex-indic-table.cc',
68     'hb-ot-shape-complex-indic.cc',
69     'hb-ot-shape-complex-khmer.cc',
70     'hb-ot-shape-complex-myanmar.cc',
71     'hb-ot-shape-complex-syllabic.cc',
72     'hb-ot-shape-complex-thai.cc',
73     'hb-ot-shape-complex-use.cc',
74     'hb-ot-shape-complex-vowel-constraints.cc',
75     'hb-ot-shape-fallback.cc',
76     'hb-ot-shape-normalize.cc',
77     'hb-ot-shape.cc',
78     'hb-ot-tag.cc',
79     'hb-ot-var.cc',
80     'hb-set.cc',
81     'hb-shape-plan.cc',
82     'hb-shape.cc',
83     'hb-shaper.cc',
84     'hb-static.cc',
85     'hb-style.cc',
86     'hb-subset-cff-common.cc',
87     'hb-subset-cff1.cc',
88     'hb-subset-cff2.cc',
89     'hb-unicode.cc',
92 if CONFIG['MOZ_WIDGET_TOOLKIT'] == 'gtk':
93     EXPORTS.harfbuzz += [
94         'hb-glib.h',
95     ]
96     UNIFIED_SOURCES += [
97         'hb-glib.cc',
98     ]
99     CXXFLAGS += CONFIG['GLIB_CFLAGS']
101 # We allow warnings for third-party code that can be updated from upstream.
102 AllowCompilerWarnings()
104 if CONFIG['CC_TYPE'] == 'clang-cl':
105     CXXFLAGS += ['-Wno-unused-variable']
107 FINAL_LIBRARY = 'gkmedias'
109 DEFINES['PACKAGE_VERSION'] = '"moz"'
110 DEFINES['PACKAGE_BUGREPORT'] = '"http://bugzilla.mozilla.org/"'
111 DEFINES['HAVE_OT'] = 1
112 DEFINES['HAVE_ROUND'] = 1
113 DEFINES['HB_NO_FALLBACK_SHAPE'] = True
114 DEFINES['HB_NO_MT'] = True
115 DEFINES['HB_NO_UCD'] = True
116 DEFINES['HB_NO_UNICODE_FUNCS'] = True
117 # Cancel the effect of the -DDEBUG macro if present,
118 # because harfbuzz uses that name for its own purposes
119 DEFINES['DEBUG'] = False
121 # On Android, we want to use harfbuzz's mmap support for file access,
122 # so we need to set the appropriate configuration flags as we're not
123 # running harfbuzz's own configure script.
124 if CONFIG['MOZ_WIDGET_TOOLKIT'] == 'android':
125     DEFINES['HAVE_MMAP'] = 1
126     DEFINES['HAVE_SYS_MMAN_H'] = 1
128 if CONFIG['MOZ_WIDGET_TOOLKIT'] == 'windows':
129     DEFINES['UNICODE'] = True