summaryrefslogtreecommitdiff
path: root/chromium/tools/imagediff/BUILD.gn
blob: 66f539a0c0275117c1f3da457ab9700f224903fa (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
# Copyright 2014 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.

import("//build/symlink.gni")

if (current_toolchain == host_toolchain) {
  executable("imagediff") {
    output_name = "image_diff"  # Different than dir nam for historical reasons.
    sources = [
      "image_diff.cc",
      "image_diff_png.cc",
      "image_diff_png.h",
    ]

    configs += [ "//build/config/compiler:wexit_time_destructors" ]

    deps = [
      "//base",
      "//build/config:exe_and_shlib_deps",
      "//build/win:default_exe_manifest",
      "//third_party/libpng",
      "//third_party/zlib",
    ]
  }
} else {
  # Aliases for compatibility with GYP.
  binary_symlink("imagediff") {
    binary_label = ":$target_name($host_toolchain)"
    binary_output_name = "image_diff"
  }
}