| 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 = [ |
| 11 "buffer.h", | 11 "buffer.h", |
| 12 "core.h", | 12 "core.h", |
| 13 "data_pipe.h", | 13 "data_pipe.h", |
| 14 "functions.h", | 14 "functions.h", |
| 15 "macros.h", | 15 "macros.h", |
| 16 "message_pipe.h", | 16 "message_pipe.h", |
| 17 "platform_handle.h", |
| 17 "system_export.h", | 18 "system_export.h", |
| 18 "types.h", | 19 "types.h", |
| 19 "wait_set.h", | 20 "wait_set.h", |
| 20 ] | 21 ] |
| 21 } | 22 } |
| 22 | 23 |
| 23 # In an is_component_build build, everything can link against //mojo/edk/system | 24 # In an is_component_build build, everything can link against //mojo/edk/system |
| 24 # because it is built as a shared library. However, in a static build, | 25 # because it is built as a shared library. However, in a static build, |
| 25 # //mojo/edk/system is linked into an executable (e.g., mojo_shell), and must be | 26 # //mojo/edk/system is linked into an executable (e.g., mojo_shell), and must be |
| 26 # injected into other shared libraries (i.e., Mojo Apps) that need the mojo | 27 # injected into other shared libraries (i.e., Mojo Apps) that need the mojo |
| (...skipping 23 matching lines...) Expand all Loading... |
| 50 group("for_component") { | 51 group("for_component") { |
| 51 public_deps = [ | 52 public_deps = [ |
| 52 ":system", | 53 ":system", |
| 53 ] | 54 ] |
| 54 if (is_component_build) { | 55 if (is_component_build) { |
| 55 deps = [ | 56 deps = [ |
| 56 "//mojo/edk/system", | 57 "//mojo/edk/system", |
| 57 ] | 58 ] |
| 58 } | 59 } |
| 59 } | 60 } |
| OLD | NEW |