diff --git a/engine/src/flutter/BUILD.gn b/engine/src/flutter/BUILD.gn index 6ef04fba07..84e7b9763d 100644 --- a/engine/src/flutter/BUILD.gn +++ b/engine/src/flutter/BUILD.gn @@ -6,56 +6,62 @@ group("flutter") { testonly = true deps = [ - "//flutter/lib/snapshot:compile_platform", - "//flutter/lib/snapshot:generate_snapshot_bin", - "//flutter/sky", - "//flutter/third_party/txt", + "$flutter_root/lib/snapshot:compile_platform", + "$flutter_root/lib/snapshot:generate_snapshot_bin", + "$flutter_root/sky", + "$flutter_root/third_party/txt", ] if (!is_fuchsia) { if (current_toolchain == host_toolchain) { deps += [ "//dart:create_sdk", - "//flutter/frontend_server", + "$flutter_root/frontend_server", ] } } if (is_fuchsia) { deps += [ - "//flutter/content_handler", - "//flutter/content_handler:aot_content_handler", - "//flutter/examples", - "//flutter/flow", + "$flutter_root/content_handler", + "$flutter_root/content_handler:aot_content_handler", + "$flutter_root/examples", + "$flutter_root/flow", ] } # If on the host, compile all unittests targets. if (current_toolchain == host_toolchain) { if (is_mac) { - deps += [ "//flutter/shell/platform/darwin:flutter_channels_unittests" ] + deps += [ "$flutter_root/shell/platform/darwin:flutter_channels_unittests" ] } if (!is_win) { - deps += [ "//flutter/shell/platform/embedder:flutter_engine" ] + deps += [ "$flutter_root/shell/platform/embedder:flutter_engine" ] } deps += [ - "//flutter/flow:flow_unittests", - "//flutter/fml:fml_unittests", - "//flutter/sky/engine/wtf:wtf_unittests", - "//flutter/synchronization:synchronization_unittests", - "//flutter/third_party/txt:txt_benchmarks", - "//flutter/third_party/txt:txt_unittests", + "$flutter_root/flow:flow_unittests", + "$flutter_root/fml:fml_unittests", + "$flutter_root/sky/engine/wtf:wtf_unittests", + "$flutter_root/synchronization:synchronization_unittests", + "$flutter_root/third_party/txt:txt_benchmarks", + "$flutter_root/third_party/txt:txt_unittests", "//garnet/public/lib/fxl:fxl_unittests", ] } } +config("config") { + include_dirs = [ + "..", + ] +} + if (!is_fuchsia) { group("dist") { testonly = true deps = [ - "//flutter/sky/dist", + "$flutter_root/sky/dist", ] } } diff --git a/engine/src/flutter/assets/BUILD.gn b/engine/src/flutter/assets/BUILD.gn index dbdeb464ce..6f9107929f 100644 --- a/engine/src/flutter/assets/BUILD.gn +++ b/engine/src/flutter/assets/BUILD.gn @@ -13,7 +13,7 @@ source_set("assets") { ] deps = [ - "//flutter/glue", + "$flutter_root/glue", "//garnet/public/lib/fxl", "//garnet/public/lib/zip", ] @@ -21,4 +21,8 @@ source_set("assets") { public_deps = [ "//third_party/zlib:minizip", ] + + public_configs = [ + "$flutter_root:config", + ] } diff --git a/engine/src/flutter/build/dart/rules.gni b/engine/src/flutter/build/dart/rules.gni index 16b4402c6a..c30f7651a8 100644 --- a/engine/src/flutter/build/dart/rules.gni +++ b/engine/src/flutter/build/dart/rules.gni @@ -44,7 +44,7 @@ template("dart_pkg_helper") { sdk_ext_mappings += invoker.sdk_ext_mappings } - script = rebase_path("flutter/build/dart/tools/dart_pkg.py", ".", "//") + script = rebase_path("$flutter_root/build/dart/tools/dart_pkg.py", ".", "//") entrypoints = [] if (defined(invoker.apps)) { @@ -61,7 +61,7 @@ template("dart_pkg_helper") { if (defined(invoker.sources)) { sources += invoker.sources } else if (defined(invoker.pkg_dir)) { - list_script = rebase_path("flutter/build/dart/tools/ls.py", ".", "//") + list_script = rebase_path("$flutter_root/build/dart/tools/ls.py", ".", "//") extra_flags += [ "--read_only" ] ls_sources = exec_script(list_script, [ @@ -112,7 +112,7 @@ template("dart_pkg") { pubspec_yaml_path = rebase_path("pubspec.yaml") } dart_package_name_script = - rebase_path("flutter/build/dart/tools/dart_package_name.py", ".", "//") + rebase_path("$flutter_root/build/dart/tools/dart_package_name.py", ".", "//") dart_package_name = exec_script(dart_package_name_script, [ "--pubspec", diff --git a/engine/src/flutter/build/flutter_app.gni b/engine/src/flutter/build/flutter_app.gni index 106611104a..52582235d2 100644 --- a/engine/src/flutter/build/flutter_app.gni +++ b/engine/src/flutter/build/flutter_app.gni @@ -5,7 +5,7 @@ assert(is_fuchsia) import("//build/dart/dart_package.gni") -import("//flutter/lib/ui/dart_ui.gni") +import("$flutter_root/lib/ui/dart_ui.gni") import("//topaz/public/dart-pkg/fuchsia/sdk_ext.gni") import("//topaz/public/dart-pkg/zircon/sdk_ext.gni") import("//topaz/public/lib/ui/flutter/sdk_ext/sdk_ext.gni") @@ -18,9 +18,9 @@ gen_snapshot_label = "//dart/runtime/bin:gen_snapshot($host_toolchain)" gen_snapshot_dir = get_label_info(gen_snapshot_label, "root_out_dir") gen_snapshot = "$gen_snapshot_dir/gen_snapshot" -flutter_root = "//lib/flutter" +flutter_base = "//lib/flutter" flutter_tools_label = - "$flutter_root/packages/flutter_tools:fuchsia_builder($host_toolchain)" + "$flutter_base/packages/flutter_tools:fuchsia_builder($host_toolchain)" flutter_tools_out_dir = get_label_info(flutter_tools_label, "root_out_dir") flutter_tools_bin = "$flutter_tools_out_dir/dart-tools/fuchsia_builder" @@ -50,7 +50,7 @@ template("flutter_jit_app") { bundle_name = "${target_name}.flx" } - flutter_core_snapshot_label = "//flutter/lib/snapshot:generate_snapshot_bin" + flutter_core_snapshot_label = "$flutter_root/lib/snapshot:generate_snapshot_bin" flutter_core_snapshot_gen_dir = get_label_info(flutter_core_snapshot_label, "target_gen_dir") flutter_core_snapshot_vm_data = @@ -91,7 +91,7 @@ template("flutter_jit_app") { sources = invoker.sources } - script = "//flutter/build/script_snapshot.py" + script = "$flutter_root/build/script_snapshot.py" args = [ "--snapshotter-path", @@ -144,11 +144,11 @@ template("flutter_jit_app") { bundle_path, ] - script = "//flutter/build/package.py" + script = "$flutter_root/build/package.py" args = [ "--flutter-root", - rebase_path(flutter_root), + rebase_path(flutter_base), "--flutter-tools", rebase_path(flutter_tools_bin), "--working-dir", @@ -225,8 +225,8 @@ template("flutter_aot_app") { mozart_dart_sdk_ext_files + [ main_dart, - "//flutter/runtime/dart_vm_entry_points.txt", - "//flutter/runtime/dart_vm_entry_points_fuchsia.txt", + "$flutter_root/runtime/dart_vm_entry_points.txt", + "$flutter_root/runtime/dart_vm_entry_points_fuchsia.txt", "//dart/runtime/bin/dart_io_entries.txt", ] @@ -238,7 +238,7 @@ template("flutter_aot_app") { sources = invoker.sources } - script = "//flutter/build/aot_snapshot.py" + script = "$flutter_root/build/aot_snapshot.py" args = [ "--snapshotter-path", rebase_path(gen_snapshot), @@ -262,9 +262,9 @@ template("flutter_aot_app") { "$root_gen_dir/dart-pkg/sky_engine/sdk_ext/vmservice_io.dart"), "--entry-points-manifest", - rebase_path("//flutter/runtime/dart_vm_entry_points.txt"), + rebase_path("$flutter_root/runtime/dart_vm_entry_points.txt"), "--entry-points-manifest", - rebase_path("//flutter/runtime/dart_vm_entry_points_fuchsia.txt"), + rebase_path("$flutter_root/runtime/dart_vm_entry_points_fuchsia.txt"), "--entry-points-manifest", rebase_path("//dart/runtime/bin/dart_io_entries.txt"), @@ -279,7 +279,7 @@ template("flutter_aot_app") { deps = [ ":$dart_package_name", - "//flutter/lib/snapshot:generate_dart_ui", + "$flutter_root/lib/snapshot:generate_dart_ui", gen_snapshot_label, ] @@ -323,11 +323,11 @@ template("flutter_aot_app") { bundle_path, ] - script = "//flutter/build/package.py" + script = "$flutter_root/build/package.py" args = [ "--flutter-root", - rebase_path(flutter_root), + rebase_path(flutter_base), "--flutter-tools", rebase_path(flutter_tools_bin), "--working-dir", diff --git a/engine/src/flutter/common/BUILD.gn b/engine/src/flutter/common/BUILD.gn index 239f33bea0..53b71914d4 100644 --- a/engine/src/flutter/common/BUILD.gn +++ b/engine/src/flutter/common/BUILD.gn @@ -20,5 +20,8 @@ source_set("common") { "//garnet/public/lib/fxl", ] - public_configs = [ ":flutter_config" ] + public_configs = [ + ":flutter_config", + "$flutter_root:config", + ] } diff --git a/engine/src/flutter/examples/hello_flutter/BUILD.gn b/engine/src/flutter/examples/hello_flutter/BUILD.gn index 0b352cd62b..ff76a924b1 100644 --- a/engine/src/flutter/examples/hello_flutter/BUILD.gn +++ b/engine/src/flutter/examples/hello_flutter/BUILD.gn @@ -2,7 +2,7 @@ # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. -import("//flutter/build/flutter_app.gni") +import("$flutter_root/build/flutter_app.gni") flutter_jit_app("hello_flutter") { main_dart = "lib/main.dart" diff --git a/engine/src/flutter/examples/spinning_square/BUILD.gn b/engine/src/flutter/examples/spinning_square/BUILD.gn index 883d98a65a..a60ef1c6f1 100644 --- a/engine/src/flutter/examples/spinning_square/BUILD.gn +++ b/engine/src/flutter/examples/spinning_square/BUILD.gn @@ -2,7 +2,7 @@ # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. -import("//flutter/build/flutter_app.gni") +import("$flutter_root/build/flutter_app.gni") flutter_app("spinning_square") { main_dart = "lib/main.dart" diff --git a/engine/src/flutter/flow/BUILD.gn b/engine/src/flutter/flow/BUILD.gn index 9b9530340d..b6d633ece8 100644 --- a/engine/src/flutter/flow/BUILD.gn +++ b/engine/src/flutter/flow/BUILD.gn @@ -57,10 +57,14 @@ source_set("flow") { "//garnet/public/lib/fxl", ] + public_configs = [ + "$flutter_root:config", + ] + deps = [ - "//flutter/common", - "//flutter/glue", - "//flutter/synchronization", + "$flutter_root/common", + "$flutter_root/glue", + "$flutter_root/synchronization", "//third_party/skia", "//third_party/skia:gpu", ] @@ -96,7 +100,7 @@ executable("flow_unittests") { deps = [ ":flow", "//dart/runtime:libdart_jit", # for tracing - "//flutter/testing", + "$flutter_root/testing", "//third_party/skia", ] } diff --git a/engine/src/flutter/fml/BUILD.gn b/engine/src/flutter/fml/BUILD.gn index 2bd6555233..1e57600e46 100644 --- a/engine/src/flutter/fml/BUILD.gn +++ b/engine/src/flutter/fml/BUILD.gn @@ -33,6 +33,10 @@ source_set("fml") { configs += [ "//third_party/icu:icu_config" ] + public_configs = [ + "$flutter_root:config", + ] + libs = [] if (is_ios || is_mac) { @@ -111,8 +115,8 @@ executable("fml_unittests") { deps = [ "//dart/runtime:libdart_jit", - "//flutter/fml", - "//flutter/testing", + "$flutter_root/fml", + "$flutter_root/testing", "//garnet/public/lib/fxl", ] } diff --git a/engine/src/flutter/glue/BUILD.gn b/engine/src/flutter/glue/BUILD.gn index 84903ac8ad..ffad7e3ff6 100644 --- a/engine/src/flutter/glue/BUILD.gn +++ b/engine/src/flutter/glue/BUILD.gn @@ -12,6 +12,10 @@ source_set("glue") { "//garnet/public/lib/fxl", ] + public_configs = [ + "$flutter_root:config", + ] + if (is_fuchsia) { sources += [ "stack_trace_fuchsia.cc" ] @@ -21,6 +25,6 @@ source_set("glue") { } else { sources += [ "stack_trace_base.cc" ] - deps += [ "//flutter/fml" ] + deps += [ "$flutter_root/fml" ] } } diff --git a/engine/src/flutter/lib/io/BUILD.gn b/engine/src/flutter/lib/io/BUILD.gn index 914cc90584..c1a1d3950f 100644 --- a/engine/src/flutter/lib/io/BUILD.gn +++ b/engine/src/flutter/lib/io/BUILD.gn @@ -18,4 +18,8 @@ source_set("io") { configs += [ "//dart/runtime:dart_config", ] + + public_configs = [ + "$flutter_root:config", + ] } diff --git a/engine/src/flutter/lib/snapshot/BUILD.gn b/engine/src/flutter/lib/snapshot/BUILD.gn index 48ff46adff..92136bd08a 100644 --- a/engine/src/flutter/lib/snapshot/BUILD.gn +++ b/engine/src/flutter/lib/snapshot/BUILD.gn @@ -2,7 +2,7 @@ # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. -import("//flutter/lib/ui/dart_ui.gni") +import("$flutter_root/lib/ui/dart_ui.gni") import("//dart/runtime/bin/io_sources.gni") import("//dart/runtime/lib/async_sources.gni") diff --git a/engine/src/flutter/lib/ui/BUILD.gn b/engine/src/flutter/lib/ui/BUILD.gn index 14de857f83..db536aace7 100644 --- a/engine/src/flutter/lib/ui/BUILD.gn +++ b/engine/src/flutter/lib/ui/BUILD.gn @@ -85,15 +85,19 @@ source_set("ui") { "window/window.h", ] + public_configs = [ + "$flutter_root:config", + ] + deps = [ "//dart/runtime/bin:embedded_dart_io", - "//flutter/assets", - "//flutter/common", - "//flutter/flow", - "//flutter/glue", - "//flutter/runtime:test_font", - "//flutter/sky/engine", - "//flutter/third_party/txt", + "$flutter_root/assets", + "$flutter_root/common", + "$flutter_root/flow", + "$flutter_root/glue", + "$flutter_root/runtime:test_font", + "$flutter_root/sky/engine", + "$flutter_root/third_party/txt", "//third_party/rapidjson", "//third_party/skia", "//third_party/skia:gpu", diff --git a/engine/src/flutter/lib/ui/dart_ui.gni b/engine/src/flutter/lib/ui/dart_ui.gni index 39d58e92e2..418b653100 100644 --- a/engine/src/flutter/lib/ui/dart_ui.gni +++ b/engine/src/flutter/lib/ui/dart_ui.gni @@ -3,18 +3,18 @@ # found in the LICENSE file. dart_ui_files = [ - "//flutter/lib/ui/compositing.dart", - "//flutter/lib/ui/geometry.dart", - "//flutter/lib/ui/hash_codes.dart", - "//flutter/lib/ui/hooks.dart", - "//flutter/lib/ui/lerp.dart", - "//flutter/lib/ui/natives.dart", - "//flutter/lib/ui/painting.dart", - "//flutter/lib/ui/pointer.dart", - "//flutter/lib/ui/semantics.dart", - "//flutter/lib/ui/text.dart", - "//flutter/lib/ui/ui.dart", - "//flutter/lib/ui/window.dart", + "$flutter_root/lib/ui/compositing.dart", + "$flutter_root/lib/ui/geometry.dart", + "$flutter_root/lib/ui/hash_codes.dart", + "$flutter_root/lib/ui/hooks.dart", + "$flutter_root/lib/ui/lerp.dart", + "$flutter_root/lib/ui/natives.dart", + "$flutter_root/lib/ui/painting.dart", + "$flutter_root/lib/ui/pointer.dart", + "$flutter_root/lib/ui/semantics.dart", + "$flutter_root/lib/ui/text.dart", + "$flutter_root/lib/ui/ui.dart", + "$flutter_root/lib/ui/window.dart", ] -dart_ui_path = "//flutter/lib/ui/ui.dart" +dart_ui_path = "$flutter_root/lib/ui/ui.dart" diff --git a/engine/src/flutter/runtime/BUILD.gn b/engine/src/flutter/runtime/BUILD.gn index eac07c4702..90d23f5b0f 100644 --- a/engine/src/flutter/runtime/BUILD.gn +++ b/engine/src/flutter/runtime/BUILD.gn @@ -3,7 +3,7 @@ # found in the LICENSE file. import("//dart/runtime/bin/vmservice/vmservice_sources.gni") -import("//flutter/common/config.gni") +import("$flutter_root/common/config.gni") action("gen_embedded_resources_cc") { script = "//dart/runtime/tools/create_resources.py" @@ -37,6 +37,9 @@ source_set("embedded_resources_cc") { deps = [ ":gen_embedded_resources_cc", ] + public_configs = [ + "$flutter_root:config", + ] } source_set("test_font") { @@ -47,6 +50,9 @@ source_set("test_font") { deps = [ "//third_party/skia", ] + public_configs = [ + "$flutter_root:config", + ] defines = [] if (flutter_runtime_mode == "debug" || current_toolchain == host_toolchain) { # Though the test font data is small, we dont want to add to the binary size @@ -88,24 +94,28 @@ source_set("runtime") { ":test_font", "//dart/runtime:dart_api", "//dart/runtime/bin:embedded_dart_io", - "//flutter/assets", - "//flutter/common", - "//flutter/flow", - "//flutter/glue", - "//flutter/lib/io", - "//flutter/lib/ui", - "//flutter/sky/engine/platform", - "//flutter/third_party/txt", + "$flutter_root/assets", + "$flutter_root/common", + "$flutter_root/flow", + "$flutter_root/glue", + "$flutter_root/lib/io", + "$flutter_root/lib/ui", + "$flutter_root/sky/engine/platform", + "$flutter_root/third_party/txt", "//garnet/public/lib/fxl", "//third_party/rapidjson", "//third_party/skia", "//topaz/lib/tonic", ] + public_configs = [ + "$flutter_root:config", + ] + # In AOT mode, precompiled snapshots contain the instruction buffer. # Generation of the same requires all application specific script code to be # specified up front. In such cases, there can be no generic snapshot. if (!flutter_aot) { - deps += [ "//flutter/lib/snapshot" ] + deps += [ "$flutter_root/lib/snapshot" ] } } diff --git a/engine/src/flutter/shell/common/BUILD.gn b/engine/src/flutter/shell/common/BUILD.gn index 2e4c433e9c..aa7fd534d9 100644 --- a/engine/src/flutter/shell/common/BUILD.gn +++ b/engine/src/flutter/shell/common/BUILD.gn @@ -57,9 +57,9 @@ template("dart_embedder_resources") { dart_embedder_resources("generate_embedder_diagnostic_server_resources_cc") { inputs = [ - "//flutter/shell/common/diagnostic/diagnostic_server.dart", + "$flutter_root/shell/common/diagnostic/diagnostic_server.dart", ] - root_prefix = "//flutter/shell/common/diagnostic/" + root_prefix = "$flutter_root/shell/common/diagnostic/" output = "$target_gen_dir/embedder_diagnostic_server_resources.cc" table_name = "sky_embedder_diagnostic_server" } @@ -103,16 +103,16 @@ source_set("common") { ":generate_embedder_diagnostic_server_resources_cc", "//dart/runtime:dart_api", "//dart/runtime/platform:libdart_platform", - "//flutter/assets", - "//flutter/common", - "//flutter/flow", - "//flutter/fml", - "//flutter/glue", - "//flutter/lib/ui", - "//flutter/runtime", - "//flutter/sky/engine/wtf", - "//flutter/synchronization", - "//flutter/third_party/txt", + "$flutter_root/assets", + "$flutter_root/common", + "$flutter_root/flow", + "$flutter_root/fml", + "$flutter_root/glue", + "$flutter_root/lib/ui", + "$flutter_root/runtime", + "$flutter_root/sky/engine/wtf", + "$flutter_root/synchronization", + "$flutter_root/third_party/txt", "//garnet/public/lib/fxl", "//third_party/rapidjson", "//third_party/skia", @@ -122,4 +122,8 @@ source_set("common") { public_deps = [ "//topaz/lib/tonic", ] + + public_configs = [ + "$flutter_root:config", + ] } diff --git a/engine/src/flutter/shell/gpu/BUILD.gn b/engine/src/flutter/shell/gpu/BUILD.gn index f58d0d8b80..6cb36faac8 100644 --- a/engine/src/flutter/shell/gpu/BUILD.gn +++ b/engine/src/flutter/shell/gpu/BUILD.gn @@ -2,7 +2,7 @@ # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. -import("//flutter/shell/config.gni") +import("$flutter_root/shell/config.gni") source_set("gpu") { sources = [ @@ -22,17 +22,21 @@ source_set("gpu") { } deps = [ - "//flutter/common", - "//flutter/flow", - "//flutter/glue", - "//flutter/shell/common", - "//flutter/synchronization", + "$flutter_root/common", + "$flutter_root/flow", + "$flutter_root/glue", + "$flutter_root/shell/common", + "$flutter_root/synchronization", "//garnet/public/lib/fxl", "//third_party/skia", "//third_party/skia:gpu", ] + public_configs = [ + "$flutter_root:config", + ] + if (shell_enable_vulkan) { - deps += [ "//flutter/vulkan" ] + deps += [ "$flutter_root/vulkan" ] } } diff --git a/engine/src/flutter/shell/platform/android/BUILD.gn b/engine/src/flutter/shell/platform/android/BUILD.gn index dcea867e9a..517b2a5e4a 100644 --- a/engine/src/flutter/shell/platform/android/BUILD.gn +++ b/engine/src/flutter/shell/platform/android/BUILD.gn @@ -2,8 +2,8 @@ # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. -import("//flutter/common/config.gni") -import("//flutter/shell/config.gni") +import("$flutter_root/common/config.gni") +import("$flutter_root/shell/config.gni") import("//build/config/android/config.gni") import("//build/config/android/rules.gni") @@ -37,13 +37,13 @@ shared_library("flutter_shell_native") { ] deps = [ - "//flutter/common", - "//flutter/flow", - "//flutter/fml", - "//flutter/lib/ui", - "//flutter/runtime", - "//flutter/shell/common", - "//flutter/shell/gpu", + "$flutter_root/common", + "$flutter_root/flow", + "$flutter_root/fml", + "$flutter_root/lib/ui", + "$flutter_root/runtime", + "$flutter_root/shell/common", + "$flutter_root/shell/gpu", "//garnet/public/lib/fxl", "//third_party/skia", ] @@ -53,6 +53,10 @@ shared_library("flutter_shell_native") { deps += [ "//dart/runtime:libdart_precompiled_runtime" ] } + public_configs = [ + "$flutter_root:config", + ] + defines = [] if (shell_enable_vulkan) { @@ -61,7 +65,7 @@ shared_library("flutter_shell_native") { "android_surface_vulkan.h", ] - deps += [ "//flutter/vulkan" ] + deps += [ "$flutter_root/vulkan" ] defines += [ "SHELL_ENABLE_VULKAN" ] } diff --git a/engine/src/flutter/shell/platform/darwin/BUILD.gn b/engine/src/flutter/shell/platform/darwin/BUILD.gn index 63409c8e66..2a998e873f 100644 --- a/engine/src/flutter/shell/platform/darwin/BUILD.gn +++ b/engine/src/flutter/shell/platform/darwin/BUILD.gn @@ -39,17 +39,21 @@ source_set("flutter_channels") { set_sources_assignment_filter(sources_assignment_filter) deps = [ - "//flutter/common", - "//flutter/flow", - "//flutter/fml", - "//flutter/runtime", - "//flutter/shell/common", - "//flutter/shell/gpu", - "//flutter/shell/testing", - "//flutter/sky/engine/wtf", + "$flutter_root/common", + "$flutter_root/flow", + "$flutter_root/fml", + "$flutter_root/runtime", + "$flutter_root/shell/common", + "$flutter_root/shell/gpu", + "$flutter_root/shell/testing", + "$flutter_root/sky/engine/wtf", "//garnet/public/lib/fxl", "//third_party/skia", ] + + public_configs = [ + "$flutter_root:config", + ] } executable("flutter_channels_unittests") { @@ -65,6 +69,6 @@ executable("flutter_channels_unittests") { deps = [ ":flutter_channels", "//dart/runtime:libdart_jit", - "//flutter/testing", + "$flutter_root/testing", ] } diff --git a/engine/src/flutter/shell/platform/darwin/common/BUILD.gn b/engine/src/flutter/shell/platform/darwin/common/BUILD.gn index cda4ae6fbf..e7fd3c2328 100644 --- a/engine/src/flutter/shell/platform/darwin/common/BUILD.gn +++ b/engine/src/flutter/shell/platform/darwin/common/BUILD.gn @@ -18,15 +18,19 @@ source_set("common") { deps = [ "//dart/runtime:dart_api", - "//flutter/common", - "//flutter/flow", - "//flutter/fml", - "//flutter/runtime", - "//flutter/shell/common", - "//flutter/shell/gpu", - "//flutter/shell/testing", - "//flutter/sky/engine/wtf", + "$flutter_root/common", + "$flutter_root/flow", + "$flutter_root/fml", + "$flutter_root/runtime", + "$flutter_root/shell/common", + "$flutter_root/shell/gpu", + "$flutter_root/shell/testing", + "$flutter_root/sky/engine/wtf", "//garnet/public/lib/fxl", "//third_party/skia", ] + + public_configs = [ + "$flutter_root:config", + ] } diff --git a/engine/src/flutter/shell/platform/darwin/desktop/BUILD.gn b/engine/src/flutter/shell/platform/darwin/desktop/BUILD.gn index bf3371da55..ce56ba4d13 100644 --- a/engine/src/flutter/shell/platform/darwin/desktop/BUILD.gn +++ b/engine/src/flutter/shell/platform/darwin/desktop/BUILD.gn @@ -23,16 +23,20 @@ source_set("mac_desktop_platform") { deps = [ "//dart/runtime:libdart_jit", - "//flutter/common", - "//flutter/fml", - "//flutter/shell/common", - "//flutter/shell/gpu", - "//flutter/shell/platform/darwin/common", - "//flutter/shell/testing", - "//flutter/synchronization", + "$flutter_root/common", + "$flutter_root/fml", + "$flutter_root/shell/common", + "$flutter_root/shell/gpu", + "$flutter_root/shell/platform/darwin/common", + "$flutter_root/shell/testing", + "$flutter_root/synchronization", "//garnet/public/lib/fxl", "//third_party/skia", ] + + public_configs = [ + "$flutter_root:config", + ] } executable("shell_standalone") { diff --git a/engine/src/flutter/shell/platform/darwin/ios/BUILD.gn b/engine/src/flutter/shell/platform/darwin/ios/BUILD.gn index 5fd71c72b7..a0793fc6f6 100644 --- a/engine/src/flutter/shell/platform/darwin/ios/BUILD.gn +++ b/engine/src/flutter/shell/platform/darwin/ios/BUILD.gn @@ -4,7 +4,7 @@ assert(is_ios) -import("//flutter/common/config.gni") +import("$flutter_root/common/config.gni") import("//build/config/ios/ios_sdk.gni") _flutter_framework_dir = "$root_out_dir/Flutter.framework" @@ -66,15 +66,15 @@ shared_library("flutter_framework_dylib") { ] deps = [ - "//flutter/flow", - "//flutter/fml", - "//flutter/glue", - "//flutter/lib/ui", - "//flutter/shell/common", - "//flutter/shell/gpu", - "//flutter/shell/platform/darwin/common", - "//flutter/sky/engine/platform", - "//flutter/sky/engine/wtf", + "$flutter_root/flow", + "$flutter_root/fml", + "$flutter_root/glue", + "$flutter_root/lib/ui", + "$flutter_root/shell/common", + "$flutter_root/shell/gpu", + "$flutter_root/shell/platform/darwin/common", + "$flutter_root/sky/engine/platform", + "$flutter_root/sky/engine/wtf", "//garnet/public/lib/fxl", "//third_party/skia", ] @@ -84,6 +84,10 @@ shared_library("flutter_framework_dylib") { deps += [ "//dart/runtime:libdart_precompiled_runtime" ] } + public_configs = [ + "$flutter_root:config", + ] + defines = [ "FLUTTER_FRAMEWORK" ] libs = [ @@ -112,7 +116,7 @@ copy("framework_dylib") { action("framework_install_name") { visibility = [ ":*" ] stamp_file = "$root_out_dir/flutter_install_name_stamp" - script = "//flutter/sky/tools/change_install_name.py" + script = "$flutter_root/sky/tools/change_install_name.py" inputs = [ "$_flutter_framework_dir/Flutter", diff --git a/engine/src/flutter/shell/platform/embedder/BUILD.gn b/engine/src/flutter/shell/platform/embedder/BUILD.gn index a039d8c573..d58740f628 100644 --- a/engine/src/flutter/shell/platform/embedder/BUILD.gn +++ b/engine/src/flutter/shell/platform/embedder/BUILD.gn @@ -14,18 +14,26 @@ source_set("embedder") { deps = [ "//dart/runtime:libdart_jit", "//dart/runtime/bin:embedded_dart_io", - "//flutter/common", - "//flutter/fml", - "//flutter/shell/common", - "//flutter/shell/gpu", + "$flutter_root/common", + "$flutter_root/fml", + "$flutter_root/shell/common", + "$flutter_root/shell/gpu", "//garnet/public/lib/fxl", "//third_party/skia", "//topaz/lib/tonic", ] + + public_configs = [ + "$flutter_root:config", + ] } shared_library("flutter_engine") { deps = [ ":embedder", ] + + public_configs = [ + "$flutter_root:config", + ] } diff --git a/engine/src/flutter/shell/platform/linux/BUILD.gn b/engine/src/flutter/shell/platform/linux/BUILD.gn index 52ab272d5c..c00053f8e5 100644 --- a/engine/src/flutter/shell/platform/linux/BUILD.gn +++ b/engine/src/flutter/shell/platform/linux/BUILD.gn @@ -12,10 +12,10 @@ executable("linux") { deps = [ "//dart/runtime:libdart_jit", "//dart/runtime/bin:embedded_dart_io", - "//flutter/common", - "//flutter/fml", - "//flutter/shell/common", - "//flutter/shell/testing", + "$flutter_root/common", + "$flutter_root/fml", + "$flutter_root/shell/common", + "$flutter_root/shell/testing", "//garnet/public/lib/fxl", "//third_party/skia", "//topaz/lib/tonic", diff --git a/engine/src/flutter/shell/testing/BUILD.gn b/engine/src/flutter/shell/testing/BUILD.gn index 768166cf7f..659c241cc4 100644 --- a/engine/src/flutter/shell/testing/BUILD.gn +++ b/engine/src/flutter/shell/testing/BUILD.gn @@ -13,9 +13,13 @@ source_set("testing") { ] deps = [ - "//flutter/common", - "//flutter/shell/common", + "$flutter_root/common", + "$flutter_root/shell/common", "//garnet/public/lib/fxl", "//third_party/skia", ] + + public_configs = [ + "$flutter_root:config", + ] } diff --git a/engine/src/flutter/sky/BUILD.gn b/engine/src/flutter/sky/BUILD.gn index ab016ebf33..6604545140 100644 --- a/engine/src/flutter/sky/BUILD.gn +++ b/engine/src/flutter/sky/BUILD.gn @@ -6,10 +6,10 @@ group("sky") { testonly = true deps = [ - "//flutter/sky/packages", + "$flutter_root/sky/packages", ] if (!is_fuchsia) { - deps += [ "//flutter/shell" ] + deps += [ "$flutter_root/shell" ] } } diff --git a/engine/src/flutter/sky/dist/BUILD.gn b/engine/src/flutter/sky/dist/BUILD.gn index 45cd9e6ec3..a7068e32ab 100644 --- a/engine/src/flutter/sky/dist/BUILD.gn +++ b/engine/src/flutter/sky/dist/BUILD.gn @@ -4,9 +4,9 @@ if (is_android) { action("flutter_services") { - script = "//flutter/sky/tools/dist_dart_pkg.py" + script = "$flutter_root/sky/tools/dist_dart_pkg.py" - source = "//flutter/sky/packages/flutter_services" + source = "$flutter_root/sky/packages/flutter_services" dest = "$root_build_dir/dist/packages/flutter_services" inputs = [ @@ -24,11 +24,11 @@ if (is_android) { ] deps = [ - "//flutter/sky/packages/flutter_services", + "$flutter_root/sky/packages/flutter_services", ] } action("sky_engine") { - script = "//flutter/sky/tools/dist_dart_pkg.py" + script = "$flutter_root/sky/tools/dist_dart_pkg.py" source = "$root_gen_dir/dart-pkg/sky_engine" dest = "$root_build_dir/dist/packages/sky_engine" @@ -48,13 +48,13 @@ if (is_android) { ] deps = [ - "//flutter/sky/packages/sky_engine", - "//flutter/sky/packages/sky_engine:sky_engine_pkg_helper", + "$flutter_root/sky/packages/sky_engine", + "$flutter_root/sky/packages/sky_engine:sky_engine_pkg_helper", ] } action("sky_services") { - script = "//flutter/sky/tools/dist_dart_pkg.py" + script = "$flutter_root/sky/tools/dist_dart_pkg.py" source = "$root_gen_dir/dart-pkg/sky_services" dest = "$root_build_dir/dist/packages/sky_services" @@ -74,8 +74,8 @@ if (is_android) { ] deps = [ - "//flutter/sky/packages/sky_services", - "//flutter/sky/packages/sky_services:sky_services_pkg_helper", + "$flutter_root/sky/packages/sky_services", + "$flutter_root/sky/packages/sky_services:sky_services_pkg_helper", ] } } diff --git a/engine/src/flutter/sky/packages/BUILD.gn b/engine/src/flutter/sky/packages/BUILD.gn index 99236eaddc..f9dd45cd92 100644 --- a/engine/src/flutter/sky/packages/BUILD.gn +++ b/engine/src/flutter/sky/packages/BUILD.gn @@ -6,8 +6,8 @@ group("packages") { testonly = true deps = [ - "//flutter/sky/packages/flutter_services", - "//flutter/sky/packages/sky_engine", - "//flutter/sky/packages/sky_services", + "$flutter_root/sky/packages/flutter_services", + "$flutter_root/sky/packages/sky_engine", + "$flutter_root/sky/packages/sky_services", ] } diff --git a/engine/src/flutter/sky/packages/flutter_services/BUILD.gn b/engine/src/flutter/sky/packages/flutter_services/BUILD.gn index ec5a29c403..f326037901 100644 --- a/engine/src/flutter/sky/packages/flutter_services/BUILD.gn +++ b/engine/src/flutter/sky/packages/flutter_services/BUILD.gn @@ -4,6 +4,6 @@ group("flutter_services") { deps = [ - "//flutter/sky/packages/sky_services", + "$flutter_root/sky/packages/sky_services", ] } diff --git a/engine/src/flutter/sky/packages/sky_engine/BUILD.gn b/engine/src/flutter/sky/packages/sky_engine/BUILD.gn index 2243e0f99c..b2c91bb3fd 100644 --- a/engine/src/flutter/sky/packages/sky_engine/BUILD.gn +++ b/engine/src/flutter/sky/packages/sky_engine/BUILD.gn @@ -14,9 +14,9 @@ import("//dart/sdk/lib/isolate/isolate_sources.gni") import("//dart/sdk/lib/math/math_sources.gni") import("//dart/sdk/lib/typed_data/typed_data_sources.gni") -import("//flutter/build/dart/rules.gni") -import("//flutter/lib/ui/dart_ui.gni") -import("//flutter/sky/engine/core/core.gni") +import("$flutter_root/build/dart/rules.gni") +import("$flutter_root/lib/ui/dart_ui.gni") +import("$flutter_root/sky/engine/core/core.gni") if (!is_fuchsia) { copy("copy_sky_engine_authors") { diff --git a/engine/src/flutter/sky/packages/sky_services/BUILD.gn b/engine/src/flutter/sky/packages/sky_services/BUILD.gn index 0688479a11..44132cc252 100644 --- a/engine/src/flutter/sky/packages/sky_services/BUILD.gn +++ b/engine/src/flutter/sky/packages/sky_services/BUILD.gn @@ -2,7 +2,7 @@ # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. -import("//flutter/build/dart/rules.gni") +import("$flutter_root/build/dart/rules.gni") if (!is_fuchsia) { copy("copy_sky_services_license") { diff --git a/engine/src/flutter/synchronization/BUILD.gn b/engine/src/flutter/synchronization/BUILD.gn index 82bee1c2b5..1615e3b236 100644 --- a/engine/src/flutter/synchronization/BUILD.gn +++ b/engine/src/flutter/synchronization/BUILD.gn @@ -11,8 +11,12 @@ source_set("synchronization") { "semaphore.h", ] + public_configs = [ + "$flutter_root:config", + ] + public_deps = [ - "//flutter/glue", + "$flutter_root/glue", "//garnet/public/lib/fxl", ] } @@ -26,7 +30,7 @@ executable("synchronization_unittests") { deps = [ ":synchronization", - "//flutter/testing", + "$flutter_root/testing", "//dart/runtime:libdart_jit", ] } diff --git a/engine/src/flutter/testing/BUILD.gn b/engine/src/flutter/testing/BUILD.gn index 0740ad4387..f95b9d6850 100644 --- a/engine/src/flutter/testing/BUILD.gn +++ b/engine/src/flutter/testing/BUILD.gn @@ -6,10 +6,14 @@ source_set("testing") { testonly = true sources = [ - "//flutter/testing/run_all_unittests.cc", + "$flutter_root/testing/run_all_unittests.cc", ] public_deps = [ "//third_party/gtest", ] + + public_configs = [ + "$flutter_root:config", + ] } diff --git a/engine/src/flutter/third_party/txt/BUILD.gn b/engine/src/flutter/third_party/txt/BUILD.gn index eed185baf2..88b2354cf7 100644 --- a/engine/src/flutter/third_party/txt/BUILD.gn +++ b/engine/src/flutter/third_party/txt/BUILD.gn @@ -128,7 +128,7 @@ source_set("txt") { txt_common_executable_deps = [ "//dart/runtime:libdart_jit", # For logging. - "//flutter/fml", # For ICU initialization. + "$flutter_root/fml", # For ICU initialization. ] executable("txt_unittests") { diff --git a/engine/src/flutter/vulkan/BUILD.gn b/engine/src/flutter/vulkan/BUILD.gn index 1f69c32f18..1ab1cffcee 100644 --- a/engine/src/flutter/vulkan/BUILD.gn +++ b/engine/src/flutter/vulkan/BUILD.gn @@ -65,6 +65,7 @@ source_set("vulkan") { public_configs = [ ":vulkan_config", + "$flutter_root:config", "//third_party/skia:skia_private", ] }