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 import("../../mojo_sdk.gni") | 5 import("../../mojo_sdk.gni") |
6 | 6 |
7 # Depend on this target to use the types etc defined in the system without | 7 # Depend on this target to use the types etc defined in the system without |
8 # linking against a specific implementation of the system. To link against a | 8 # linking against a specific implementation of the system. To link against a |
9 # particular implementation, use the :for_component or | 9 # particular implementation, use the :for_component or |
10 # :for_shared_library targets, depending on the type of target you are. | 10 # :for_shared_library targets, depending on the type of target you are. |
11 mojo_sdk_source_set("system") { | 11 mojo_sdk_source_set("system") { |
12 sources = [ | 12 sources = [ |
13 "buffer.h", | 13 "buffer.h", |
14 "core.h", | 14 "core.h", |
15 "data_pipe.h", | 15 "data_pipe.h", |
16 "functions.h", | 16 "functions.h", |
17 "macros.h", | 17 "macros.h", |
18 "message_pipe.h", | 18 "message_pipe.h", |
19 "system_export.h", | |
20 "types.h", | 19 "types.h", |
21 ] | 20 ] |
22 } | 21 } |
23 | 22 |
24 # In an is_component_build build, everything can link against //mojo/edk/system | 23 # In an is_component_build build, everything can link against //mojo/edk/system |
25 # because it is built as a shared library. However, in a static build, | 24 # because it is built as a shared library. However, in a static build, |
26 # //mojo/edk/system is linked into an executable (e.g., mojo_shell), and must be | 25 # //mojo/edk/system is linked into an executable (e.g., mojo_shell), and must be |
27 # injected into other shared libraries (i.e., Mojo Apps) that need the mojo | 26 # injected into other shared libraries (i.e., Mojo Apps) that need the mojo |
28 # system API. | 27 # system API. |
29 # | 28 # |
(...skipping 16 matching lines...) Expand all Loading... |
46 group("for_component") { | 45 group("for_component") { |
47 public_deps = [ | 46 public_deps = [ |
48 ":system", | 47 ":system", |
49 ] | 48 ] |
50 if (is_component_build) { | 49 if (is_component_build) { |
51 deps = [ | 50 deps = [ |
52 "../../../edk/system", | 51 "../../../edk/system", |
53 ] | 52 ] |
54 } | 53 } |
55 } | 54 } |
OLD | NEW |