| # 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/dart_component.gni") |
| import("//build/dart/dart_library.gni") |
| import("//build/flutter/flutter_component.gni") |
| |
| group("tests") { |
| testonly = true |
| deps = [ |
| ":timestamp-server-dart", |
| ":timestamp-server-flutter", |
| ] |
| } |
| |
| dart_library("lib") { |
| package_name = "timestamp_server_dart" |
| sources = [ "main.dart" ] |
| deps = [ |
| "//sdk/dart/fidl", |
| "//sdk/dart/fuchsia", |
| "//sdk/dart/fuchsia_logger", |
| "//sdk/dart/fuchsia_services", |
| "//sdk/dart/zircon", |
| "//src/testing/fidl:placeholders", |
| "//third_party/dart-pkg/pub/intl", |
| ] |
| } |
| |
| dart_component("timestamp-server-dart") { |
| manifest = "meta/timestamp-server-dart.cml" |
| main_dart = "main.dart" |
| deps = [ |
| ":lib", |
| "//src/intl:icudtl", |
| ] |
| } |
| |
| # 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. |
| |
| dart_library("lib-flutter") { |
| package_name = "timestamp_server_flutter" |
| sources = [ "main.dart" ] |
| deps = [ |
| "//sdk/dart/fidl", |
| "//sdk/dart/fuchsia", |
| "//sdk/dart/fuchsia_logger", |
| "//sdk/dart/fuchsia_services", |
| "//sdk/dart/zircon", |
| "//src/testing/fidl:placeholders", |
| "//third_party/dart-pkg/pub/intl", |
| ] |
| } |
| |
| flutter_component("timestamp-server-flutter") { |
| main_dart = "main.dart" |
| manifest = "meta/timestamp-server-flutter.cml" |
| deps = [ |
| ":lib-flutter", |
| "//src/intl:icudtl_root", |
| ] |
| } |