OLD | NEW |
| (Empty) |
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 | |
3 # found in the LICENSE file. | |
4 | |
5 import("../../mojo_sdk.gni") | |
6 | |
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 | |
9 # particular implementation, use the :for_component or | |
10 # :for_shared_library targets, depending on the type of target you are. | |
11 mojo_sdk_source_set("system") { | |
12 sources = [ | |
13 "buffer.h", | |
14 "core.h", | |
15 "data_pipe.h", | |
16 "functions.h", | |
17 "macros.h", | |
18 "message_pipe.h", | |
19 "system_export.h", | |
20 "types.h", | |
21 ] | |
22 } | |
23 | |
24 # 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 # //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 # system API. | |
29 # | |
30 # For component targets, add //mojo/public/c/system:for_component to your deps | |
31 # section. | |
32 # | |
33 # For shared_library targets (e.g., a Mojo App), add | |
34 # //mojo/public/c/system:for_shared_library to your deps | |
35 | |
36 # TODO(jamesr): Eliminate the need for these targets. crbug.com/438701 | |
37 group("for_shared_library") { | |
38 public_deps = [ | |
39 ":system", | |
40 ] | |
41 deps = [ | |
42 "../../platform/native:system", | |
43 ] | |
44 } | |
45 | |
46 group("for_component") { | |
47 public_deps = [ | |
48 ":system", | |
49 ] | |
50 if (is_component_build) { | |
51 deps = [ | |
52 "../../../edk/system", | |
53 ] | |
54 } | |
55 } | |
OLD | NEW |