| OLD | NEW |
| 1 # Copyright 2015 The Chromium Authors. All rights reserved. | 1 # Copyright 2015 The Chromium Authors. All rights reserved. |
| 2 # Use of this source code is governed by a BSD-style license that can be | 2 # Use of this source code is governed by a BSD-style license that can be |
| 3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
| 4 | 4 |
| 5 # In an is_component_build build, everything can link against //mojo/gles2 | 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, | 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 | 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 | 8 # injected into other shared libraries (i.e., Mojo Apps) that need the mojo |
| 9 # gles2 API. | 9 # gles2 API. |
| 10 # | 10 # |
| 11 # For component targets, add //mojo/public/gles2:for_component to your deps | 11 # For component targets, add //mojo/public/gles2:for_component to your deps |
| 12 # section. | 12 # section. |
| 13 # | 13 # |
| 14 # For shared_library targets (e.g., a Mojo App), add | 14 # For shared_library targets (e.g., a Mojo App), add |
| 15 # //mojo/public/gles2:for_shared_library to your deps | 15 # //mojo/public/gles2:for_shared_library to your deps |
| 16 | 16 |
| 17 group("for_shared_library") { | 17 group("for_shared_library") { |
| 18 public_configs = [ "//third_party/khronos:khronos_headers" ] | 18 public_configs = [ "//third_party/khronos:khronos_headers" ] |
| 19 public_deps = [ | 19 public_deps = [ |
| 20 "//third_party/mojo/src/mojo/public/c/gles2", | 20 "//mojo/public/c/gles2", |
| 21 ] | 21 ] |
| 22 | 22 |
| 23 if (is_component_build) { | 23 if (is_component_build) { |
| 24 deps = [ | 24 deps = [ |
| 25 "//mojo/gles2", | 25 "//mojo/gles2", |
| 26 ] | 26 ] |
| 27 } else { | 27 } else { |
| 28 deps = [ | 28 deps = [ |
| 29 "//third_party/mojo/src/mojo/public/platform/native:gles2", | 29 "//mojo/public/platform/native:gles2", |
| 30 ] | 30 ] |
| 31 } | 31 } |
| 32 } | 32 } |
| 33 | 33 |
| 34 group("for_component") { | 34 group("for_component") { |
| 35 public_configs = [ "//third_party/khronos:khronos_headers" ] | 35 public_configs = [ "//third_party/khronos:khronos_headers" ] |
| 36 public_deps = [ | 36 public_deps = [ |
| 37 "//third_party/mojo/src/mojo/public/c/gles2", | 37 "//mojo/public/c/gles2", |
| 38 ] | 38 ] |
| 39 | 39 |
| 40 if (is_component_build) { | 40 if (is_component_build) { |
| 41 deps = [ | 41 deps = [ |
| 42 "//mojo/gles2", | 42 "//mojo/gles2", |
| 43 ] | 43 ] |
| 44 } | 44 } |
| 45 } | 45 } |
| OLD | NEW |