BUILD.gn 660 B

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