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 import("../../mojo_application.gni") |
6 | 7 |
7 mojo_sdk_source_set("system") { | 8 mojo_sdk_source_set("system") { |
8 sources = [ | 9 sources = [ |
9 "system_thunks.c", | 10 "system_thunks.c", |
10 "system_thunks.h", | 11 "system_thunks.h", |
11 ] | 12 ] |
12 mojo_sdk_deps = [ "mojo/public/c/system" ] | 13 mojo_sdk_deps = [ "mojo/public/c/system" ] |
13 | 14 |
14 # The GYP target analogous to this one builds this code into a | 15 # The GYP target analogous to this one builds this code into a |
15 # static library. When building for Android, both the GYP and GN | 16 # static library. When building for Android, both the GYP and GN |
(...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
118 } | 119 } |
119 | 120 |
120 mojo_sdk_source_set("mgl_onscreen_thunks") { | 121 mojo_sdk_source_set("mgl_onscreen_thunks") { |
121 sources = [ | 122 sources = [ |
122 "mgl_onscreen_thunks.c", | 123 "mgl_onscreen_thunks.c", |
123 "mgl_onscreen_thunks.h", | 124 "mgl_onscreen_thunks.h", |
124 ] | 125 ] |
125 | 126 |
126 mojo_sdk_deps = [ "mojo/public/c/gpu:MGL_onscreen" ] | 127 mojo_sdk_deps = [ "mojo/public/c/gpu:MGL_onscreen" ] |
127 } | 128 } |
| 129 |
| 130 mojo_sdk_source_set("platform_handle") { |
| 131 sources = [ |
| 132 "platform_handle_private_thunks.c", |
| 133 "platform_handle_private_thunks.h", |
| 134 ] |
| 135 |
| 136 mojo_sdk_deps = [ |
| 137 "mojo/public/platform/native:platform_handle_api", |
| 138 "mojo/public/c/system", |
| 139 ] |
| 140 } |
| 141 |
| 142 # Only targets that are calling the thunks should depend upon this. |
| 143 mojo_sdk_source_set("platform_handle_api") { |
| 144 sources = [ |
| 145 "platform_handle_private.h", |
| 146 ] |
| 147 mojo_sdk_deps = [ "mojo/public/c/system:system" ] |
| 148 } |
| 149 |
| 150 mojo_native_application("platform_handle_private_apptest") { |
| 151 output_name = "platform_handle_private_apptests" |
| 152 |
| 153 testonly = true |
| 154 |
| 155 sources = [ |
| 156 "platform_handle_private_apptest.cc", |
| 157 ] |
| 158 |
| 159 deps = [ |
| 160 ":platform_handle", |
| 161 ":platform_handle_api", |
| 162 "../../cpp/application:standalone", |
| 163 "../../cpp/application:test_support_standalone", |
| 164 "../../cpp/environment", |
| 165 "../../cpp/system", |
| 166 ] |
| 167 } |
| 168 |
| 169 group("tests") { |
| 170 testonly = true |
| 171 |
| 172 deps = [ |
| 173 ":platform_handle_private_apptest", |
| 174 ":system_impl_private_tests", |
| 175 ] |
| 176 } |
OLD | NEW |