Skip to content

Commit 3d73e06

Browse files
authored
Extract FML command_line target (flutter#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: flutter#81756
1 parent e229649 commit 3d73e06

File tree

1 file changed

+13
-3
lines changed

1 file changed

+13
-3
lines changed

fml/BUILD.gn

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,6 @@ source_set("fml") {
1515
"base32.h",
1616
"build_config.h",
1717
"closure.h",
18-
"command_line.cc",
19-
"command_line.h",
2018
"compiler_specific.h",
2119
"concurrent_message_loop.cc",
2220
"concurrent_message_loop.h",
@@ -96,7 +94,7 @@ source_set("fml") {
9694
sources += [ "backtrace_stub.cc" ]
9795
}
9896

99-
public_deps = []
97+
public_deps = [ ":command_line" ]
10098

10199
deps = [
102100
"//third_party/dart/runtime:dart_api",
@@ -224,6 +222,18 @@ source_set("fml") {
224222
}
225223
}
226224

225+
source_set("command_line") {
226+
sources = [
227+
"command_line.cc",
228+
"command_line.h",
229+
]
230+
231+
public_configs = [
232+
"//flutter:config",
233+
"//flutter/common:flutter_config",
234+
]
235+
}
236+
227237
if (enable_unittests) {
228238
test_fixtures("fml_fixtures") {
229239
fixtures = []

0 commit comments

Comments
 (0)