OLD | NEW |
1 # Copyright 2015 The Chromium Authors. All rights reserved. | 1 # Copyright 2015 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 # See comments in mojo/public/c/system/BUILD.gn which this is based on. | 5 # See comments in mojo/public/c/system/BUILD.gn which this is based on. |
6 # Summary: depend on this target to use the platform handle functions without | 6 # Summary: depend on this target to use the platform handle functions without |
7 # linking against a specific implementation. | 7 # linking against a specific implementation. |
8 # For component targets, add //mojo/platform_handle:for_component to your deps | 8 # For component targets, add //mojo/platform_handle:for_component to your deps |
9 # section. | 9 # section. |
10 # For shared_library targets (e.g., a Mojo App), add | 10 # For shared_library targets (e.g., a Mojo App), add |
11 # //mojo/platform_handle:for_shared_library to your deps. | 11 # //mojo/platform_handle:for_shared_library to your deps. |
12 source_set("platform_handle") { | 12 source_set("platform_handle") { |
13 sources = [ | 13 sources = [ |
14 "platform_handle.h", | 14 "platform_handle.h", |
15 "platform_handle_functions.h", | 15 "platform_handle_functions.h", |
16 ] | 16 ] |
17 deps = [ | 17 deps = [ |
| 18 "//mojo/edk/embedder:platform", |
18 "//mojo/public/c/system", | 19 "//mojo/public/c/system", |
19 ] | 20 ] |
20 } | 21 } |
21 | 22 |
22 component("platform_handle_impl") { | 23 component("platform_handle_impl") { |
23 output_name = "platform_handle_impl" | 24 output_name = "platform_handle_impl" |
24 public_deps = [ | 25 public_deps = [ |
25 ":platform_handle", | 26 ":platform_handle", |
26 ] | 27 ] |
27 sources = [ | 28 sources = [ |
28 "platform_handle_functions.cc", | 29 "platform_handle_functions.cc", |
29 ] | 30 ] |
30 defines = [ "PLATFORM_HANDLE_IMPLEMENTATION" ] | 31 defines = [ "PLATFORM_HANDLE_IMPLEMENTATION" ] |
31 deps = [ | 32 deps = [ |
32 "//base", | 33 "//base", |
| 34 "//mojo/edk/embedder:headers", |
| 35 "//mojo/edk/embedder:platform", |
33 "//mojo/public/c/system:for_component", | 36 "//mojo/public/c/system:for_component", |
34 "//third_party/mojo/src/mojo/edk/embedder:headers", | |
35 ] | 37 ] |
36 } | 38 } |
37 | 39 |
38 source_set("platform_handle_thunks") { | 40 source_set("platform_handle_thunks") { |
39 public_deps = [ | 41 public_deps = [ |
40 ":platform_handle", | 42 ":platform_handle", |
41 ] | 43 ] |
42 sources = [ | 44 sources = [ |
43 "platform_handle_private_thunks.cc", | 45 "platform_handle_private_thunks.cc", |
44 "platform_handle_private_thunks.h", | 46 "platform_handle_private_thunks.h", |
(...skipping 22 matching lines...) Expand all Loading... |
67 group("for_component") { | 69 group("for_component") { |
68 public_deps = [ | 70 public_deps = [ |
69 ":platform_handle", | 71 ":platform_handle", |
70 ] | 72 ] |
71 if (is_component_build) { | 73 if (is_component_build) { |
72 deps = [ | 74 deps = [ |
73 ":platform_handle_impl", | 75 ":platform_handle_impl", |
74 ] | 76 ] |
75 } | 77 } |
76 } | 78 } |
OLD | NEW |