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

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

Issue 2778153002: Add missing header files to GN files (Closed)
Patch Set: manual fix for CrOS Created 3 years, 8 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
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 10 matching lines...) Expand all
21 } 21 }
22 } 22 }
23 23
24 component("freetype") { 24 component("freetype") {
25 if (is_linux) { 25 if (is_linux) {
26 output_name = "freetype" 26 output_name = "freetype"
27 output_extension = "so.6" 27 output_extension = "so.6"
28 } 28 }
29 29
30 sources = [ 30 sources = [
31 "include/freetype-custom-config/ftmodule.h",
32 "include/freetype-custom-config/ftoption.h",
31 "src/src/autofit/autofit.c", 33 "src/src/autofit/autofit.c",
32 "src/src/base/ftbase.c", 34 "src/src/base/ftbase.c",
33 "src/src/base/ftbbox.c", 35 "src/src/base/ftbbox.c",
34 "src/src/base/ftbitmap.c", 36 "src/src/base/ftbitmap.c",
35 "src/src/base/ftfntfmt.c", 37 "src/src/base/ftfntfmt.c",
36 "src/src/base/ftfstype.c", 38 "src/src/base/ftfstype.c",
37 "src/src/base/ftgasp.c", 39 "src/src/base/ftgasp.c",
38 "src/src/base/ftglyph.c", 40 "src/src/base/ftglyph.c",
39 "src/src/base/ftinit.c", 41 "src/src/base/ftinit.c",
40 "src/src/base/ftlcdfil.c", 42 "src/src/base/ftlcdfil.c",
(...skipping 22 matching lines...) Expand all
63 # FT_GlyphSlot_Embolden, which we need to replace in content_shell if 65 # FT_GlyphSlot_Embolden, which we need to replace in content_shell if
64 # we are linking against our own FreeType. 66 # we are linking against our own FreeType.
65 sources += [ "src/src/base/ftsynth.c" ] 67 sources += [ "src/src/base/ftsynth.c" ]
66 } 68 }
67 69
68 defines = [ 70 defines = [
69 "FT2_BUILD_LIBRARY", 71 "FT2_BUILD_LIBRARY",
70 "DARWIN_NO_CARBON", 72 "DARWIN_NO_CARBON",
71 73
72 # Long directory name to avoid accidentally using wrong headers. 74 # Long directory name to avoid accidentally using wrong headers.
73 "FT_CONFIG_MODULES_H=<freetype-custom-config/ftmodule.h>", 75 "FT_CONFIG_MODULES_H=<freetype-custom-config/ftmodule.h>",
Nico 2017/03/28 14:47:49 Sneaky!
74 "FT_CONFIG_OPTIONS_H=<freetype-custom-config/ftoption.h>", 76 "FT_CONFIG_OPTIONS_H=<freetype-custom-config/ftoption.h>",
75 ] 77 ]
76 78
77 if (is_win && is_component_build) { 79 if (is_win && is_component_build) {
78 # Used for managing declspec(dllimport/export) visibility. 80 # Used for managing declspec(dllimport/export) visibility.
79 defines += [ "FT2_BUILD_DLL" ] 81 defines += [ "FT2_BUILD_DLL" ]
80 } 82 }
81 83
82 public_configs = [ ":freetype_config" ] 84 public_configs = [ ":freetype_config" ]
83 configs -= [ "//build/config/compiler:chromium_code" ] 85 configs -= [ "//build/config/compiler:chromium_code" ]
84 configs += [ "//build/config/compiler:no_chromium_code" ] 86 configs += [ "//build/config/compiler:no_chromium_code" ]
85 87
86 configs += [ ":freetype-warnings" ] 88 configs += [ ":freetype-warnings" ]
87 89
88 deps = [ 90 deps = [
89 "//third_party/libpng", 91 "//third_party/libpng",
90 "//third_party/zlib", 92 "//third_party/zlib",
91 ] 93 ]
92 } 94 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698