From 154141549de3575cf23c0984de733145b6a1c0b5 Mon Sep 17 00:00:00 2001 From: James Robinson Date: Wed, 3 Dec 2014 16:25:09 -0800 Subject: [PATCH] Simplify the thunk targets since we don't support apps as components Since we don't support using the component build to produce mojo apps, we can simplify the build targets in a few ways: *) every mojo_native_application must depend on the c system thunks, so just make that part of the template instead of requiring the dep *) there's no such thing as depending on gles2 headers from a component, so delete the forwarding group. Most targets that want to use the gles2 headers in a mojo context want to depend on an implementation through the thunks, so //mojo/public/c/gles2 does just that. A smaller number of targets (such as the implementation of the thunks) want to just depend on the headers but not an impl, so they can depend on //mojo/public/c/gles2:headers. The //mojo/public/gles target isn't that useful since the only thing we expose is a set of C entry points. We can probably also simplify the c system targets, but that's trickier due to more extensive use from the chromium side. BUG=438701 R=viettrungluu@chromium.org Review URL: https://codereview.chromium.org/780733002 --- engine/src/flutter/compositor/BUILD.gn | 2 +- engine/src/flutter/tools/debugger/BUILD.gn | 1 - engine/src/flutter/tools/debugger/prompt/BUILD.gn | 1 - engine/src/flutter/tools/tester/BUILD.gn | 1 - 4 files changed, 1 insertion(+), 4 deletions(-) diff --git a/engine/src/flutter/compositor/BUILD.gn b/engine/src/flutter/compositor/BUILD.gn index 05a5620ee6..514cdcf7af 100644 --- a/engine/src/flutter/compositor/BUILD.gn +++ b/engine/src/flutter/compositor/BUILD.gn @@ -26,11 +26,11 @@ source_set("compositor") { "//mojo/converters/geometry", "//mojo/converters/surfaces", "//mojo/gpu", + "//mojo/public/c/gles2", "//mojo/public/cpp/bindings", "//mojo/public/cpp/environment", "//mojo/public/cpp/system", "//mojo/public/cpp/utility", - "//mojo/public/gles2:for_shared_library", "//mojo/public/interfaces/application", "//mojo/services/public/cpp/surfaces", "//mojo/services/public/interfaces/geometry", diff --git a/engine/src/flutter/tools/debugger/BUILD.gn b/engine/src/flutter/tools/debugger/BUILD.gn index 25a2d5c7af..41c0e3345d 100644 --- a/engine/src/flutter/tools/debugger/BUILD.gn +++ b/engine/src/flutter/tools/debugger/BUILD.gn @@ -28,7 +28,6 @@ mojo_native_application("sky_debugger") { "//mojo/application", "//mojo/converters/geometry", "//mojo/converters/input_events", - "//mojo/public/c/system:for_shared_library", "//mojo/public/cpp/bindings", "//mojo/public/cpp/utility", "//mojo/services/public/cpp/view_manager", diff --git a/engine/src/flutter/tools/debugger/prompt/BUILD.gn b/engine/src/flutter/tools/debugger/prompt/BUILD.gn index 8429d6c72f..a66d0e0cfa 100644 --- a/engine/src/flutter/tools/debugger/prompt/BUILD.gn +++ b/engine/src/flutter/tools/debugger/prompt/BUILD.gn @@ -14,7 +14,6 @@ mojo_native_application("prompt") { deps = [ "//base", "//mojo/application", - "//mojo/public/c/system:for_shared_library", "//mojo/public/cpp/bindings", "//mojo/public/cpp/utility", "//services/tracing:bindings", diff --git a/engine/src/flutter/tools/tester/BUILD.gn b/engine/src/flutter/tools/tester/BUILD.gn index d7a43f3ba1..ce1b7bfef6 100644 --- a/engine/src/flutter/tools/tester/BUILD.gn +++ b/engine/src/flutter/tools/tester/BUILD.gn @@ -20,7 +20,6 @@ mojo_native_application("tester") { "//mojo/application", "//mojo/converters/geometry", "//mojo/converters/input_events", - "//mojo/public/c/system:for_shared_library", "//mojo/public/cpp/bindings", "//mojo/public/cpp/system", "//mojo/public/cpp/utility",