Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(3)

Unified Diff: third_party/fontconfig/BUILD.gn

Issue 269313006: Add GN build file for fontconfig (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « BUILD.gn ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/fontconfig/BUILD.gn
diff --git a/third_party/fontconfig/BUILD.gn b/third_party/fontconfig/BUILD.gn
new file mode 100644
index 0000000000000000000000000000000000000000..8dbd8002a2fb8eb7d527dfae1f391df6fdc40bc8
--- /dev/null
+++ b/third_party/fontconfig/BUILD.gn
@@ -0,0 +1,71 @@
+# 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.
+
+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 = [
+ "src",
tfarina 2014/05/25 23:51:23 you can remove this, as it is already in fontconfi
+ "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" ]
+
+ direct_dependent_configs = [ ":fontconfig_config" ]
+
+ if (is_clang) {
+ # Work around a null-conversion warning. See crbug.com/358852.
+ cflags = [ "-Wno-non-literal-null-conversion" ]
+ }
+
+ if (is_linux) {
+ configs += [ "//build/config/linux:freetype2" ]
+ }
+}
« no previous file with comments | « BUILD.gn ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698