From 3d73e06855cfbf75ba65f5fc84ea5526b965122e Mon Sep 17 00:00:00 2001 From: Chris Bracken Date: Fri, 7 May 2021 23:12:34 -0700 Subject: [PATCH] Extract FML command_line target (#26028) Command-line argument parsing is valuable even in the absence of the rest of FML's functionality. This is pre-factoring for uwptool, which adds an adb-like helper tool for install, uninstall, and launch of UWP applications for Windows platforms. See: https://github.com/flutter/flutter/issues/81756 --- fml/BUILD.gn | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) diff --git a/fml/BUILD.gn b/fml/BUILD.gn index 3a720fae2f..a8d1e69945 100644 --- a/fml/BUILD.gn +++ b/fml/BUILD.gn @@ -15,8 +15,6 @@ source_set("fml") { "base32.h", "build_config.h", "closure.h", - "command_line.cc", - "command_line.h", "compiler_specific.h", "concurrent_message_loop.cc", "concurrent_message_loop.h", @@ -96,7 +94,7 @@ source_set("fml") { sources += [ "backtrace_stub.cc" ] } - public_deps = [] + public_deps = [ ":command_line" ] deps = [ "//third_party/dart/runtime:dart_api", @@ -224,6 +222,18 @@ source_set("fml") { } } +source_set("command_line") { + sources = [ + "command_line.cc", + "command_line.h", + ] + + public_configs = [ + "//flutter:config", + "//flutter/common:flutter_config", + ] +} + if (enable_unittests) { test_fixtures("fml_fixtures") { fixtures = [] -- GitLab