| # Copyright 2020 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("//build/dart/dart_app.gni") |
| import("//build/dart/fidl_move.gni") |
| import("//build/flutter/flutter_app.gni") |
| |
| dart_app("timestamp-server-dart") { |
| main_dart = "lib/main.dart" |
| |
| meta = [ |
| { |
| path = rebase_path("meta/timestamp-server-dart.cmx") |
| dest = "timestamp-server-dart.cmx" |
| }, |
| ] |
| |
| sources = [ "main.dart" ] |
| deps = [ |
| "//src/testing/fidl:placeholders", |
| "//third_party/dart-pkg/pub/intl", |
| "//topaz/public/dart/fuchsia_logger", |
| dart_package_label.fidl, |
| dart_package_label.fuchsia, |
| dart_package_label.fuchsia_services, |
| dart_package_label.zircon, |
| ] |
| resources = [ |
| { |
| path = rebase_path("//third_party/icu/common/icudtl.dat") |
| dest = "icudtl.dat" |
| }, |
| ] |
| } |
| |
| # Same as above, except uses the flutter runner. The flutter runner is using |
| # exactly the same mechanism as dart, but it is a different runner binary |
| # nevertheless. So we should test both. |
| flutter_app("timestamp-server-flutter") { |
| main_dart = "lib/main.dart" |
| |
| meta = [ |
| { |
| path = rebase_path("meta/timestamp-server-flutter.cmx") |
| dest = "timestamp-server-flutter.cmx" |
| }, |
| ] |
| |
| sources = [ "main.dart" ] |
| deps = [ |
| "//src/testing/fidl:placeholders", |
| "//third_party/dart-pkg/pub/intl", |
| "//topaz/public/dart/fuchsia_logger", |
| dart_package_label.fidl, |
| dart_package_label.fuchsia, |
| dart_package_label.fuchsia_services, |
| dart_package_label.zircon, |
| ] |
| resources = [ |
| { |
| path = rebase_path("//third_party/icu/common/icudtl.dat") |
| dest = "icudtl.dat" |
| }, |
| ] |
| } |