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