|
5 | 5 | import("../../build/compiled_action.gni")
|
6 | 6 | import("../../sdk/lib/_http/http_sources.gni")
|
7 | 7 | import("../../sdk/lib/io/io_sources.gni")
|
| 8 | +import("../../sdk/lib/cli/cli_sources.gni") |
8 | 9 | import("../runtime_args.gni")
|
9 | 10 | import("../vm/compiler/compiler_sources.gni")
|
10 | 11 | import("../vm/vm_sources.gni")
|
11 | 12 | import("builtin_impl_sources.gni")
|
12 | 13 | import("builtin_sources.gni")
|
13 | 14 | import("io_impl_sources.gni")
|
14 | 15 | import("io_sources.gni")
|
| 16 | +import("cli_impl_sources.gni") |
| 17 | +import("cli_sources.gni") |
15 | 18 | import("vmservice/vmservice_sources.gni")
|
16 | 19 |
|
17 | 20 | # Generate a resources.cc file for the service isolate without Observatory.
|
@@ -109,6 +112,22 @@ gen_library_src_path("generate_http_cc_file") {
|
109 | 112 | output = "$target_gen_dir/http_gen.cc"
|
110 | 113 | }
|
111 | 114 |
|
| 115 | +rebased_cli_sdk_sources = rebase_path(cli_sdk_sources, ".", "../../sdk/lib/cli") |
| 116 | + |
| 117 | +gen_library_src_path("generate_cli_cc_file") { |
| 118 | + name = "cli" |
| 119 | + kind = "source" |
| 120 | + sources = [ "../../sdk/lib/cli/cli.dart" ] + rebased_cli_sdk_sources |
| 121 | + output = "$target_gen_dir/cli_gen.cc" |
| 122 | +} |
| 123 | + |
| 124 | +gen_library_src_path("generate_cli_patch_cc_file") { |
| 125 | + name = "cli" |
| 126 | + kind = "patch" |
| 127 | + sources = cli_runtime_sources |
| 128 | + output = "$target_gen_dir/cli_patch_gen.cc" |
| 129 | +} |
| 130 | + |
112 | 131 | gen_library_src_path("generate_html_cc_file") {
|
113 | 132 | name = "html"
|
114 | 133 | kind = "source"
|
@@ -235,6 +254,8 @@ template("build_libdart_builtin") {
|
235 | 254 | public_configs = [ ":libdart_builtin_config" ]
|
236 | 255 | deps = [
|
237 | 256 | ":generate_builtin_cc_file",
|
| 257 | + ":generate_cli_cc_file", |
| 258 | + ":generate_cli_patch_cc_file", |
238 | 259 | ":generate_html_cc_file",
|
239 | 260 | ":generate_html_common_cc_file",
|
240 | 261 | ":generate_http_cc_file",
|
@@ -297,11 +318,15 @@ template("build_gen_snapshot") {
|
297 | 318 | ":generate_http_cc_file",
|
298 | 319 | ":generate_io_cc_file",
|
299 | 320 | ":generate_io_patch_cc_file",
|
| 321 | + ":generate_cli_cc_file", |
| 322 | + ":generate_cli_patch_cc_file", |
300 | 323 | ] + extra_deps
|
301 | 324 |
|
302 | 325 | sources = [
|
303 | 326 | # Include generated source files.
|
304 | 327 | "$target_gen_dir/builtin_gen.cc",
|
| 328 | + "$target_gen_dir/cli_gen.cc", |
| 329 | + "$target_gen_dir/cli_patch_gen.cc", |
305 | 330 | "$target_gen_dir/http_gen.cc",
|
306 | 331 | "$target_gen_dir/io_gen.cc",
|
307 | 332 | "$target_gen_dir/io_patch_gen.cc",
|
@@ -417,7 +442,7 @@ template("build_gen_snapshot_dart_io") {
|
417 | 442 |
|
418 | 443 | defines = [ "DART_IO_SECURE_SOCKET_DISABLED" ]
|
419 | 444 |
|
420 |
| - sources = io_impl_sources + builtin_impl_sources |
| 445 | + sources = io_impl_sources + builtin_impl_sources + cli_impl_sources |
421 | 446 | sources += [
|
422 | 447 | "io_natives.cc",
|
423 | 448 | "io_natives.h",
|
@@ -494,7 +519,7 @@ template("dart_io") {
|
494 | 519 | libs = [ "launchpad" ]
|
495 | 520 | }
|
496 | 521 |
|
497 |
| - sources = io_impl_sources + builtin_impl_sources |
| 522 | + sources = io_impl_sources + builtin_impl_sources + cli_impl_sources |
498 | 523 | sources += [
|
499 | 524 | "builtin_natives.cc",
|
500 | 525 | "io_natives.cc",
|
@@ -840,6 +865,8 @@ dart_executable("dart_bootstrap") {
|
840 | 865 | ":generate_js_util_cc_file",
|
841 | 866 | ":generate_metadata_cc_file",
|
842 | 867 | ":generate_svg_cc_file",
|
| 868 | + ":generate_cli_cc_file", |
| 869 | + ":generate_cli_patch_cc_file", |
843 | 870 | ":generate_web_audio_cc_file",
|
844 | 871 | ":generate_web_gl_cc_file",
|
845 | 872 | ":generate_web_sql_cc_file",
|
@@ -871,6 +898,8 @@ dart_executable("dart_bootstrap") {
|
871 | 898 | "$target_gen_dir/metadata_gen.cc",
|
872 | 899 | "$target_gen_dir/resources_gen.cc",
|
873 | 900 | "$target_gen_dir/svg_gen.cc",
|
| 901 | + "$target_gen_dir/cli_gen.cc", |
| 902 | + "$target_gen_dir/cli_patch_gen.cc", |
874 | 903 | "$target_gen_dir/web_audio_gen.cc",
|
875 | 904 | "$target_gen_dir/web_gl_gen.cc",
|
876 | 905 | "$target_gen_dir/web_sql_gen.cc",
|
|
0 commit comments