| # Copyright 2016 The Fuchsia 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("//topaz/runtime/dart_runner/dart_app.gni") |
| |
| dart_jit_app("goodbye_dart_jit") { |
| deprecated_bare_package_url = "//build" |
| |
| sources = [ |
| "goodbye_dart.dart", |
| ] |
| main_dart = "goodbye_dart.dart" |
| |
| source_dir = "." |
| deps = [ |
| "//topaz/public/dart/fidl", |
| "//topaz/public/dart/fuchsia", |
| ] |
| |
| meta = [ |
| { |
| path = "meta/goodbye_dart_jit.cmx" |
| dest = "goodbye_dart_jit.cmx" |
| }, |
| ] |
| } |
| |
| dart_aot_app("goodbye_dart_aot") { |
| deprecated_bare_package_url = "//build" |
| |
| sources = [ |
| "goodbye_dart.dart", |
| ] |
| main_dart = "goodbye_dart.dart" |
| |
| source_dir = "." |
| deps = [ |
| "//topaz/public/dart/fidl", |
| "//topaz/public/dart/fuchsia", |
| ] |
| |
| meta = [ |
| { |
| path = "meta/goodbye_dart_aot.cmx" |
| dest = "goodbye_dart_aot.cmx" |
| }, |
| ] |
| } |
| |
| copy("copy_goodbye_dart_test") { |
| sources = [ |
| "goodbye_dart_test", |
| ] |
| outputs = [ |
| "${root_build_dir}/goodbye_dart_test", |
| ] |
| } |
| |
| package("goodbye_dart_test") { |
| deprecated_bare_package_url = "//build" |
| |
| testonly = true |
| tests = [ |
| { |
| name = "goodbye_dart_test" |
| }, |
| ] |
| meta = [ |
| { |
| dest = "goodbye_dart_test.cmx" |
| path = rebase_path("meta/" + dest) |
| }, |
| ] |
| deps = [ |
| ":copy_goodbye_dart_test", |
| ] |
| } |