| 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 20 matching lines...) Expand all Loading... |
| 31 # | 31 # |
| 32 # For shared_library targets (e.g., a Mojo App), add | 32 # For shared_library targets (e.g., a Mojo App), add |
| 33 # //mojo/public/c/system:for_shared_library to your deps | 33 # //mojo/public/c/system:for_shared_library to your deps |
| 34 | 34 |
| 35 group("for_shared_library") { | 35 group("for_shared_library") { |
| 36 public_deps = [ | 36 public_deps = [ |
| 37 ":system", | 37 ":system", |
| 38 ] | 38 ] |
| 39 if (is_component_build) { | 39 if (is_component_build) { |
| 40 deps = [ | 40 deps = [ |
| 41 "//third_party/mojo/src/mojo/edk/system", | 41 "//mojo/edk/system", |
| 42 ] | 42 ] |
| 43 } else { | 43 } else { |
| 44 deps = [ | 44 deps = [ |
| 45 "../../platform/native:system", | 45 "../../platform/native:system", |
| 46 ] | 46 ] |
| 47 } | 47 } |
| 48 } | 48 } |
| 49 | 49 |
| 50 group("for_component") { | 50 group("for_component") { |
| 51 public_deps = [ | 51 public_deps = [ |
| 52 ":system", | 52 ":system", |
| 53 ] | 53 ] |
| 54 if (is_component_build) { | 54 if (is_component_build) { |
| 55 deps = [ | 55 deps = [ |
| 56 "//third_party/mojo/src/mojo/edk/system", | 56 "//mojo/edk/system", |
| 57 ] | 57 ] |
| 58 } | 58 } |
| 59 } | 59 } |
| OLD | NEW |