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

Side by Side Diff: app/app_base.gypi

Issue 6722026: Refactor: Move app/gfx/gl ==> ui/gfx/gl (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Try removing a dep. Created 9 years, 9 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | chrome/browser/gpu_data_manager.cc » ('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 (c) 2011 The Chromium Authors. All rights reserved. 1 # Copyright (c) 2011 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 { 5 {
6 'target_defaults': { 6 'target_defaults': {
7 'variables': { 7 'variables': {
8 'app_base_target': 0, 8 'app_base_target': 0,
9 }, 9 },
10 'target_conditions': [ 10 'target_conditions': [
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
49 }], 49 }],
50 ], 50 ],
51 }, 51 },
52 'targets': [ 52 'targets': [
53 { 53 {
54 'target_name': 'app_base', 54 'target_name': 'app_base',
55 'type': '<(library)', 55 'type': '<(library)',
56 'msvs_guid': '4631946D-7D5F-44BD-A5A8-504C0A7033BE', 56 'msvs_guid': '4631946D-7D5F-44BD-A5A8-504C0A7033BE',
57 'variables': { 57 'variables': {
58 'app_base_target': 1, 58 'app_base_target': 1,
59 'gl_binding_output_dir': '<(SHARED_INTERMEDIATE_DIR)/app',
60 }, 59 },
61 'dependencies': [ 60 'dependencies': [
62 # app resources and ui_strings should be shared with the 64-bit 61 # app resources and ui_strings should be shared with the 64-bit
63 # target, but it doesn't work due to a bug in gyp 62 # target, but it doesn't work due to a bug in gyp
64 '../base/base.gyp:base', 63 '../base/base.gyp:base',
65 '../base/base.gyp:base_i18n', 64 '../base/base.gyp:base_i18n',
66 '../ui/ui.gyp:ui_gfx', 65 '../ui/ui.gyp:ui_gfx',
67 '../net/net.gyp:net', 66 '../net/net.gyp:net',
68 '../skia/skia.gyp:skia', 67 '../skia/skia.gyp:skia',
69 '../third_party/icu/icu.gyp:icui18n', 68 '../third_party/icu/icu.gyp:icui18n',
70 '../third_party/icu/icu.gyp:icuuc', 69 '../third_party/icu/icu.gyp:icuuc',
71 '../third_party/libpng/libpng.gyp:libpng', 70 '../third_party/libpng/libpng.gyp:libpng',
72 '../third_party/sqlite/sqlite.gyp:sqlite', 71 '../third_party/sqlite/sqlite.gyp:sqlite',
73 '../third_party/zlib/zlib.gyp:zlib', 72 '../third_party/zlib/zlib.gyp:zlib',
74 '../ui/base/strings/ui_strings.gyp:ui_strings', 73 '../ui/base/strings/ui_strings.gyp:ui_strings',
75 '<(libjpeg_gyp_path):libjpeg', 74 '<(libjpeg_gyp_path):libjpeg',
76 ], 75 ],
77 'include_dirs': [
78 '../third_party/mesa/MesaLib/include',
79 '<(gl_binding_output_dir)',
80 ],
81 # TODO(gregoryd): The direct_dependent_settings should be shared with 76 # TODO(gregoryd): The direct_dependent_settings should be shared with
82 # the 64-bit target, but it doesn't work due to a bug in gyp 77 # the 64-bit target, but it doesn't work due to a bug in gyp
83 'direct_dependent_settings': { 78 'direct_dependent_settings': {
84 'include_dirs': [ 79 'include_dirs': [
85 '..', 80 '..',
86 '../third_party/mesa/MesaLib/include',
87 '<(gl_binding_output_dir)',
88 ], 81 ],
89 }, 82 },
90 'sources': [ 83 'sources': [
91 # Files that are not required for Win64 Native Client loader 84 # Files that are not required for Win64 Native Client loader
92 '../ui/base/animation/animation.cc', 85 '../ui/base/animation/animation.cc',
93 '../ui/base/animation/animation.h', 86 '../ui/base/animation/animation.h',
94 '../ui/base/animation/animation_container.cc', 87 '../ui/base/animation/animation_container.cc',
95 '../ui/base/animation/animation_container.h', 88 '../ui/base/animation/animation_container.h',
96 '../ui/base/animation/animation_container_element.h', 89 '../ui/base/animation/animation_container_element.h',
97 '../ui/base/animation/animation_container_observer.h', 90 '../ui/base/animation/animation_container_observer.h',
(...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after
193 '../ui/base/view_prop.h', 186 '../ui/base/view_prop.h',
194 '../ui/base/win/hwnd_util.cc', 187 '../ui/base/win/hwnd_util.cc',
195 '../ui/base/win/hwnd_util.h', 188 '../ui/base/win/hwnd_util.h',
196 '../ui/base/win/window_impl.cc', 189 '../ui/base/win/window_impl.cc',
197 '../ui/base/win/window_impl.h', 190 '../ui/base/win/window_impl.h',
198 '../ui/base/x/active_window_watcher_x.cc', 191 '../ui/base/x/active_window_watcher_x.cc',
199 '../ui/base/x/active_window_watcher_x.h', 192 '../ui/base/x/active_window_watcher_x.h',
200 '../ui/base/x/x11_util.cc', 193 '../ui/base/x/x11_util.cc',
201 '../ui/base/x/x11_util.h', 194 '../ui/base/x/x11_util.h',
202 '../ui/base/x/x11_util_internal.h', 195 '../ui/base/x/x11_util_internal.h',
203 'gfx/gl/gl_bindings.h',
204 'gfx/gl/gl_bindings_skia.cc',
205 'gfx/gl/gl_bindings_skia.h',
206 'gfx/gl/gl_context.cc',
207 'gfx/gl/gl_context.h',
208 'gfx/gl/gl_context_linux.cc',
209 'gfx/gl/gl_context_mac.cc',
210 'gfx/gl/gl_context_osmesa.cc',
211 'gfx/gl/gl_context_osmesa.h',
212 'gfx/gl/gl_context_stub.cc',
213 'gfx/gl/gl_context_stub.h',
214 'gfx/gl/gl_context_win.cc',
215 'gfx/gl/gl_implementation.cc',
216 'gfx/gl/gl_implementation.h',
217 'gfx/gl/gl_implementation_linux.cc',
218 'gfx/gl/gl_implementation_mac.cc',
219 'gfx/gl/gl_implementation_win.cc',
220 'gfx/gl/gl_interface.h',
221 'gfx/gl/gl_interface.cc',
222 'mac/nsimage_cache.h', 196 'mac/nsimage_cache.h',
223 'mac/nsimage_cache.mm', 197 'mac/nsimage_cache.mm',
224 'mac/scoped_nsdisable_screen_updates.h', 198 'mac/scoped_nsdisable_screen_updates.h',
225 'sql/connection.cc', 199 'sql/connection.cc',
226 'sql/connection.h', 200 'sql/connection.h',
227 'sql/diagnostic_error_delegate.h', 201 'sql/diagnostic_error_delegate.h',
228 'sql/init_status.h', 202 'sql/init_status.h',
229 'sql/meta_table.cc', 203 'sql/meta_table.cc',
230 'sql/meta_table.h', 204 'sql/meta_table.h',
231 'sql/statement.cc', 205 'sql/statement.cc',
232 'sql/statement.h', 206 'sql/statement.h',
233 'sql/transaction.cc', 207 'sql/transaction.cc',
234 'sql/transaction.h', 208 'sql/transaction.h',
235 'win/iat_patch_function.cc', 209 'win/iat_patch_function.cc',
236 'win/iat_patch_function.h', 210 'win/iat_patch_function.h',
237 'win/scoped_co_mem.h', 211 'win/scoped_co_mem.h',
238 'win/scoped_com_initializer.h', 212 'win/scoped_com_initializer.h',
239 'win/scoped_prop.cc', 213 'win/scoped_prop.cc',
240 'win/scoped_prop.h', 214 'win/scoped_prop.h',
241 'win/shell.cc', 215 'win/shell.cc',
242 'win/shell.h', 216 'win/shell.h',
243 '<(gl_binding_output_dir)/gl_bindings_autogen_gl.cc',
244 '<(gl_binding_output_dir)/gl_bindings_autogen_gl.h',
245 '<(gl_binding_output_dir)/gl_bindings_autogen_mock.cc',
246 '<(gl_binding_output_dir)/gl_bindings_autogen_osmesa.cc',
247 '<(gl_binding_output_dir)/gl_bindings_autogen_osmesa.h',
248 ],
249 # hard_dependency is necessary for this target because it has actions
250 # that generate header files included by dependent targtets. The header
251 # files must be generated before the dependents are compiled. The usual
252 # semantics are to allow the two targets to build concurrently.
253 'hard_dependency': 1,
254 'actions': [
255 {
256 'action_name': 'generate_gl_bindings',
257 'inputs': [
258 'gfx/gl/generate_bindings.py',
259 ],
260 'outputs': [
261 '<(gl_binding_output_dir)/gl_bindings_autogen_egl.cc',
262 '<(gl_binding_output_dir)/gl_bindings_autogen_egl.h',
263 '<(gl_binding_output_dir)/gl_bindings_autogen_gl.cc',
264 '<(gl_binding_output_dir)/gl_bindings_autogen_gl.h',
265 '<(gl_binding_output_dir)/gl_bindings_autogen_glx.cc',
266 '<(gl_binding_output_dir)/gl_bindings_autogen_glx.h',
267 '<(gl_binding_output_dir)/gl_bindings_autogen_mock.cc',
268 '<(gl_binding_output_dir)/gl_bindings_autogen_osmesa.cc',
269 '<(gl_binding_output_dir)/gl_bindings_autogen_osmesa.h',
270 '<(gl_binding_output_dir)/gl_bindings_autogen_wgl.cc',
271 '<(gl_binding_output_dir)/gl_bindings_autogen_wgl.h',
272 ],
273 'action': [
274 'python',
275 'gfx/gl/generate_bindings.py',
276 '<(gl_binding_output_dir)',
277 ],
278 },
279 ], 217 ],
280 'conditions': [ 218 'conditions': [
281 ['OS=="linux" or OS=="freebsd" or OS=="openbsd"', { 219 ['OS=="linux" or OS=="freebsd" or OS=="openbsd"', {
282 'dependencies': [ 220 'dependencies': [
283 # font_gtk.cc uses fontconfig. 221 # font_gtk.cc uses fontconfig.
284 # TODO(evanm): I think this is wrong; it should just use GTK. 222 # TODO(evanm): I think this is wrong; it should just use GTK.
285 '../build/linux/system.gyp:fontconfig', 223 '../build/linux/system.gyp:fontconfig',
286 '../build/linux/system.gyp:gtk', 224 '../build/linux/system.gyp:gtk',
287 '../build/linux/system.gyp:x11', 225 '../build/linux/system.gyp:x11',
288 '../build/linux/system.gyp:xext', 226 '../build/linux/system.gyp:xext',
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
324 '../ui/base/view_prop.cc', 262 '../ui/base/view_prop.cc',
325 '../ui/base/view_prop.h', 263 '../ui/base/view_prop.h',
326 'win/iat_patch_function.cc', 264 'win/iat_patch_function.cc',
327 'win/iat_patch_function.h', 265 'win/iat_patch_function.h',
328 ], 266 ],
329 'sources/': [ 267 'sources/': [
330 ['exclude', '^win/*'], 268 ['exclude', '^win/*'],
331 ], 269 ],
332 }], 270 }],
333 ['OS=="linux"', { 271 ['OS=="linux"', {
334 'sources': [
335 'gfx/gl/gl_context_egl.cc',
336 'gfx/gl/gl_context_egl.h',
337 '<(gl_binding_output_dir)/gl_bindings_autogen_egl.cc',
338 '<(gl_binding_output_dir)/gl_bindings_autogen_egl.h',
339 '<(gl_binding_output_dir)/gl_bindings_autogen_glx.cc',
340 '<(gl_binding_output_dir)/gl_bindings_autogen_glx.h',
341 ],
342 'sources!': [ 272 'sources!': [
343 '../ui/base/keycodes/keyboard_code_conversion_mac.mm', 273 '../ui/base/keycodes/keyboard_code_conversion_mac.mm',
344 '../ui/base/keycodes/keyboard_code_conversion_mac.h', 274 '../ui/base/keycodes/keyboard_code_conversion_mac.h',
345 '../ui/base/keycodes/keyboard_codes_win.h', 275 '../ui/base/keycodes/keyboard_codes_win.h',
346 ], 276 ],
347 'include_dirs': [
348 # We don't use angle, but pull the EGL/GLES headers from there.
349 '../third_party/angle/include',
350 ],
351 'all_dependent_settings': { 277 'all_dependent_settings': {
352 'defines': [
353 'GL_GLEXT_PROTOTYPES',
354 ],
355 'ldflags': [ 278 'ldflags': [
356 '-L<(PRODUCT_DIR)', 279 '-L<(PRODUCT_DIR)',
357 ], 280 ],
358 'link_settings': { 281 'link_settings': {
359 'libraries': [ 282 'libraries': [
360 '-lX11', 283 '-lX11',
361 '-ldl', 284 '-ldl',
362 ], 285 ],
363 }, 286 },
364 }, 287 },
365 }], 288 }],
366 ['OS=="mac"', { 289 ['OS=="mac"', {
367 'link_settings': { 290 'link_settings': {
368 'libraries': [ 291 'libraries': [
369 '$(SDKROOT)/System/Library/Frameworks/Accelerate.framework', 292 '$(SDKROOT)/System/Library/Frameworks/Accelerate.framework',
370 '$(SDKROOT)/System/Library/Frameworks/AudioUnit.framework', 293 '$(SDKROOT)/System/Library/Frameworks/AudioUnit.framework',
371 '$(SDKROOT)/System/Library/Frameworks/OpenGL.framework',
372 ], 294 ],
373 }, 295 },
374 'sources!': [ 296 'sources!': [
375 '../ui/base/keycodes/keyboard_code_conversion_gtk.cc', 297 '../ui/base/keycodes/keyboard_code_conversion_gtk.cc',
376 '../ui/base/keycodes/keyboard_code_conversion_gtk.h', 298 '../ui/base/keycodes/keyboard_code_conversion_gtk.h',
377 '../ui/base/keycodes/keyboard_code_conversion_x.cc', 299 '../ui/base/keycodes/keyboard_code_conversion_x.cc',
378 '../ui/base/keycodes/keyboard_code_conversion_x.h', 300 '../ui/base/keycodes/keyboard_code_conversion_x.h',
379 '../ui/base/keycodes/keyboard_codes_win.h', 301 '../ui/base/keycodes/keyboard_codes_win.h',
380 '../ui/base/gtk/event_synthesis_gtk.cc', 302 '../ui/base/gtk/event_synthesis_gtk.cc',
381 '../ui/base/gtk/event_synthesis_gtk.h', 303 '../ui/base/gtk/event_synthesis_gtk.h',
382 ], 304 ],
383 }], 305 }],
384 ['OS=="win"', { 306 ['OS=="win"', {
385 'include_dirs': [
386 '../third_party/angle/include',
387 ],
388 'sources': [
389 'gfx/gl/gl_context_egl.cc',
390 'gfx/gl/gl_context_egl.h',
391 '<(gl_binding_output_dir)/gl_bindings_autogen_egl.cc',
392 '<(gl_binding_output_dir)/gl_bindings_autogen_egl.h',
393 '<(gl_binding_output_dir)/gl_bindings_autogen_wgl.cc',
394 '<(gl_binding_output_dir)/gl_bindings_autogen_wgl.h',
395 ],
396 'sources!': [ 307 'sources!': [
397 '../ui/base/keycodes/keyboard_code_conversion_gtk.cc', 308 '../ui/base/keycodes/keyboard_code_conversion_gtk.cc',
398 '../ui/base/keycodes/keyboard_code_conversion_gtk.h', 309 '../ui/base/keycodes/keyboard_code_conversion_gtk.h',
399 '../ui/base/keycodes/keyboard_code_conversion_mac.mm', 310 '../ui/base/keycodes/keyboard_code_conversion_mac.mm',
400 '../ui/base/keycodes/keyboard_code_conversion_mac.h', 311 '../ui/base/keycodes/keyboard_code_conversion_mac.h',
401 '../ui/base/keycodes/keyboard_code_conversion_x.cc', 312 '../ui/base/keycodes/keyboard_code_conversion_x.cc',
402 '../ui/base/keycodes/keyboard_code_conversion_x.h', 313 '../ui/base/keycodes/keyboard_code_conversion_x.h',
403 '../ui/base/keycodes/keyboard_codes_posix.h', 314 '../ui/base/keycodes/keyboard_codes_posix.h',
404 '../ui/base/gtk/event_synthesis_gtk.cc', 315 '../ui/base/gtk/event_synthesis_gtk.cc',
405 '../ui/base/gtk/event_synthesis_gtk.h', 316 '../ui/base/gtk/event_synthesis_gtk.h',
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
449 'configurations': { 360 'configurations': {
450 'Common_Base': { 361 'Common_Base': {
451 'msvs_target_platform': 'x64', 362 'msvs_target_platform': 'x64',
452 }, 363 },
453 }, 364 },
454 }, 365 },
455 ], 366 ],
456 }], 367 }],
457 ], 368 ],
458 } 369 }
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/gpu_data_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698