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

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

Issue 2781313002: Adjust FreeType warning to avoid a Clang LLP64 build failure (Closed)
Patch Set: 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
« 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",
11 ] 11 ]
12 } 12 }
13 13
14 config("freetype-warnings") { 14 config("freetype-warnings") {
15 cflags = [] 15 cflags = []
16 16
17 if (is_clang) { 17 if (is_clang) {
18 # The reduction of FreeType files to a minimum triggers -Wunused-function 18 # The reduction of FreeType files to a minimum triggers -Wunused-function
19 # warnings in ftbase.c 19 # warnings in ftbase.c
20 cflags += [ "-Wno-unused-function" ] 20
21 # "-Wno-int-to-pointer-cast" tracked by
22 # https://savannah.nongnu.org/bugs/index.php?50560,
23 # TODO(drott): Remove this once we roll past 7aeee3c50f2656b65f.
24 cflags += [
25 "-Wno-unused-function",
26 "-Wno-int-to-pointer-cast",
27 ]
21 } 28 }
22 } 29 }
23 30
24 component("freetype") { 31 component("freetype") {
25 if (is_linux) { 32 if (is_linux) {
26 output_name = "freetype" 33 output_name = "freetype"
27 output_extension = "so.6" 34 output_extension = "so.6"
28 } 35 }
29 36
30 sources = [ 37 sources = [
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
83 configs -= [ "//build/config/compiler:chromium_code" ] 90 configs -= [ "//build/config/compiler:chromium_code" ]
84 configs += [ "//build/config/compiler:no_chromium_code" ] 91 configs += [ "//build/config/compiler:no_chromium_code" ]
85 92
86 configs += [ ":freetype-warnings" ] 93 configs += [ ":freetype-warnings" ]
87 94
88 deps = [ 95 deps = [
89 "//third_party/libpng", 96 "//third_party/libpng",
90 "//third_party/zlib", 97 "//third_party/zlib",
91 ] 98 ]
92 } 99 }
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