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 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
57 configs += [ "//build/config/compiler:no_chromium_code" ] | 57 configs += [ "//build/config/compiler:no_chromium_code" ] |
58 | 58 |
59 if (is_win) { | 59 if (is_win) { |
60 cflags = [ "/wd4267" ] # TODO(jschuh): http://crbug.com/167187 | 60 cflags = [ "/wd4267" ] # TODO(jschuh): http://crbug.com/167187 |
61 | 61 |
62 if (component_mode == "shared_library") { | 62 if (component_mode == "shared_library") { |
63 defines = [ "PNG_BUILD_DLL" ] | 63 defines = [ "PNG_BUILD_DLL" ] |
64 } | 64 } |
65 } | 65 } |
66 | 66 |
67 direct_dependent_configs = [ ":libpng_config" ] | 67 public_configs = [ ":libpng_config" ] |
68 | 68 |
69 public_deps = [ "//third_party/zlib" ] | 69 public_deps = [ "//third_party/zlib" ] |
70 } | 70 } |
71 | 71 |
72 if (is_win) { | 72 if (is_win) { |
73 component("libpng") { | 73 component("libpng") { |
74 public_deps = [ ":libpng_sources" ] | 74 public_deps = [ ":libpng_sources" ] |
75 } | 75 } |
76 } else { | 76 } else { |
77 static_library("libpng") { | 77 static_library("libpng") { |
78 public_deps = [ ":libpng_sources" ] | 78 public_deps = [ ":libpng_sources" ] |
79 } | 79 } |
80 } | 80 } |
OLD | NEW |