| Index: mojo/dart/dart_snapshotter/BUILD.gn
|
| diff --git a/mojo/dart/dart_snapshotter/BUILD.gn b/mojo/dart/dart_snapshotter/BUILD.gn
|
| index 4174569a113ea5100e039147111b8fba00463af1..fe012032a1f0d22cf0dd3a6a4a6acbbb9c09b521 100644
|
| --- a/mojo/dart/dart_snapshotter/BUILD.gn
|
| +++ b/mojo/dart/dart_snapshotter/BUILD.gn
|
| @@ -2,26 +2,30 @@
|
| # Use of this source code is governed by a BSD-style license that can be
|
| # found in the LICENSE file.
|
|
|
| -executable("dart_snapshotter") {
|
| - sources = [
|
| - "main.cc",
|
| - "vm.cc",
|
| - "vm.h",
|
| - ]
|
| +import("//mojo/public/mojo.gni")
|
|
|
| - deps = [
|
| - "//base",
|
| - "//build/config/sanitizers:deps",
|
| - "//dart/runtime/vm:libdart_platform",
|
| - "//dart/runtime:libdart",
|
| - "//mojo/common",
|
| - "//mojo/dart/embedder:dart_snapshot_cc",
|
| - "//mojo/edk/system",
|
| - "//mojo/environment:chromium",
|
| - "//mojo/public/cpp/system",
|
| - "//mojo/public/cpp/utility",
|
| - "//mojo/public/interfaces/application",
|
| - "//third_party/zlib",
|
| - "//tonic",
|
| - ]
|
| +if (!mojo_use_prebuilt_dart_snapshotter) {
|
| + executable("dart_snapshotter") {
|
| + sources = [
|
| + "main.cc",
|
| + "vm.cc",
|
| + "vm.h",
|
| + ]
|
| +
|
| + deps = [
|
| + "//base",
|
| + "//build/config/sanitizers:deps",
|
| + "//dart/runtime/vm:libdart_platform",
|
| + "//dart/runtime:libdart",
|
| + "//mojo/common",
|
| + "//mojo/dart/embedder:dart_snapshot_cc",
|
| + "//mojo/edk/system",
|
| + "//mojo/environment:chromium",
|
| + "//mojo/public/cpp/system",
|
| + "//mojo/public/cpp/utility",
|
| + "//mojo/public/interfaces/application",
|
| + "//third_party/zlib",
|
| + "//tonic",
|
| + ]
|
| + }
|
| }
|
|
|