xref: /aosp_15_r20/external/cronet/testing/iossim/BUILD.gn (revision 6777b5387eb2ff775bb5750e3f5d96f37fb7352b)
1# Copyright 2016 The Chromium Authors
2# Use of this source code is governed by a BSD-style license that can be
3# found in the LICENSE file.
4
5if (current_toolchain == host_toolchain) {
6  executable("iossim") {
7    sources = [ "iossim.mm" ]
8    frameworks = [ "Foundation.framework" ]
9  }
10} else if (current_toolchain == default_toolchain) {
11  copy("iossim") {
12    deps = [ ":iossim($host_toolchain)" ]
13    outputs = [ "$root_out_dir/iossim" ]
14    sources = [ get_label_info(":iossim($host_toolchain)", "root_out_dir") +
15                "/iossim" ]
16  }
17} else {
18  group("iossim") {
19    public_deps = [ ":iossim($default_toolchain)" ]
20  }
21}
22