@@ -281,51 +281,51 @@ endif
281
281
################################################################################
282
282
283
283
ifeq ($(USE_EXTERNAL_HARFBUZZ), true)
284
- LIBFONTMANAGER_EXTRA_SRC =
285
- LIBFONTMANAGER_LIBS += $(HARFBUZZ_LIBS)
286
- LIBFONTMANAGER_CFLAGS += $(HARFBUZZ_CFLAGS)
284
+ LIBFONTMANAGER_EXTRA_SRC =
285
+ LIBFONTMANAGER_LIBS += $(HARFBUZZ_LIBS)
286
+ LIBFONTMANAGER_CFLAGS += $(HARFBUZZ_CFLAGS)
287
287
else
288
- LIBFONTMANAGER_EXTRA_SRC = libharfbuzz
288
+ LIBFONTMANAGER_EXTRA_SRC = libharfbuzz
289
289
290
- ifeq ($(call isTargetOs, windows), false)
291
- HARFBUZZ_CFLAGS += -DGETPAGESIZE -DHAVE_MPROTECT -DHAVE_PTHREAD \
290
+ ifeq ($(call isTargetOs, windows), false)
291
+ HARFBUZZ_CFLAGS += -DGETPAGESIZE -DHAVE_MPROTECT -DHAVE_PTHREAD \
292
292
-DHAVE_SYSCONF -DHAVE_SYS_MMAN_H -DHAVE_UNISTD_H \
293
293
-DHB_NO_PRAGMA_GCC_DIAGNOSTIC
294
- endif
295
- ifeq ($(call isTargetOs, linux macosx), true)
296
- HARFBUZZ_CFLAGS += -DHAVE_INTEL_ATOMIC_PRIMITIVES -DHB_NO_VISIBILITY
297
- endif
298
-
299
- # hb-ft.cc is not presently needed, and requires freetype 2.4.2 or later.
300
- # hb-subset and hb-style APIs are not needed, excluded to cut on compilation
301
- # time.
302
- LIBFONTMANAGER_EXCLUDE_FILES += gsubgpos-context.cc hb-ft.cc hb-style.cc \
294
+ endif
295
+ ifeq ($(call isTargetOs, linux macosx), true)
296
+ HARFBUZZ_CFLAGS += -DHAVE_INTEL_ATOMIC_PRIMITIVES -DHB_NO_VISIBILITY
297
+ endif
298
+
299
+ # hb-ft.cc is not presently needed, and requires freetype 2.4.2 or later.
300
+ # hb-subset and hb-style APIs are not needed, excluded to cut on compilation
301
+ # time.
302
+ LIBFONTMANAGER_EXCLUDE_FILES += gsubgpos-context.cc hb-ft.cc hb-style.cc \
303
303
hb-subset-cff-common.cc hb-subset-cff1.cc hb-subset-cff2.cc \
304
304
hb-subset-input.cc hb-subset-instancer-solver.cc hb-subset-plan.cc \
305
305
hb-subset.cc
306
306
307
- # list of disabled warnings and the compilers for which it was specifically
308
- # added.
309
- # array-bounds -> GCC 12 on Alpine Linux
310
- # parentheses -> GCC 6
311
- # range-loop-analysis -> clang on Xcode12
307
+ # list of disabled warnings and the compilers for which it was specifically
308
+ # added.
309
+ # array-bounds -> GCC 12 on Alpine Linux
310
+ # parentheses -> GCC 6
311
+ # range-loop-analysis -> clang on Xcode12
312
312
313
- HARFBUZZ_DISABLED_WARNINGS_gcc := missing-field-initializers \
314
- strict-aliasing unused-result array-bounds parentheses \
313
+ HARFBUZZ_DISABLED_WARNINGS_gcc := missing-field-initializers \
314
+ strict-aliasing unused-result array-bounds parentheses \
315
315
unused-variable
316
- # noexcept-type required for GCC 7 builds. Not required for GCC 8+.
317
- # expansion-to-defined required for GCC 9 builds. Not required for GCC 10+.
318
- # maybe-uninitialized required for GCC 8 builds. Not required for GCC 9+.
319
- # calloc-transposed-args required for GCC 14 builds. (fixed upstream in
320
- # Harfbuzz 032c931e1c0cfb20f18e5acb8ba005775242bd92)
321
- HARFBUZZ_DISABLED_WARNINGS_CXX_gcc := class-memaccess noexcept-type \
322
- expansion-to-defined dangling-reference maybe-uninitialized \
323
- calloc-transposed-args
324
- HARFBUZZ_DISABLED_WARNINGS_clang := missing-field-initializers \
316
+ # noexcept-type required for GCC 7 builds. Not required for GCC 8+.
317
+ # expansion-to-defined required for GCC 9 builds. Not required for GCC 10+.
318
+ # maybe-uninitialized required for GCC 8 builds. Not required for GCC 9+.
319
+ # calloc-transposed-args required for GCC 14 builds. (fixed upstream in
320
+ # Harfbuzz 032c931e1c0cfb20f18e5acb8ba005775242bd92)
321
+ HARFBUZZ_DISABLED_WARNINGS_CXX_gcc := class-memaccess noexcept-type \
322
+ expansion-to-defined dangling-reference maybe-uninitialized \
323
+ calloc-transposed-args
324
+ HARFBUZZ_DISABLED_WARNINGS_clang := missing-field-initializers \
325
325
range-loop-analysis
326
- HARFBUZZ_DISABLED_WARNINGS_microsoft := 4267 4244
326
+ HARFBUZZ_DISABLED_WARNINGS_microsoft := 4267 4244
327
327
328
- LIBFONTMANAGER_CFLAGS += $(HARFBUZZ_CFLAGS)
328
+ LIBFONTMANAGER_CFLAGS += $(HARFBUZZ_CFLAGS)
329
329
endif
330
330
331
331
LIBFONTMANAGER_EXTRA_HEADER_DIRS := \
1 commit comments
openjdk-notifier[bot] commentedon Aug 30, 2024
Review
Issues