summaryrefslogtreecommitdiff
path: root/chromium/testing/iossim/BUILD.gn
blob: 1991d6b714d3c77cb0bb0251f897477efe65c344 (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
# Copyright 2016 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/config/mac/mac_sdk.gni")

if (current_toolchain == host_toolchain) {
  executable("iossim") {
    sources = [
      "iossim.mm",
    ]
    libs = [ "Foundation.framework" ]
  }
} else if (current_toolchain == default_toolchain) {
  copy("iossim") {
    deps = [
      ":iossim($host_toolchain)",
    ]
    outputs = [
      "$root_out_dir/iossim",
    ]
    sources = [
      get_label_info(":iossim($host_toolchain)", "root_out_dir") + "/iossim",
    ]
  }
}