| 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 config("libpng_config") { | 5 config("libpng_config") { |
| 6 include_dirs = [ | 6 include_dirs = [ |
| 7 ".", | 7 ".", |
| 8 ] | 8 ] |
| 9 | 9 |
| 10 defines = [ | 10 defines = [ |
| (...skipping 11 matching lines...) Expand all Loading... |
| 22 if (is_win) { | 22 if (is_win) { |
| 23 if (component_mode == "shared_library") { | 23 if (component_mode == "shared_library") { |
| 24 defines += [ | 24 defines += [ |
| 25 "PNG_USE_DLL", | 25 "PNG_USE_DLL", |
| 26 "PNG_NO_MODULEDEF", | 26 "PNG_NO_MODULEDEF", |
| 27 ] | 27 ] |
| 28 } | 28 } |
| 29 } | 29 } |
| 30 } | 30 } |
| 31 | 31 |
| 32 static_library("libpng") { | 32 source_set("libpng") { |
| 33 sources = [ | 33 sources = [ |
| 34 "png.c", | 34 "png.c", |
| 35 "png.h", | 35 "png.h", |
| 36 "pngconf.h", | 36 "pngconf.h", |
| 37 "pngerror.c", | 37 "pngerror.c", |
| 38 "pnggccrd.c", | 38 "pnggccrd.c", |
| 39 "pngget.c", | 39 "pngget.c", |
| 40 "pngmem.c", | 40 "pngmem.c", |
| 41 "pngpread.c", | 41 "pngpread.c", |
| 42 "pngread.c", | 42 "pngread.c", |
| (...skipping 14 matching lines...) Expand all Loading... |
| 57 configs += [ "//build/config/compiler:no_chromium_code" ] | 57 configs += [ "//build/config/compiler:no_chromium_code" ] |
| 58 | 58 |
| 59 forward_dependent_configs_from = [ "//third_party/zlib" ] | 59 forward_dependent_configs_from = [ "//third_party/zlib" ] |
| 60 | 60 |
| 61 direct_dependent_configs = [ ":libpng_config" ] | 61 direct_dependent_configs = [ ":libpng_config" ] |
| 62 | 62 |
| 63 deps = [ | 63 deps = [ |
| 64 "//third_party/zlib", | 64 "//third_party/zlib", |
| 65 ] | 65 ] |
| 66 } | 66 } |
| OLD | NEW |