From 2cf3cffd3fd180434e651403d43da9240225d242 Mon Sep 17 00:00:00 2001 From: Adam Barth Date: Thu, 31 Aug 2017 16:47:13 -0700 Subject: [PATCH] Add //garnet (flutter/engine#4043) This repository contains FTL now in the Fuchsia build. --- DEPS | 9 +++------ engine/src/flutter/BUILD.gn | 2 +- engine/src/flutter/assets/BUILD.gn | 4 ++-- engine/src/flutter/build/flutter_app.gni | 2 +- engine/src/flutter/common/BUILD.gn | 2 +- engine/src/flutter/flow/BUILD.gn | 7 +++++-- engine/src/flutter/fml/BUILD.gn | 4 ++-- engine/src/flutter/glue/BUILD.gn | 2 +- engine/src/flutter/lib/io/BUILD.gn | 2 +- engine/src/flutter/lib/snapshot/BUILD.gn | 2 +- engine/src/flutter/lib/ui/BUILD.gn | 2 +- engine/src/flutter/runtime/BUILD.gn | 2 +- engine/src/flutter/runtime/dart_controller.cc | 2 +- engine/src/flutter/shell/common/BUILD.gn | 2 +- engine/src/flutter/shell/gpu/BUILD.gn | 2 +- engine/src/flutter/shell/platform/android/BUILD.gn | 2 +- engine/src/flutter/shell/platform/darwin/BUILD.gn | 2 +- engine/src/flutter/shell/platform/darwin/common/BUILD.gn | 2 +- .../src/flutter/shell/platform/darwin/desktop/BUILD.gn | 2 +- engine/src/flutter/shell/platform/darwin/ios/BUILD.gn | 2 +- engine/src/flutter/shell/platform/embedder/BUILD.gn | 2 +- engine/src/flutter/shell/platform/linux/BUILD.gn | 2 +- engine/src/flutter/shell/testing/BUILD.gn | 2 +- engine/src/flutter/synchronization/BUILD.gn | 4 ++-- engine/src/flutter/third_party/txt/BUILD.gn | 2 +- engine/src/flutter/vulkan/BUILD.gn | 2 +- 26 files changed, 35 insertions(+), 35 deletions(-) diff --git a/DEPS b/DEPS index fb5edff9dd..6dd56d2525 100644 --- a/DEPS +++ b/DEPS @@ -121,14 +121,11 @@ deps = { # build. Eventually, we'll manage these dependencies together with Fuchsia # and not have to specific specific hashes. - 'src/lib/ftl': - Var('fuchsia_git') + '/ftl' + '@' + 'bd6e605513008bc074d0e8022446cea8a06a3ce7', + 'src/garnet': + Var('fuchsia_git') + '/garnet' + '@' + '745be610ec5a6738d3bcbdab45b6402d477ce635', 'src/lib/tonic': - Var('fuchsia_git') + '/tonic' + '@' + '7a9263c95612e04ae8d066fa73b56dc938b5a37b', - - 'src/lib/zip': - Var('fuchsia_git') + '/zip' + '@' + '92dc87ca645fe8e9f5151ef6dac86d8311a7222f', + Var('fuchsia_git') + '/tonic' + '@' + 'fca532244483192e961cb826d9d0c05947cf288c', 'src/third_party/benchmark': Var('fuchsia_git') + '/third_party/benchmark' + '@' + '296537bc48d380adf21567c5d736ab79f5363d22', diff --git a/engine/src/flutter/BUILD.gn b/engine/src/flutter/BUILD.gn index 59abd271fa..f8a0f8f06a 100644 --- a/engine/src/flutter/BUILD.gn +++ b/engine/src/flutter/BUILD.gn @@ -44,7 +44,7 @@ group("flutter") { "//flutter/sky/engine/wtf:wtf_unittests", "//flutter/synchronization:synchronization_unittests", "//flutter/third_party/txt:txt_unittests", - "//lib/ftl:ftl_unittests", + "//garnet/public/lib/ftl:ftl_unittests", ] if (is_linux) { deps += [ "//flutter/third_party/txt:txt_benchmarks" ] diff --git a/engine/src/flutter/assets/BUILD.gn b/engine/src/flutter/assets/BUILD.gn index c92674c18c..0b3d1c970a 100644 --- a/engine/src/flutter/assets/BUILD.gn +++ b/engine/src/flutter/assets/BUILD.gn @@ -14,8 +14,8 @@ source_set("assets") { deps = [ "//flutter/glue", - "//lib/ftl", - "//lib/zip", + "//garnet/public/lib/ftl", + "//garnet/public/lib/zip", ] public_deps = [ diff --git a/engine/src/flutter/build/flutter_app.gni b/engine/src/flutter/build/flutter_app.gni index 7cbc614b39..c51641b805 100644 --- a/engine/src/flutter/build/flutter_app.gni +++ b/engine/src/flutter/build/flutter_app.gni @@ -7,7 +7,7 @@ assert(is_fuchsia) import("//build/dart/dart_package.gni") import("//flutter/lib/ui/dart_ui.gni") import("//apps/mozart/lib/flutter/sdk_ext/sdk_ext.gni") -import("//lib/fidl/dart/sdk_ext/sdk_ext.gni") +import("//garnet/public/lib/fidl/dart/sdk_ext/sdk_ext.gni") declare_args() { flutter_app_default_is_jit = true diff --git a/engine/src/flutter/common/BUILD.gn b/engine/src/flutter/common/BUILD.gn index 100797aaf8..a0d9194595 100644 --- a/engine/src/flutter/common/BUILD.gn +++ b/engine/src/flutter/common/BUILD.gn @@ -17,7 +17,7 @@ source_set("common") { ] deps = [ - "//lib/ftl", + "//garnet/public/lib/ftl", ] public_configs = [ ":flutter_config" ] diff --git a/engine/src/flutter/flow/BUILD.gn b/engine/src/flutter/flow/BUILD.gn index 15e4139ee3..5cbefb0113 100644 --- a/engine/src/flutter/flow/BUILD.gn +++ b/engine/src/flutter/flow/BUILD.gn @@ -49,11 +49,14 @@ source_set("flow") { "raster_cache_key.h", ] + public_deps = [ + "//garnet/public/lib/ftl", + ] + deps = [ "//flutter/common", "//flutter/glue", "//flutter/synchronization", - "//lib/ftl", "//third_party/skia", "//third_party/skia:gpu", ] @@ -71,7 +74,7 @@ source_set("flow") { deps += [ "//apps/mozart/lib/scene:client", "//apps/mozart/services/scene", - "//lib/fidl/dart/sdk_ext", + "//garnet/public/lib/fidl/dart/sdk_ext", ] public_deps = [ diff --git a/engine/src/flutter/fml/BUILD.gn b/engine/src/flutter/fml/BUILD.gn index 1082ce321c..0e3dbb4f1e 100644 --- a/engine/src/flutter/fml/BUILD.gn +++ b/engine/src/flutter/fml/BUILD.gn @@ -25,7 +25,7 @@ source_set("fml") { deps = [ "//dart/runtime:dart_api", - "//lib/ftl", + "//garnet/public/lib/ftl", # These need to be in sync with the Fuchsia buildroot. "//third_party/icu", @@ -113,6 +113,6 @@ executable("fml_unittests") { "//dart/runtime:libdart_jit", "//flutter/fml", "//flutter/testing", - "//lib/ftl", + "//garnet/public/lib/ftl", ] } diff --git a/engine/src/flutter/glue/BUILD.gn b/engine/src/flutter/glue/BUILD.gn index dd38623f3c..e1ee91b8f9 100644 --- a/engine/src/flutter/glue/BUILD.gn +++ b/engine/src/flutter/glue/BUILD.gn @@ -9,7 +9,7 @@ source_set("glue") { ] deps = [ - "//lib/ftl", + "//garnet/public/lib/ftl", ] if (is_fuchsia) { diff --git a/engine/src/flutter/lib/io/BUILD.gn b/engine/src/flutter/lib/io/BUILD.gn index ad48b9e147..b2cc68f8ad 100644 --- a/engine/src/flutter/lib/io/BUILD.gn +++ b/engine/src/flutter/lib/io/BUILD.gn @@ -11,7 +11,7 @@ source_set("io") { deps = [ "//dart/runtime:dart_api", "//dart/runtime/bin:embedded_dart_io", - "//lib/ftl", + "//garnet/public/lib/ftl", "//lib/tonic/converter", ] } diff --git a/engine/src/flutter/lib/snapshot/BUILD.gn b/engine/src/flutter/lib/snapshot/BUILD.gn index ad4589d9c6..38030a38ff 100644 --- a/engine/src/flutter/lib/snapshot/BUILD.gn +++ b/engine/src/flutter/lib/snapshot/BUILD.gn @@ -20,7 +20,7 @@ import("//dart/utils/generate_patch_sdk.gni") if (is_fuchsia) { import("//apps/mozart/lib/flutter/sdk_ext/sdk_ext.gni") - import("//lib/fidl/dart/sdk_ext/sdk_ext.gni") + import("//garnet/public/lib/fidl/dart/sdk_ext/sdk_ext.gni") } bindings_output_dir = "$root_gen_dir/sky/bindings" diff --git a/engine/src/flutter/lib/ui/BUILD.gn b/engine/src/flutter/lib/ui/BUILD.gn index 47da6839bd..09db4ea716 100644 --- a/engine/src/flutter/lib/ui/BUILD.gn +++ b/engine/src/flutter/lib/ui/BUILD.gn @@ -97,6 +97,6 @@ source_set("ui") { "//third_party/skia:gpu", ] if (is_fuchsia) { - deps += [ "//lib/fidl/dart/sdk_ext" ] + deps += [ "//garnet/public/lib/fidl/dart/sdk_ext" ] } } diff --git a/engine/src/flutter/runtime/BUILD.gn b/engine/src/flutter/runtime/BUILD.gn index 762f8cc3b5..fbeaf65974 100644 --- a/engine/src/flutter/runtime/BUILD.gn +++ b/engine/src/flutter/runtime/BUILD.gn @@ -79,7 +79,7 @@ source_set("runtime") { "//flutter/lib/io", "//flutter/lib/ui", "//flutter/sky/engine/platform", - "//lib/ftl", + "//garnet/public/lib/ftl", "//lib/tonic", "//third_party/rapidjson", "//third_party/skia", diff --git a/engine/src/flutter/runtime/dart_controller.cc b/engine/src/flutter/runtime/dart_controller.cc index d5a15b30e4..5a4ee9d8f3 100644 --- a/engine/src/flutter/runtime/dart_controller.cc +++ b/engine/src/flutter/runtime/dart_controller.cc @@ -35,7 +35,7 @@ using tonic::ToDart; namespace blink { namespace { -// TODO(abarth): Consider adding this to //lib/ftl. +// TODO(abarth): Consider adding this to //garnet/public/lib/ftl. std::string ResolvePath(std::string path) { if (!path.empty() && path[0] == '/') return path; diff --git a/engine/src/flutter/shell/common/BUILD.gn b/engine/src/flutter/shell/common/BUILD.gn index 55e8d31c68..c296fea0fa 100644 --- a/engine/src/flutter/shell/common/BUILD.gn +++ b/engine/src/flutter/shell/common/BUILD.gn @@ -112,7 +112,7 @@ source_set("common") { "//flutter/runtime", "//flutter/sky/engine/wtf", "//flutter/synchronization", - "//lib/ftl", + "//garnet/public/lib/ftl", "//lib/tonic", "//third_party/rapidjson", "//third_party/skia", diff --git a/engine/src/flutter/shell/gpu/BUILD.gn b/engine/src/flutter/shell/gpu/BUILD.gn index 8c9a1f786b..792b2f58b0 100644 --- a/engine/src/flutter/shell/gpu/BUILD.gn +++ b/engine/src/flutter/shell/gpu/BUILD.gn @@ -27,7 +27,7 @@ source_set("gpu") { "//flutter/glue", "//flutter/shell/common", "//flutter/synchronization", - "//lib/ftl", + "//garnet/public/lib/ftl", "//third_party/skia", "//third_party/skia:gpu", ] diff --git a/engine/src/flutter/shell/platform/android/BUILD.gn b/engine/src/flutter/shell/platform/android/BUILD.gn index caa36aa760..04ebd01116 100644 --- a/engine/src/flutter/shell/platform/android/BUILD.gn +++ b/engine/src/flutter/shell/platform/android/BUILD.gn @@ -44,7 +44,7 @@ shared_library("flutter_shell_native") { "//flutter/runtime", "//flutter/shell/common", "//flutter/shell/gpu", - "//lib/ftl", + "//garnet/public/lib/ftl", "//third_party/skia", ] if (flutter_runtime_mode == "debug") { diff --git a/engine/src/flutter/shell/platform/darwin/BUILD.gn b/engine/src/flutter/shell/platform/darwin/BUILD.gn index 2b2518377c..f296858af3 100644 --- a/engine/src/flutter/shell/platform/darwin/BUILD.gn +++ b/engine/src/flutter/shell/platform/darwin/BUILD.gn @@ -47,7 +47,7 @@ source_set("flutter_channels") { "//flutter/shell/gpu", "//flutter/shell/testing", "//flutter/sky/engine/wtf", - "//lib/ftl", + "//garnet/public/lib/ftl", "//third_party/skia", ] } diff --git a/engine/src/flutter/shell/platform/darwin/common/BUILD.gn b/engine/src/flutter/shell/platform/darwin/common/BUILD.gn index 12f80f5157..b8c63ae8ce 100644 --- a/engine/src/flutter/shell/platform/darwin/common/BUILD.gn +++ b/engine/src/flutter/shell/platform/darwin/common/BUILD.gn @@ -26,7 +26,7 @@ source_set("common") { "//flutter/shell/gpu", "//flutter/shell/testing", "//flutter/sky/engine/wtf", - "//lib/ftl", + "//garnet/public/lib/ftl", "//third_party/skia", ] } diff --git a/engine/src/flutter/shell/platform/darwin/desktop/BUILD.gn b/engine/src/flutter/shell/platform/darwin/desktop/BUILD.gn index 116fd4a198..316b0bc151 100644 --- a/engine/src/flutter/shell/platform/darwin/desktop/BUILD.gn +++ b/engine/src/flutter/shell/platform/darwin/desktop/BUILD.gn @@ -30,7 +30,7 @@ source_set("mac_desktop_platform") { "//flutter/shell/platform/darwin/common", "//flutter/shell/testing", "//flutter/synchronization", - "//lib/ftl", + "//garnet/public/lib/ftl", "//third_party/skia", ] } diff --git a/engine/src/flutter/shell/platform/darwin/ios/BUILD.gn b/engine/src/flutter/shell/platform/darwin/ios/BUILD.gn index 5307eba5d8..368d677f1a 100644 --- a/engine/src/flutter/shell/platform/darwin/ios/BUILD.gn +++ b/engine/src/flutter/shell/platform/darwin/ios/BUILD.gn @@ -75,7 +75,7 @@ shared_library("flutter_framework_dylib") { "//flutter/shell/platform/darwin/common", "//flutter/sky/engine/platform", "//flutter/sky/engine/wtf", - "//lib/ftl", + "//garnet/public/lib/ftl", "//third_party/skia", ] if (flutter_runtime_mode == "debug") { diff --git a/engine/src/flutter/shell/platform/embedder/BUILD.gn b/engine/src/flutter/shell/platform/embedder/BUILD.gn index 395ad397e2..079bc29387 100644 --- a/engine/src/flutter/shell/platform/embedder/BUILD.gn +++ b/engine/src/flutter/shell/platform/embedder/BUILD.gn @@ -18,7 +18,7 @@ source_set("embedder") { "//flutter/fml", "//flutter/shell/common", "//flutter/shell/gpu", - "//lib/ftl", + "//garnet/public/lib/ftl", "//lib/tonic", "//third_party/skia", ] diff --git a/engine/src/flutter/shell/platform/linux/BUILD.gn b/engine/src/flutter/shell/platform/linux/BUILD.gn index 8546619847..8af0925b59 100644 --- a/engine/src/flutter/shell/platform/linux/BUILD.gn +++ b/engine/src/flutter/shell/platform/linux/BUILD.gn @@ -16,7 +16,7 @@ executable("linux") { "//flutter/fml", "//flutter/shell/common", "//flutter/shell/testing", - "//lib/ftl", + "//garnet/public/lib/ftl", "//lib/tonic", "//third_party/skia", ] diff --git a/engine/src/flutter/shell/testing/BUILD.gn b/engine/src/flutter/shell/testing/BUILD.gn index 3ff6c902ce..95894b502d 100644 --- a/engine/src/flutter/shell/testing/BUILD.gn +++ b/engine/src/flutter/shell/testing/BUILD.gn @@ -15,7 +15,7 @@ source_set("testing") { deps = [ "//flutter/common", "//flutter/shell/common", - "//lib/ftl", + "//garnet/public/lib/ftl", "//third_party/skia", ] } diff --git a/engine/src/flutter/synchronization/BUILD.gn b/engine/src/flutter/synchronization/BUILD.gn index 69d7416759..c12fbc9f86 100644 --- a/engine/src/flutter/synchronization/BUILD.gn +++ b/engine/src/flutter/synchronization/BUILD.gn @@ -11,9 +11,9 @@ source_set("synchronization") { "semaphore.h", ] - deps = [ + public_deps = [ "//flutter/glue", - "//lib/ftl", + "//garnet/public/lib/ftl", ] } diff --git a/engine/src/flutter/third_party/txt/BUILD.gn b/engine/src/flutter/third_party/txt/BUILD.gn index b9f6227b41..b8c6f068da 100644 --- a/engine/src/flutter/third_party/txt/BUILD.gn +++ b/engine/src/flutter/third_party/txt/BUILD.gn @@ -95,7 +95,7 @@ source_set("txt") { public_configs = [ ":txt_config" ] public_deps = [ - "//lib/ftl", + "//garnet/public/lib/ftl", "//third_party/harfbuzz", "//third_party/icu", "//third_party/skia", diff --git a/engine/src/flutter/vulkan/BUILD.gn b/engine/src/flutter/vulkan/BUILD.gn index 8ff1e710af..d926ce9d74 100644 --- a/engine/src/flutter/vulkan/BUILD.gn +++ b/engine/src/flutter/vulkan/BUILD.gn @@ -58,7 +58,7 @@ source_set("vulkan") { } deps = [ - "//lib/ftl", + "//garnet/public/lib/ftl", "//third_party/skia", "//third_party/skia:gpu", ]