Commit 8cef5232 authored by P.Y. Laligand's avatar P.Y. Laligand Committed by GitHub

Use the correct set of options to analyze Flutter packages. (#9758)

This affects the Fuchsia build which will soon run analysis by default.
parent 2a2b7606
...@@ -9,6 +9,8 @@ assert(is_fuchsia) ...@@ -9,6 +9,8 @@ assert(is_fuchsia)
flutter_app("flutter_gallery") { flutter_app("flutter_gallery") {
main_dart = "lib/main.dart" main_dart = "lib/main.dart"
analysis_options = "//lib/flutter/.analysis_options"
deps = [ deps = [
"//lib/flutter/packages/flutter", "//lib/flutter/packages/flutter",
] ]
......
...@@ -7,7 +7,7 @@ import("//build/dart/dart_package.gni") ...@@ -7,7 +7,7 @@ import("//build/dart/dart_package.gni")
dart_package("flutter") { dart_package("flutter") {
package_name = "flutter" package_name = "flutter"
source_dir = "lib" analysis_options = "//lib/flutter/.analysis_options"
deps = [ deps = [
"//third_party/dart-pkg/pub/async", "//third_party/dart-pkg/pub/async",
......
...@@ -7,7 +7,7 @@ import("//build/dart/dart_package.gni") ...@@ -7,7 +7,7 @@ import("//build/dart/dart_package.gni")
dart_package("flutter_test") { dart_package("flutter_test") {
package_name = "flutter_test" package_name = "flutter_test"
source_dir = "lib" analysis_options = "//lib/flutter/.analysis_options"
deps = [ deps = [
"//lib/flutter/packages/flutter", "//lib/flutter/packages/flutter",
......
...@@ -8,7 +8,7 @@ import("//build/dart/dart_tool.gni") ...@@ -8,7 +8,7 @@ import("//build/dart/dart_tool.gni")
dart_package("flutter_tools") { dart_package("flutter_tools") {
package_name = "flutter_tools" package_name = "flutter_tools"
source_dir = "lib" analysis_options = "//lib/flutter/.analysis_options"
deps = [ deps = [
"//dart/pkg/analyzer", "//dart/pkg/analyzer",
...@@ -42,6 +42,8 @@ dart_package("flutter_tools") { ...@@ -42,6 +42,8 @@ dart_package("flutter_tools") {
dart_tool("fuchsia_builder") { dart_tool("fuchsia_builder") {
main_dart = "bin/fuchsia_builder.dart" main_dart = "bin/fuchsia_builder.dart"
analysis_options = "//lib/flutter/.analysis_options"
deps = [ deps = [
":flutter_tools", ":flutter_tools",
] ]
...@@ -50,6 +52,8 @@ dart_tool("fuchsia_builder") { ...@@ -50,6 +52,8 @@ dart_tool("fuchsia_builder") {
dart_tool("fuchsia_tester") { dart_tool("fuchsia_tester") {
main_dart = "bin/fuchsia_tester.dart" main_dart = "bin/fuchsia_tester.dart"
analysis_options = "//lib/flutter/.analysis_options"
deps = [ deps = [
":flutter_tools", ":flutter_tools",
] ]
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment