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

Side by Side 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 unified diff | Download patch
« no previous file with comments | « BUILD.gn ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
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.
4
5 config("fontconfig_config") {
6 include_dirs = [ "src" ]
7 }
8
9 component("fontconfig") {
10 sources = [
11 "src/src/fcarch.h",
12 "src/src/fcatomic.c",
13 "src/src/fcblanks.c",
14 "src/src/fccache.c",
15 "src/src/fccfg.c",
16 "src/src/fccharset.c",
17 "src/src/fccompat.c",
18 "src/src/fcdbg.c",
19 "src/src/fcdefault.c",
20 "src/src/fcdir.c",
21 "src/src/fcformat.c",
22 "src/src/fcfreetype.c",
23 "src/src/fcfs.c",
24 "src/src/fchash.c",
25 "src/src/fcinit.c",
26 "src/src/fclang.c",
27 "src/src/fclist.c",
28 "src/src/fcmatch.c",
29 "src/src/fcmatrix.c",
30 "src/src/fcname.c",
31 "src/src/fcobjs.c",
32 "src/src/fcpat.c",
33 "src/src/fcserialize.c",
34 "src/src/fcstat.c",
35 "src/src/fcstr.c",
36 "src/src/fcxml.c",
37 "src/src/ftglue.h",
38 "src/src/ftglue.c",
39 ]
40
41 include_dirs = [
42 "src",
tfarina 2014/05/25 23:51:23 you can remove this, as it is already in fontconfi
43 "include",
44 "include/src",
45 ]
46
47 defines = [
48 "HAVE_CONFIG_H",
49 "FC_CACHEDIR=\"/var/cache/fontconfig\"",
50 "FONTCONFIG_PATH=\"/etc/fonts\"",
51 ]
52
53 deps = [
54 "//third_party/zlib",
55 "//third_party/libxml",
56 ]
57
58 configs -= [ "//build/config/compiler:chromium_code" ]
59 configs += [ "//build/config/compiler:no_chromium_code" ]
60
61 direct_dependent_configs = [ ":fontconfig_config" ]
62
63 if (is_clang) {
64 # Work around a null-conversion warning. See crbug.com/358852.
65 cflags = [ "-Wno-non-literal-null-conversion" ]
66 }
67
68 if (is_linux) {
69 configs += [ "//build/config/linux:freetype2" ]
70 }
71 }
OLDNEW
« 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