OLD | NEW |
| (Empty) |
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 | |
3 # found in the LICENSE file. | |
4 | |
5 import("../../mojo_sdk.gni") | |
6 import("../../mojo_application.gni") | |
7 | |
8 mojo_sdk_source_set("system_thunks") { | |
9 sources = [ | |
10 "system_thunks.c", | |
11 "system_thunks.h", | |
12 ] | |
13 mojo_sdk_public_deps = [ "mojo/public/c:system" ] | |
14 | |
15 # The GYP target analogous to this one builds this code into a | |
16 # static library. When building for Android, both the GYP and GN | |
17 # builds add --exclude-libs=ALL globally, which means that all | |
18 # symbols in static libraries are excluded from export. That's a | |
19 # problem, as code outside this target needs to be able to call | |
20 # MojoSetSystemThunks(). Therefore, the GYP target needs to specifiy | |
21 # that all dependent targets remove that link flag. Since GN uses a | |
22 # source_set here, this flag change is not needed. | |
23 } | |
24 | |
25 mojo_sdk_source_set("gles2_thunks") { | |
26 sources = [ | |
27 "gles2_impl_chromium_bind_uniform_location_thunks.c", | |
28 "gles2_impl_chromium_bind_uniform_location_thunks.h", | |
29 "gles2_impl_chromium_map_sub_thunks.c", | |
30 "gles2_impl_chromium_map_sub_thunks.h", | |
31 "gles2_impl_chromium_miscellaneous_thunks.c", | |
32 "gles2_impl_chromium_miscellaneous_thunks.h", | |
33 "gles2_impl_chromium_resize_thunks.c", | |
34 "gles2_impl_chromium_resize_thunks.h", | |
35 "gles2_impl_chromium_sync_point_thunks.c", | |
36 "gles2_impl_chromium_sync_point_thunks.h", | |
37 "gles2_impl_chromium_texture_mailbox_thunks.c", | |
38 "gles2_impl_chromium_texture_mailbox_thunks.h", | |
39 "gles2_impl_ext_debug_marker_thunks.c", | |
40 "gles2_impl_ext_debug_marker_thunks.h", | |
41 "gles2_impl_ext_discard_framebuffer_thunks.c", | |
42 "gles2_impl_ext_discard_framebuffer_thunks.h", | |
43 "gles2_impl_ext_multisampled_render_to_texture_thunks.c", | |
44 "gles2_impl_ext_multisampled_render_to_texture_thunks.h", | |
45 "gles2_impl_ext_occlusion_query_thunks.c", | |
46 "gles2_impl_ext_occlusion_query_thunks.h", | |
47 "gles2_impl_ext_texture_storage_thunks.c", | |
48 "gles2_impl_ext_texture_storage_thunks.h", | |
49 "gles2_impl_khr_blend_equation_advanced_thunks.c", | |
50 "gles2_impl_khr_blend_equation_advanced_thunks.h", | |
51 "gles2_impl_oes_vertex_array_object_thunks.c", | |
52 "gles2_impl_oes_vertex_array_object_thunks.h", | |
53 "gles2_impl_thunks.c", | |
54 "gles2_impl_thunks.h", | |
55 ] | |
56 | |
57 mojo_sdk_deps = [ | |
58 "mojo/public/c:environment", | |
59 "mojo/public/c:system", | |
60 ] | |
61 | |
62 mojo_sdk_public_deps = [ "mojo/public/c:GLES2" ] | |
63 } | |
64 | |
65 mojo_sdk_source_set("mgl_thunks") { | |
66 sources = [ | |
67 "mgl_echo_thunks.c", | |
68 "mgl_echo_thunks.h", | |
69 "mgl_signal_sync_point_thunks.c", | |
70 "mgl_signal_sync_point_thunks.h", | |
71 "mgl_thunks.c", | |
72 "mgl_thunks.h", | |
73 ] | |
74 | |
75 mojo_sdk_public_deps = [ | |
76 "mojo/public/c:MGL", | |
77 "mojo/public/c:MGL_signal_sync_point", | |
78 "mojo/public/c:MGL_echo", | |
79 ] | |
80 } | |
81 | |
82 mojo_sdk_source_set("mgl_onscreen_thunks") { | |
83 sources = [ | |
84 "mgl_onscreen_thunks.c", | |
85 "mgl_onscreen_thunks.h", | |
86 ] | |
87 | |
88 mojo_sdk_public_deps = [ "mojo/public/c:MGL_onscreen" ] | |
89 } | |
90 | |
91 mojo_sdk_source_set("platform_handle") { | |
92 sources = [ | |
93 "platform_handle_private_thunks.c", | |
94 "platform_handle_private_thunks.h", | |
95 ] | |
96 | |
97 mojo_sdk_public_deps = [ "mojo/public/platform/native:platform_handle_api" ] | |
98 } | |
99 | |
100 # Only targets that are calling the thunks should depend upon this. | |
101 mojo_sdk_source_set("platform_handle_api") { | |
102 sources = [ | |
103 "platform_handle_private.h", | |
104 ] | |
105 | |
106 mojo_sdk_public_deps = [ "mojo/public/c:system" ] | |
107 } | |
108 | |
109 mojo_native_application("platform_handle_private_apptest") { | |
110 output_name = "platform_handle_private_apptests" | |
111 | |
112 testonly = true | |
113 | |
114 sources = [ | |
115 "platform_handle_private_apptest.cc", | |
116 ] | |
117 | |
118 deps = [ | |
119 ":platform_handle", | |
120 ":platform_handle_api", | |
121 "../../cpp/application:standalone", | |
122 "../../cpp/application:test_support_standalone", | |
123 "../../cpp/environment", | |
124 "../../cpp/system", | |
125 ] | |
126 } | |
127 | |
128 group("tests") { | |
129 testonly = true | |
130 | |
131 deps = [ | |
132 ":platform_handle_private_apptest", | |
133 ] | |
134 } | |
OLD | NEW |