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_root/mojo/public/mojo_application.gni") | |
viettrungluu
2016/02/18 01:10:06
Just use a relative path, like the import above?
Forrest Reiling
2016/02/23 23:48:44
Done.
| |
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 restrict_external_deps = false | |
132 sources = [ | |
133 "platform_handle_private_thunks.c", | |
134 "platform_handle_private_thunks.h", | |
135 ] | |
136 | |
137 deps = [ | |
138 ":platform_handle_defs", | |
139 "$mojo_root/mojo/public/c/system", | |
viettrungluu
2016/02/18 01:10:06
Use mojo_sdk_deps instead of "$mojo_root".
Forrest Reiling
2016/02/23 23:48:44
Done.
| |
140 ] | |
141 | |
142 defines = [ "PLATFORM_HANDLE_IMPLEMENTATION" ] | |
viettrungluu
2016/02/18 01:10:06
Pretty sure you don't need this.
Forrest Reiling
2016/02/23 23:48:44
Done.
| |
143 } | |
144 | |
145 # Only targets that are registering the thunks should depend upon this. | |
viettrungluu
2016/02/18 01:10:06
"registering" is a confusing term.
Forrest Reiling
2016/02/23 23:48:44
going with 'calling the thunks' instead
| |
146 mojo_sdk_source_set("platform_handle_defs") { | |
viettrungluu
2016/02/18 01:10:06
Probably call it "api" instead of "defs", like sys
Forrest Reiling
2016/02/23 23:48:44
Done.
| |
147 restrict_external_deps = false | |
148 sources = [ | |
149 "platform_handle_private.h", | |
150 ] | |
151 deps = [ | |
viettrungluu
2016/02/18 01:10:06
mojo_sdk_deps
Forrest Reiling
2016/02/23 23:48:44
Done.
| |
152 "$mojo_root/mojo/public/c/system:system", | |
153 ] | |
154 } | |
155 | |
156 mojo_native_application("platform_handle_apptest") { | |
viettrungluu
2016/02/18 01:10:06
Probably have a "tests" group that depends on this
Forrest Reiling
2016/02/23 23:48:44
If I do that do you want me to put the other test
viettrungluu
2016/02/24 18:09:57
Probably, if you can.
Forrest Reiling
2016/02/24 20:10:42
Done.
| |
157 output_name = "platform_handle_apptests" | |
158 | |
159 testonly = true | |
160 | |
161 sources = [ | |
162 "platform_handle_apptest.cc", | |
163 ] | |
164 | |
165 deps = [ | |
166 ":platform_handle", | |
167 ":platform_handle_defs", | |
168 "$mojo_root/mojo/public/cpp/application:standalone", | |
viettrungluu
2016/02/18 01:10:06
mojo_sdk_deps
Forrest Reiling
2016/02/23 23:48:44
when I do this here it says the variable goes out
viettrungluu
2016/02/24 18:09:57
Blech. Probably mojo_native_application (in //mojo
Forrest Reiling
2016/02/24 20:10:42
using relative path
| |
169 "$mojo_root/mojo/public/cpp/application:test_support_standalone", | |
170 "$mojo_root/mojo/public/cpp/environment", | |
171 "$mojo_root/mojo/public/cpp/system", | |
172 ] | |
173 } | |
OLD | NEW |