Chromium Code Reviews| OLD | NEW |
|---|---|
| 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 Loading... | |
| 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 Loading... | |
| 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 } |
| OLD | NEW |