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

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

Issue 2149483002: Reduce chrome.exe .text size by 50 KB with static_library (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Tweaking comments Created 4 years, 5 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 | « third_party/brotli/BUILD.gn ('k') | ui/gfx/BUILD.gn » ('j') | 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 import("//build/config/arm.gni") 6 import("//build/config/arm.gni")
7 7
8 config("libpng_config") { 8 config("libpng_config") {
9 include_dirs = [ "." ] 9 include_dirs = [ "." ]
10 10
(...skipping 15 matching lines...) Expand all
26 if (is_clang) { 26 if (is_clang) {
27 cflags = [ 27 cflags = [
28 # libpng checks that the width is not greater than PNG_SIZE_MAX. 28 # libpng checks that the width is not greater than PNG_SIZE_MAX.
29 # On platforms where size_t is 64-bits, this comparison will always 29 # On platforms where size_t is 64-bits, this comparison will always
30 # be false. 30 # be false.
31 "-Wno-tautological-constant-out-of-range-compare", 31 "-Wno-tautological-constant-out-of-range-compare",
32 ] 32 ]
33 } 33 }
34 } 34 }
35 35
36 # Cannot be a static_library in component builds
Nico 2016/07/15 14:08:07 fwiw in gyp it's a component on windows and a stat
brucedawson 2016/07/15 18:08:54 Yep, and you can't pull a static_library with expo
36 source_set("libpng_sources") { 37 source_set("libpng_sources") {
37 sources = [ 38 sources = [
38 "png.c", 39 "png.c",
39 "png.h", 40 "png.h",
40 "pngconf.h", 41 "pngconf.h",
41 "pngerror.c", 42 "pngerror.c",
42 "pngget.c", 43 "pngget.c",
43 "pnginfo.h", 44 "pnginfo.h",
44 "pnglibconf.h", 45 "pnglibconf.h",
45 "pngmem.c", 46 "pngmem.c",
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
106 ":libpng_sources", 107 ":libpng_sources",
107 ] 108 ]
108 } 109 }
109 } else { 110 } else {
110 group("libpng") { 111 group("libpng") {
111 public_deps = [ 112 public_deps = [
112 ":libpng_sources", 113 ":libpng_sources",
113 ] 114 ]
114 } 115 }
115 } 116 }
OLDNEW
« no previous file with comments | « third_party/brotli/BUILD.gn ('k') | ui/gfx/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698