| 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/symlink.gni") | 5 import("//build/symlink.gni") |
| 6 | 6 |
| 7 if (current_toolchain == host_toolchain) { | 7 if (current_toolchain == host_toolchain) { |
| 8 executable("imagediff") { | 8 executable("imagediff") { |
| 9 output_name = "image_diff" # Different than dir nam for historical reasons. | 9 output_name = "image_diff" # Different than dir nam for historical reasons. |
| 10 sources = [ | 10 sources = [ |
| 11 "image_diff.cc", | 11 "image_diff.cc", |
| 12 "image_diff_png.cc", | 12 "image_diff_png.cc", |
| 13 "image_diff_png.h", | 13 "image_diff_png.h", |
| 14 ] | 14 ] |
| 15 | 15 |
| 16 configs += [ "//build/config/compiler:wexit_time_destructors" ] | 16 configs += [ "//build/config/compiler:wexit_time_destructors" ] |
| 17 | 17 |
| 18 deps = [ | 18 deps = [ |
| 19 "//base", | 19 "//base", |
| 20 "//build/config/sanitizers:deps", | 20 "//build/config:exe_and_shlib_deps", |
| 21 "//build/win:default_exe_manifest", | 21 "//build/win:default_exe_manifest", |
| 22 "//third_party/libpng", | 22 "//third_party/libpng", |
| 23 "//third_party/zlib", | 23 "//third_party/zlib", |
| 24 ] | 24 ] |
| 25 } | 25 } |
| 26 } else { | 26 } else { |
| 27 # Aliases for compatibility with GYP. | 27 # Aliases for compatibility with GYP. |
| 28 binary_symlink("imagediff") { | 28 binary_symlink("imagediff") { |
| 29 binary_label = ":$target_name($host_toolchain)" | 29 binary_label = ":$target_name($host_toolchain)" |
| 30 binary_output_name = "image_diff" | 30 binary_output_name = "image_diff" |
| 31 } | 31 } |
| 32 } | 32 } |
| OLD | NEW |