Skip to content
This repository was archived by the owner on Feb 25, 2025. It is now read-only.

Commit a44662c

Browse files
committed
Extract FML command_line target
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/flutter#81756
1 parent 73aaeea commit a44662c

File tree

1 file changed

+16
-3
lines changed

1 file changed

+16
-3
lines changed

fml/BUILD.gn

Lines changed: 16 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,9 @@ source_set("fml") {
9694
sources += [ "backtrace_stub.cc" ]
9795
}
9896

99-
public_deps = []
97+
public_deps = [
98+
":command_line",
99+
]
100100

101101
deps = [
102102
"//third_party/dart/runtime:dart_api",
@@ -224,6 +224,19 @@ source_set("fml") {
224224
}
225225
}
226226

227+
source_set("command_line") {
228+
sources = [
229+
"command_line.cc",
230+
"command_line.h",
231+
]
232+
233+
public_configs = [
234+
"//flutter:config",
235+
"//flutter/common:flutter_config",
236+
]
237+
}
238+
239+
227240
if (enable_unittests) {
228241
test_fixtures("fml_fixtures") {
229242
fixtures = []

0 commit comments

Comments
 (0)