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