| 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") |
| 6 |
| 5 config("libpng_config") { | 7 config("libpng_config") { |
| 6 include_dirs = [ "." ] | 8 include_dirs = [ "." ] |
| 7 | 9 |
| 8 defines = [ | 10 defines = [ |
| 9 "CHROME_PNG_WRITE_SUPPORT", | 11 "CHROME_PNG_WRITE_SUPPORT", |
| 10 "PNG_USER_CONFIG", | 12 "PNG_USER_CONFIG", |
| 11 ] | 13 ] |
| 12 | 14 |
| 13 if (is_android) { | 15 if (is_android || is_chromecast) { |
| 14 #'toolsets': ['target', 'host'], | 16 #'toolsets': ['target', 'host'], |
| 15 defines += [ "CHROME_PNG_READ_PACK_SUPPORT" ] # Required by freetype. | 17 defines += [ "CHROME_PNG_READ_PACK_SUPPORT" ] # Required by freetype. |
| 16 } | 18 } |
| 17 | 19 |
| 18 if (is_win) { | 20 if (is_win) { |
| 19 if (is_component_build) { | 21 if (is_component_build) { |
| 20 defines += [ | 22 defines += [ |
| 21 "PNG_USE_DLL", | 23 "PNG_USE_DLL", |
| 22 "PNG_NO_MODULEDEF", | 24 "PNG_NO_MODULEDEF", |
| 23 ] | 25 ] |
| (...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 80 ":libpng_sources", | 82 ":libpng_sources", |
| 81 ] | 83 ] |
| 82 } | 84 } |
| 83 } else { | 85 } else { |
| 84 group("libpng") { | 86 group("libpng") { |
| 85 public_deps = [ | 87 public_deps = [ |
| 86 ":libpng_sources", | 88 ":libpng_sources", |
| 87 ] | 89 ] |
| 88 } | 90 } |
| 89 } | 91 } |
| OLD | NEW |