From cf3cbfb7affc3a12c0731456169e04d23648485e Mon Sep 17 00:00:00 2001 From: Chinmay Garde Date: Fri, 26 Aug 2016 11:47:50 -0700 Subject: [PATCH] =?UTF-8?q?Don=E2=80=99t=20depend=20on=20tonic/debugger=20?= =?UTF-8?q?in=20release=20since=20the=20Dart=20debugger=20is=20unavailable?= =?UTF-8?q?=20in=20product=20mode.=20(#2972)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- runtime/BUILD.gn | 7 ++++++- sky/engine/core/BUILD.gn | 7 ++++++- 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/runtime/BUILD.gn b/runtime/BUILD.gn index 4286fceb9..bf90bece9 100644 --- a/runtime/BUILD.gn +++ b/runtime/BUILD.gn @@ -70,10 +70,15 @@ source_set("runtime") { "//flutter/skia", "//lib/ftl", "//lib/tonic", - "//lib/tonic/debugger", "//mojo/public/platform/dart:mojo_internal_impl", ] + if (flutter_runtime_mode != "release") { + deps += [ + "//lib/tonic/debugger", + ] + } + if (is_android) { deps += [ "//flutter/lib/jni", diff --git a/sky/engine/core/BUILD.gn b/sky/engine/core/BUILD.gn index 4e06cd0aa..3cd166bd9 100644 --- a/sky/engine/core/BUILD.gn +++ b/sky/engine/core/BUILD.gn @@ -16,7 +16,6 @@ source_set("libraries") { "//flutter/sky/engine/wtf", "//lib/ftl", "//lib/tonic", - "//lib/tonic/debugger", "//mojo/application", "//mojo/data_pipe_utils", "//mojo/public/c/system", @@ -31,6 +30,12 @@ source_set("libraries") { "//third_party/zlib", ] + if (flutter_runtime_mode != "release") { + public_deps += [ + "//lib/tonic/debugger", + ] + } + if (is_android) { public_deps += [ "//flutter/lib/jni",