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