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", | 19 "system_export.h", |
20 "types.h", | 20 "types.h", |
21 "wait_set.h", | |
Ken Rockot(use gerrit already)
2015/11/17 01:50:23
Might as well update GYP too (third_party/mojo/moj
Anand Mistry (off Chromium)
2015/11/17 03:11:32
Done.
| |
21 ] | 22 ] |
22 } | 23 } |
23 | 24 |
24 # In an is_component_build build, everything can link against //mojo/edk/system | 25 # 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, | 26 # 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 | 27 # //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 | 28 # injected into other shared libraries (i.e., Mojo Apps) that need the mojo |
28 # system API. | 29 # system API. |
29 # | 30 # |
30 # For component targets, add //mojo/public/c/system:for_component to your deps | 31 # For component targets, add //mojo/public/c/system:for_component to your deps |
(...skipping 20 matching lines...) Expand all Loading... | |
51 group("for_component") { | 52 group("for_component") { |
52 public_deps = [ | 53 public_deps = [ |
53 ":system", | 54 ":system", |
54 ] | 55 ] |
55 if (is_component_build) { | 56 if (is_component_build) { |
56 deps = [ | 57 deps = [ |
57 "../../../edk/system", | 58 "../../../edk/system", |
58 ] | 59 ] |
59 } | 60 } |
60 } | 61 } |
OLD | NEW |