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