OLD | NEW |
1 # Copyright 2014 The Chromium Authors. All rights reserved. | 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 | 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 # Depend on this target to use the types etc defined in the system without | 5 # Depend on this target to use the types etc defined in the system without |
6 # linking against a specific implementation of the system. To link against a | 6 # linking against a specific implementation of the system. To link against a |
7 # particular implementation, use the :for_component or | 7 # particular implementation, use the :for_component or |
8 # :for_shared_library targets, depending on the type of target you are. | 8 # :for_shared_library targets, depending on the type of target you are. |
9 source_set("system") { | 9 source_set("system") { |
10 sources = [ | 10 sources = [ |
(...skipping 14 matching lines...) Expand all Loading... |
25 # injected into other shared libraries (i.e., Mojo Apps) that need the mojo | 25 # injected into other shared libraries (i.e., Mojo Apps) that need the mojo |
26 # system API. | 26 # system API. |
27 # | 27 # |
28 # For component targets, add //mojo/public/c/system:for_component to your deps | 28 # For component targets, add //mojo/public/c/system:for_component to your deps |
29 # section. | 29 # section. |
30 # | 30 # |
31 # For shared_library targets (e.g., a Mojo App), add | 31 # For shared_library targets (e.g., a Mojo App), add |
32 # //mojo/public/c/system:for_shared_library to your deps | 32 # //mojo/public/c/system:for_shared_library to your deps |
33 | 33 |
34 group("for_shared_library") { | 34 group("for_shared_library") { |
35 public_deps = [ ":system" ] | 35 public_deps = [ |
| 36 ":system", |
| 37 ] |
36 if (is_component_build) { | 38 if (is_component_build) { |
37 deps = [ "//mojo/edk/system" ] | 39 deps = [ |
| 40 "//mojo/edk/system", |
| 41 ] |
38 } else { | 42 } else { |
39 deps = [ "//mojo/public/platform/native:system_thunks" ] | 43 deps = [ |
| 44 "//mojo/public/platform/native:system_thunks", |
| 45 ] |
40 } | 46 } |
41 } | 47 } |
42 | 48 |
43 group("for_component") { | 49 group("for_component") { |
44 public_deps = [ ":system" ] | 50 public_deps = [ |
| 51 ":system", |
| 52 ] |
45 if (is_component_build) { | 53 if (is_component_build) { |
46 deps = [ "//mojo/edk/system" ] | 54 deps = [ |
| 55 "//mojo/edk/system", |
| 56 ] |
47 } | 57 } |
48 } | 58 } |
OLD | NEW |