Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(286)

Side by Side Diff: ui/gl/BUILD.gn

Issue 1061733002: Remove windows/mac/ios specific code from //ui (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: fix default try set Created 5 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « ui/gfx/win/window_impl.cc ('k') | ui/gl/DEPS » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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("//build/config/ui.gni") 5 import("//build/config/ui.gni")
6 if (is_android) { 6 if (is_android) {
7 import("//build/config/android/config.gni") 7 import("//build/config/android/config.gni")
8 import("//build/config/android/rules.gni") 8 import("//build/config/android/rules.gni")
9 } 9 }
10 10
11 config("gl_config") { 11 config("gl_config") {
12 if (use_x11) { 12 if (use_x11) {
13 defines = [ "GL_GLEXT_PROTOTYPES" ] 13 defines = [ "GL_GLEXT_PROTOTYPES" ]
14 } 14 }
15 } 15 }
16 16
17 component("gl") { 17 component("gl") {
18 output_name = "gl_wrapper" # Avoid colliding with OS X"s libGL.dylib. 18 output_name = "gl_wrapper" # Avoid colliding with OS X"s libGL.dylib.
19 19
20 sources = [ 20 sources = [
21 "android/gl_jni_registrar.cc", 21 "android/gl_jni_registrar.cc",
22 "android/gl_jni_registrar.h", 22 "android/gl_jni_registrar.h",
23 "android/scoped_java_surface.cc", 23 "android/scoped_java_surface.cc",
24 "android/scoped_java_surface.h", 24 "android/scoped_java_surface.h",
25 "android/surface_texture.cc", 25 "android/surface_texture.cc",
26 "android/surface_texture.h", 26 "android/surface_texture.h",
27 "android/surface_texture_listener.cc", 27 "android/surface_texture_listener.cc",
28 "android/surface_texture_listener.h", 28 "android/surface_texture_listener.h",
29 "egl_util.cc",
30 "egl_util.h",
29 "gl_bindings.cc", 31 "gl_bindings.cc",
30 "gl_bindings.h", 32 "gl_bindings.h",
33 "gl_bindings_autogen_egl.cc",
34 "gl_bindings_autogen_egl.h",
31 "gl_bindings_autogen_gl.cc", 35 "gl_bindings_autogen_gl.cc",
32 "gl_bindings_autogen_gl.h", 36 "gl_bindings_autogen_gl.h",
33 "gl_bindings_autogen_osmesa.cc", 37 "gl_bindings_autogen_osmesa.cc",
34 "gl_bindings_autogen_osmesa.h", 38 "gl_bindings_autogen_osmesa.h",
35 "gl_bindings_skia_in_process.cc", 39 "gl_bindings_skia_in_process.cc",
36 "gl_bindings_skia_in_process.h", 40 "gl_bindings_skia_in_process.h",
37 "gl_context.cc", 41 "gl_context.cc",
38 "gl_context.h", 42 "gl_context.h",
39 "gl_context_android.cc", 43 "gl_context_android.cc",
44 "gl_context_egl.cc",
45 "gl_context_egl.h",
40 "gl_context_mac.mm", 46 "gl_context_mac.mm",
41 "gl_context_osmesa.cc", 47 "gl_context_osmesa.cc",
42 "gl_context_osmesa.h", 48 "gl_context_osmesa.h",
43 "gl_context_stub.cc", 49 "gl_context_stub.cc",
44 "gl_context_stub.h", 50 "gl_context_stub.h",
45 "gl_context_stub_with_extensions.cc", 51 "gl_context_stub_with_extensions.cc",
46 "gl_context_stub_with_extensions.h", 52 "gl_context_stub_with_extensions.h",
47 "gl_context_win.cc", 53 "gl_context_win.cc",
48 "gl_enums.cc", 54 "gl_enums.cc",
49 "gl_enums.h", 55 "gl_enums.h",
50 "gl_enums_implementation_autogen.h", 56 "gl_enums_implementation_autogen.h",
51 "gl_export.h", 57 "gl_export.h",
52 "gl_fence.cc", 58 "gl_fence.cc",
53 "gl_fence.h", 59 "gl_fence.h",
54 "gl_fence_arb.cc", 60 "gl_fence_arb.cc",
55 "gl_fence_arb.h", 61 "gl_fence_arb.h",
62 "gl_fence_egl.cc",
63 "gl_fence_egl.h",
56 "gl_fence_nv.cc", 64 "gl_fence_nv.cc",
57 "gl_fence_nv.h", 65 "gl_fence_nv.h",
58 "gl_gl_api_implementation.cc", 66 "gl_gl_api_implementation.cc",
59 "gl_gl_api_implementation.h", 67 "gl_gl_api_implementation.h",
60 "gl_image.h", 68 "gl_image.h",
69 "gl_image_egl.cc",
70 "gl_image_egl.h",
61 "gl_image_memory.cc", 71 "gl_image_memory.cc",
62 "gl_image_memory.h", 72 "gl_image_memory.h",
63 "gl_image_ref_counted_memory.cc", 73 "gl_image_ref_counted_memory.cc",
64 "gl_image_ref_counted_memory.h", 74 "gl_image_ref_counted_memory.h",
65 "gl_image_shared_memory.cc", 75 "gl_image_shared_memory.cc",
66 "gl_image_shared_memory.h", 76 "gl_image_shared_memory.h",
67 "gl_image_stub.cc", 77 "gl_image_stub.cc",
68 "gl_image_stub.h", 78 "gl_image_stub.h",
69 "gl_implementation.cc", 79 "gl_implementation.cc",
70 "gl_implementation.h", 80 "gl_implementation.h",
71 "gl_implementation_android.cc", 81 "gl_implementation_android.cc",
72 "gl_implementation_mac.cc", 82 "gl_implementation_mac.cc",
73 "gl_implementation_win.cc", 83 "gl_implementation_win.cc",
74 "gl_osmesa_api_implementation.cc", 84 "gl_osmesa_api_implementation.cc",
75 "gl_osmesa_api_implementation.h", 85 "gl_osmesa_api_implementation.h",
76 "gl_share_group.cc", 86 "gl_share_group.cc",
77 "gl_share_group.h", 87 "gl_share_group.h",
78 "gl_state_restorer.cc", 88 "gl_state_restorer.cc",
79 "gl_state_restorer.h", 89 "gl_state_restorer.h",
80 "gl_surface.cc", 90 "gl_surface.cc",
81 "gl_surface.h", 91 "gl_surface.h",
82 "gl_surface_android.cc", 92 "gl_surface_android.cc",
93 "gl_surface_egl.cc",
94 "gl_surface_egl.h",
83 "gl_surface_mac.cc", 95 "gl_surface_mac.cc",
84 "gl_surface_osmesa.cc", 96 "gl_surface_osmesa.cc",
85 "gl_surface_osmesa.h", 97 "gl_surface_osmesa.h",
86 "gl_surface_stub.cc", 98 "gl_surface_stub.cc",
87 "gl_surface_stub.h", 99 "gl_surface_stub.h",
88 "gl_surface_win.cc", 100 "gl_surface_win.cc",
89 "gl_switches.cc", 101 "gl_switches.cc",
90 "gl_switches.h", 102 "gl_switches.h",
91 "gl_version_info.cc", 103 "gl_version_info.cc",
92 "gl_version_info.h", 104 "gl_version_info.h",
(...skipping 25 matching lines...) Expand all
118 "//skia", 130 "//skia",
119 ] 131 ]
120 public_deps = [ 132 public_deps = [
121 "//base", 133 "//base",
122 "//third_party/mesa:mesa_headers", 134 "//third_party/mesa:mesa_headers",
123 "//ui/events/platform", 135 "//ui/events/platform",
124 "//ui/gfx", 136 "//ui/gfx",
125 "//ui/gfx/geometry", 137 "//ui/gfx/geometry",
126 ] 138 ]
127 139
128 if (is_win || is_android || is_linux) {
129 sources += [
130 "egl_util.cc",
131 "egl_util.h",
132 "gl_bindings_autogen_egl.cc",
133 "gl_bindings_autogen_egl.h",
134 "gl_context_egl.cc",
135 "gl_context_egl.h",
136 "gl_fence_egl.cc",
137 "gl_fence_egl.h",
138 "gl_image_egl.cc",
139 "gl_image_egl.h",
140 "gl_surface_egl.cc",
141 "gl_surface_egl.h",
142 ]
143 }
144 if (is_android || is_linux) { 140 if (is_android || is_linux) {
145 sources += [ 141 sources += [
146 "gl_implementation_osmesa.cc", 142 "gl_implementation_osmesa.cc",
147 "gl_implementation_osmesa.h", 143 "gl_implementation_osmesa.h",
148 ] 144 ]
149 } 145 }
150 if (is_linux) { 146 if (is_linux) {
151 deps += [ "//third_party/libevent" ] 147 deps += [ "//third_party/libevent" ]
152 sources += [ 148 sources += [
153 "gl_image_linux_dma_buffer.cc", 149 "gl_image_linux_dma_buffer.cc",
(...skipping 20 matching lines...) Expand all
174 ] 170 ]
175 171
176 configs += [ 172 configs += [
177 "//build/config/linux:x11", 173 "//build/config/linux:x11",
178 "//build/config/linux:xcomposite", 174 "//build/config/linux:xcomposite",
179 "//build/config/linux:xext", 175 "//build/config/linux:xext",
180 ] 176 ]
181 177
182 deps += [ "//ui/gfx/x" ] 178 deps += [ "//ui/gfx/x" ]
183 } 179 }
184 if (is_win) {
185 sources += [
186 "angle_platform_impl.cc",
187 "angle_platform_impl.h",
188 "gl_bindings_autogen_wgl.cc",
189 "gl_bindings_autogen_wgl.h",
190 "gl_context_wgl.cc",
191 "gl_context_wgl.h",
192 "gl_egl_api_implementation.cc",
193 "gl_egl_api_implementation.h",
194 "gl_surface_wgl.cc",
195 "gl_surface_wgl.h",
196 "gl_wgl_api_implementation.cc",
197 "gl_wgl_api_implementation.h",
198 ]
199
200 libs = [ "dwmapi.lib" ]
201 ldflags = [ "/DELAYLOAD:dwmapi.dll" ]
202 }
203 if (is_mac) {
204 sources += [
205 "gl_context_cgl.cc",
206 "gl_context_cgl.h",
207 "gl_fence_apple.cc",
208 "gl_fence_apple.h",
209 "gl_image_io_surface.cc",
210 "gl_image_io_surface.h",
211 "scoped_cgl.cc",
212 "scoped_cgl.h",
213 ]
214
215 libs = [
216 "IOSurface.framework",
217 "OpenGL.framework",
218 ]
219 }
220 if (is_android) { 180 if (is_android) {
221 sources += [ 181 sources += [
222 "gl_egl_api_implementation.cc", 182 "gl_egl_api_implementation.cc",
223 "gl_egl_api_implementation.h", 183 "gl_egl_api_implementation.h",
224 "gl_image_surface_texture.cc", 184 "gl_image_surface_texture.cc",
225 "gl_image_surface_texture.h", 185 "gl_image_surface_texture.h",
226 ] 186 ]
227 187
228 defines += [ 188 defines += [
229 "GL_GLEXT_PROTOTYPES", 189 "GL_GLEXT_PROTOTYPES",
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
281 deps = [ 241 deps = [
282 ":surface_jni_headers", 242 ":surface_jni_headers",
283 ] 243 ]
284 sources = [ 244 sources = [
285 "../android/java/src/org/chromium/ui/gl/SurfaceTextureListener.java", 245 "../android/java/src/org/chromium/ui/gl/SurfaceTextureListener.java",
286 "../android/java/src/org/chromium/ui/gl/SurfaceTexturePlatformWrapper.java ", 246 "../android/java/src/org/chromium/ui/gl/SurfaceTexturePlatformWrapper.java ",
287 ] 247 ]
288 jni_package = "ui/gl" 248 jni_package = "ui/gl"
289 } 249 }
290 } 250 }
OLDNEW
« no previous file with comments | « ui/gfx/win/window_impl.cc ('k') | ui/gl/DEPS » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698