Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(343)

Side by Side Diff: mojo/public/gles2/BUILD.gn

Issue 780733002: Simplify the thunk targets since we don't support apps as components (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 6 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « mojo/public/c/gles2/BUILD.gn ('k') | mojo/public/mojo_application.gni » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 # Copyright 2014 The Chromium Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file.
4
5 # In an is_component_build build, everything can link against //mojo/gles2
6 # because it is built as a shared library. However, in a static build,
7 # //mojo/gles2 is linked into an executable (e.g., mojo_shell), and must be
8 # injected into other shared libraries (i.e., Mojo Apps) that need the mojo
9 # gles2 API.
10 #
11 # For component targets, add //mojo/public/gles2:for_component to your deps
12 # section.
13 #
14 # For shared_library targets (e.g., a Mojo App), add
15 # //mojo/public/gles2:for_shared_library to your deps
16
17 group("for_shared_library") {
18 public_configs = [ "//third_party/khronos:khronos_headers" ]
19 public_deps = [ "//mojo/public/c/gles2" ]
20
21 if (is_component_build) {
22 deps = [ "//mojo/gles2" ]
23 } else {
24 deps = [ "//mojo/public/platform/native:gles2_thunks" ]
25 }
26 }
27
28 group("for_component") {
29 public_configs = [ "//third_party/khronos:khronos_headers" ]
30 public_deps = [ "//mojo/public/c/gles2" ]
31
32 if (is_component_build) {
33 deps = [ "//mojo/gles2" ]
34 }
35 }
OLDNEW
« no previous file with comments | « mojo/public/c/gles2/BUILD.gn ('k') | mojo/public/mojo_application.gni » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698