| Index: third_party/libpng/BUILD.gn
|
| diff --git a/third_party/libpng/BUILD.gn b/third_party/libpng/BUILD.gn
|
| index 488ef4367f8264762257ce5bc8906cc48a2ecfac..74c00d8fd3a735242f26a3abdfa47a040ac61137 100644
|
| --- a/third_party/libpng/BUILD.gn
|
| +++ b/third_party/libpng/BUILD.gn
|
| @@ -50,14 +50,14 @@ source_set("libpng_sources") {
|
| ]
|
|
|
| configs -= [ "//build/config/compiler:chromium_code" ]
|
| - configs += [ "//build/config/compiler:no_chromium_code" ]
|
| -
|
| - if (is_win) {
|
| - cflags = [ "/wd4267" ] # TODO(jschuh): http://crbug.com/167187
|
| + configs += [
|
| + "//build/config/compiler:no_chromium_code",
|
| + # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
|
| + "//build/config/compiler:no_size_t_to_int_warning",
|
| + ]
|
|
|
| - if (component_mode == "shared_library") {
|
| - defines = [ "PNG_BUILD_DLL" ]
|
| - }
|
| + if (is_win && is_component_build) {
|
| + defines = [ "PNG_BUILD_DLL" ]
|
| }
|
|
|
| public_configs = [ ":libpng_config" ]
|
|
|