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

Side by Side Diff: third_party/freetype/BUILD.gn

Issue 2739853002: Fix FreeType component build on Fedora (Closed)
Patch Set: Created 3 years, 9 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 | « no previous file | 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
1 # Copyright 2014 The Chromium Authors. All rights reserved. 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 2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file. 3 # found in the LICENSE file.
4 4
5 import("//build/config/chromecast_build.gni") 5 import("//build/config/chromecast_build.gni")
6 6
7 config("freetype_config") { 7 config("freetype_config") {
8 include_dirs = [ 8 include_dirs = [
9 "include", 9 "include",
10 "src/include", 10 "src/include",
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
49 "src/src/gzip/ftgzip.c", 49 "src/src/gzip/ftgzip.c",
50 "src/src/pshinter/pshinter.c", 50 "src/src/pshinter/pshinter.c",
51 "src/src/psnames/psnames.c", 51 "src/src/psnames/psnames.c",
52 "src/src/raster/raster.c", 52 "src/src/raster/raster.c",
53 "src/src/sfnt/sfnt.c", 53 "src/src/sfnt/sfnt.c",
54 "src/src/smooth/smooth.c", 54 "src/src/smooth/smooth.c",
55 "src/src/truetype/truetype.c", 55 "src/src/truetype/truetype.c",
56 ] 56 ]
57 57
58 if (is_linux || is_chromecast) { 58 if (is_linux || is_chromecast) {
59 # Needed for content_shell on Linux and Chromecast, since fontconfig require s FT_Get_BDF_Property. 59 # Needed for content_shell on Linux and Chromecast, since fontconfig
60 # requires FT_Get_BDF_Property.
60 sources += [ "src/src/base/ftbdf.c" ] 61 sources += [ "src/src/base/ftbdf.c" ]
61 } 62 }
62 63
64 if (is_linux || is_chromecast) {
65 # Needed on Fedora whose libfreetype builds ftsynth.c containing
66 # FT_GlyphSlot_Embolden, which we need to replace in content_shell if
67 # we are linking against our own FreeType.
68 sources += [ "src/src/base/ftsynth.c" ]
69 }
70
63 defines = [ 71 defines = [
64 "FT2_BUILD_LIBRARY", 72 "FT2_BUILD_LIBRARY",
65 "DARWIN_NO_CARBON", 73 "DARWIN_NO_CARBON",
66 74
67 # Long directory name to avoid accidentally using wrong headers. 75 # Long directory name to avoid accidentally using wrong headers.
68 "FT_CONFIG_MODULES_H=<freetype-custom-config/ftmodule.h>", 76 "FT_CONFIG_MODULES_H=<freetype-custom-config/ftmodule.h>",
69 "FT_CONFIG_OPTIONS_H=<freetype-custom-config/ftoption.h>", 77 "FT_CONFIG_OPTIONS_H=<freetype-custom-config/ftoption.h>",
70 ] 78 ]
71 79
72 public_configs = [ ":freetype_config" ] 80 public_configs = [ ":freetype_config" ]
73 configs -= [ "//build/config/compiler:chromium_code" ] 81 configs -= [ "//build/config/compiler:chromium_code" ]
74 configs += [ 82 configs += [
75 "//build/config/compiler:no_chromium_code", 83 "//build/config/compiler:no_chromium_code",
76 ":freetype-warnings", 84 ":freetype-warnings",
77 ":freetype-visibility", 85 ":freetype-visibility",
78 ] 86 ]
79 87
80 deps = [ 88 deps = [
81 "//third_party/libpng", 89 "//third_party/libpng",
82 "//third_party/zlib", 90 "//third_party/zlib",
83 ] 91 ]
84 } 92 }
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698