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 mojo_sdk_source_set("system") { | 7 mojo_sdk_source_set("system") { |
8 sources = [ | 8 sources = [ |
9 "system_thunks.c", | 9 "system_thunks.c", |
10 "system_thunks.h", | 10 "system_thunks.h", |
11 ] | 11 ] |
12 defines = [ "MOJO_SYSTEM_IMPLEMENTATION" ] | |
13 mojo_sdk_deps = [ "mojo/public/c/system" ] | 12 mojo_sdk_deps = [ "mojo/public/c/system" ] |
14 | 13 |
15 # The GYP target analogous to this one builds this code into a | 14 # The GYP target analogous to this one builds this code into a |
16 # static library. When building for Android, both the GYP and GN | 15 # static library. When building for Android, both the GYP and GN |
17 # builds add --exclude-libs=ALL globally, which means that all | 16 # builds add --exclude-libs=ALL globally, which means that all |
18 # symbols in static libraries are excluded from export. That's a | 17 # symbols in static libraries are excluded from export. That's a |
19 # problem, as code outside this target needs to be able to call | 18 # problem, as code outside this target needs to be able to call |
20 # MojoSetSystemThunks(). Therefore, the GYP target needs to specifiy | 19 # MojoSetSystemThunks(). Therefore, the GYP target needs to specifiy |
21 # that all dependent targets remove that link flag. Since GN uses a | 20 # that all dependent targets remove that link flag. Since GN uses a |
22 # source_set here, this flag change is not needed. | 21 # source_set here, this flag change is not needed. |
23 } | 22 } |
24 | 23 |
25 # For internal use only. | 24 # For internal use only. |
26 mojo_sdk_source_set("system_impl_private") { | 25 mojo_sdk_source_set("system_impl_private") { |
27 sources = [ | 26 sources = [ |
28 "system_impl_private_thunks.c", | 27 "system_impl_private_thunks.c", |
29 "system_impl_private_thunks.h", | 28 "system_impl_private_thunks.h", |
30 ] | 29 ] |
31 defines = [ "MOJO_SYSTEM_IMPLEMENTATION" ] | |
32 deps = [ | 30 deps = [ |
33 ":system_impl_private_api", | 31 ":system_impl_private_api", |
34 ] | 32 ] |
35 mojo_sdk_deps = [ "mojo/public/c/system" ] | 33 mojo_sdk_deps = [ "mojo/public/c/system" ] |
36 } | 34 } |
37 | 35 |
38 # For internal use only. | 36 # For internal use only. |
39 mojo_sdk_source_set("system_impl_private_api") { | 37 mojo_sdk_source_set("system_impl_private_api") { |
40 sources = [ | 38 sources = [ |
41 "system_impl_private.h", | 39 "system_impl_private.h", |
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
120 } | 118 } |
121 | 119 |
122 mojo_sdk_source_set("mgl_onscreen_thunks") { | 120 mojo_sdk_source_set("mgl_onscreen_thunks") { |
123 sources = [ | 121 sources = [ |
124 "mgl_onscreen_thunks.c", | 122 "mgl_onscreen_thunks.c", |
125 "mgl_onscreen_thunks.h", | 123 "mgl_onscreen_thunks.h", |
126 ] | 124 ] |
127 | 125 |
128 mojo_sdk_deps = [ "mojo/public/c/gpu:MGL_onscreen" ] | 126 mojo_sdk_deps = [ "mojo/public/c/gpu:MGL_onscreen" ] |
129 } | 127 } |
OLD | NEW |