Commit 8acc5f59 authored by rockot@chromium.org's avatar rockot@chromium.org

Add GN build file for fontconfig

R=brettw

Review URL: https://codereview.chromium.org/269313006

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@274064 0039d316-1c4b-4281-b951-d872f2087c98
parent 414c4611
...@@ -92,6 +92,7 @@ group("root") { ...@@ -92,6 +92,7 @@ group("root") {
if (is_linux) { if (is_linux) {
deps += [ deps += [
"//third_party/fontconfig",
"//third_party/freetype2", "//third_party/freetype2",
] ]
} }
......
# Copyright 2014 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
assert(is_linux)
config("fontconfig_config") {
include_dirs = [ "src" ]
}
component("fontconfig") {
sources = [
"src/src/fcarch.h",
"src/src/fcatomic.c",
"src/src/fcblanks.c",
"src/src/fccache.c",
"src/src/fccfg.c",
"src/src/fccharset.c",
"src/src/fccompat.c",
"src/src/fcdbg.c",
"src/src/fcdefault.c",
"src/src/fcdir.c",
"src/src/fcformat.c",
"src/src/fcfreetype.c",
"src/src/fcfs.c",
"src/src/fchash.c",
"src/src/fcinit.c",
"src/src/fclang.c",
"src/src/fclist.c",
"src/src/fcmatch.c",
"src/src/fcmatrix.c",
"src/src/fcname.c",
"src/src/fcobjs.c",
"src/src/fcpat.c",
"src/src/fcserialize.c",
"src/src/fcstat.c",
"src/src/fcstr.c",
"src/src/fcxml.c",
"src/src/ftglue.h",
"src/src/ftglue.c",
]
include_dirs = [
"include",
"include/src",
]
defines = [
"HAVE_CONFIG_H",
"FC_CACHEDIR=\"/var/cache/fontconfig\"",
"FONTCONFIG_PATH=\"/etc/fonts\"",
]
deps = [
"//third_party/zlib",
"//third_party/libxml",
]
configs -= [ "//build/config/compiler:chromium_code" ]
configs += [
"//build/config/compiler:no_chromium_code",
"//build/config/linux:freetype2",
]
direct_dependent_configs = [ ":fontconfig_config" ]
if (is_clang) {
# Work around a null-conversion warning. See crbug.com/358852.
cflags = [ "-Wno-non-literal-null-conversion" ]
}
}
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment