| # Copyright 2013 The Flutter 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/fuchsia/sdk.gni") |
| import("//flutter/tools/fuchsia/dart/dart_library.gni") |
| |
| config("zircon_config") { |
| include_dirs = [ "." ] |
| } |
| |
| source_set("zircon") { |
| public_configs = [ ":zircon_config" ] |
| |
| sources = [ |
| "sdk_ext/handle.cc", |
| "sdk_ext/handle.h", |
| "sdk_ext/handle_disposition.cc", |
| "sdk_ext/handle_disposition.h", |
| "sdk_ext/handle_waiter.cc", |
| "sdk_ext/handle_waiter.h", |
| "sdk_ext/natives.cc", |
| "sdk_ext/natives.h", |
| "sdk_ext/system.cc", |
| "sdk_ext/system.h", |
| ] |
| |
| deps = [ |
| "$fuchsia_sdk_root/pkg:async-cpp", |
| "$fuchsia_sdk_root/pkg:async-default", |
| "$fuchsia_sdk_root/pkg:async-loop-cpp", |
| "$fuchsia_sdk_root/pkg:fdio", |
| "$fuchsia_sdk_root/pkg:zx", |
| "../zircon_ffi", |
| "//flutter/fml", |
| "//flutter/third_party/tonic", |
| ] |
| } |
| |
| dart_library("dart_zircon") { |
| package_name = "zircon" |
| |
| sources = [ |
| "src/handle.dart", |
| "src/handle_disposition.dart", |
| "src/handle_waiter.dart", |
| "src/init.dart", |
| "src/system.dart", |
| "zircon.dart", |
| ] |
| |
| deps = [ "../zircon_ffi:dart_zircon_ffi" ] |
| } |