1 # Copyright 2014 The Chromium Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file.
7 config("fontconfig_config") {
8 include_dirs = [ "src" ]
11 component("fontconfig") {
18 "src/src/fccharset.c",
21 "src/src/fcdefault.c",
24 "src/src/fcfreetype.c",
35 "src/src/fcserialize.c",
50 "FC_CACHEDIR=\"/var/cache/fontconfig\"",
51 "FONTCONFIG_PATH=\"/etc/fonts\"",
56 "//third_party/libxml",
59 configs -= [ "//build/config/compiler:chromium_code" ]
61 "//build/config/compiler:no_chromium_code",
62 "//build/config/linux:freetype2",
65 public_configs = [ ":fontconfig_config" ]
68 # Work around a null-conversion warning. See crbug.com/358852.
69 cflags = [ "-Wno-non-literal-null-conversion" ]