mirror of
https://github.com/flutter/flutter.git
synced 2026-02-20 02:29:02 +08:00
It speeds up local development workflow when doing changes to the front end when ninja automatically rebuilds the frontend_server.dart.snapshot.
20 lines
715 B
Plaintext
20 lines
715 B
Plaintext
# Copyright 2017 The Chromium Authors. All rights reserved.
|
|
# Use of this source code is governed by a BSD-style license that can be
|
|
# found in the LICENSE file.
|
|
|
|
import("//third_party/dart/utils/application_snapshot.gni")
|
|
|
|
application_snapshot("frontend_server") {
|
|
main_dart = "bin/starter.dart"
|
|
dot_packages = rebase_path(".packages")
|
|
training_args = [ "--train" ]
|
|
|
|
frontend_server_files = exec_script("//third_party/dart/tools/list_dart_files.py",
|
|
[ "absolute", rebase_path("."), ], "list lines")
|
|
|
|
frontend_server_files += exec_script("//third_party/dart/tools/list_dart_files.py",
|
|
[ "absolute", rebase_path("../../third_party/dart/pkg"), ], "list lines")
|
|
|
|
inputs = frontend_server_files
|
|
}
|