| OLD | NEW |
| (Empty) |
| 1 # Copyright (c) 2012 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 { | |
| 6 'variables': { | |
| 7 'chromium_code': 1, | |
| 8 }, | |
| 9 'targets': [ | |
| 10 { | |
| 11 'target_name': 'compositor', | |
| 12 'type': '<(component)', | |
| 13 'dependencies': [ | |
| 14 '<(DEPTH)/base/base.gyp:base', | |
| 15 '<(DEPTH)/base/third_party/dynamic_annotations/dynamic_annotations.gyp:d
ynamic_annotations', | |
| 16 '<(DEPTH)/skia/skia.gyp:skia', | |
| 17 '<(DEPTH)/third_party/WebKit/Source/WebKit/chromium/WebKit.gyp:webkit', | |
| 18 '<(DEPTH)/ui/gfx/gl/gl.gyp:gl', | |
| 19 '<(DEPTH)/ui/ui.gyp:ui', | |
| 20 '<(DEPTH)/webkit/support/webkit_support.gyp:fileapi', | |
| 21 '<(DEPTH)/webkit/support/webkit_support.gyp:glue', | |
| 22 '<(DEPTH)/webkit/support/webkit_support.gyp:webkit_gpu', | |
| 23 ], | |
| 24 'defines': [ | |
| 25 'COMPOSITOR_IMPLEMENTATION', | |
| 26 ], | |
| 27 'sources': [ | |
| 28 'compositor.cc', | |
| 29 'compositor.h', | |
| 30 'compositor_export.h', | |
| 31 'compositor_observer.h', | |
| 32 'compositor_setup.h', | |
| 33 'compositor_switches.cc', | |
| 34 'compositor_switches.h', | |
| 35 'debug_utils.cc', | |
| 36 'debug_utils.h', | |
| 37 'layer.cc', | |
| 38 'layer.h', | |
| 39 'layer_animation_delegate.h', | |
| 40 'layer_animation_element.cc', | |
| 41 'layer_animation_element.h', | |
| 42 'layer_animation_observer.cc', | |
| 43 'layer_animation_observer.h', | |
| 44 'layer_animation_sequence.cc', | |
| 45 'layer_animation_sequence.h', | |
| 46 'layer_animator.cc', | |
| 47 'layer_animator.h', | |
| 48 'layer_type.h', | |
| 49 'scoped_layer_animation_settings.cc', | |
| 50 'scoped_layer_animation_settings.h', | |
| 51 'screen_rotation.cc', | |
| 52 'screen_rotation.h', | |
| 53 # UI tests need TestWebGraphicsContext3D, so we always build it. | |
| 54 'test_web_graphics_context_3d.cc', | |
| 55 'test_web_graphics_context_3d.h', | |
| 56 ], | |
| 57 'conditions': [ | |
| 58 ['OS == "win" and use_aura == 1', { | |
| 59 # TODO(sky): before we make this real need to remove | |
| 60 # IDR_BITMAP_BRUSH_IMAGE. | |
| 61 'dependencies': [ | |
| 62 '<(DEPTH)/ui/ui.gyp:gfx_resources', | |
| 63 '<(DEPTH)/third_party/angle/src/build_angle.gyp:libEGL', | |
| 64 '<(DEPTH)/third_party/angle/src/build_angle.gyp:libGLESv2', | |
| 65 ], | |
| 66 }], | |
| 67 ], | |
| 68 }, | |
| 69 { | |
| 70 'target_name': 'compositor_test_support', | |
| 71 'type': 'static_library', | |
| 72 'dependencies': [ | |
| 73 '<(DEPTH)/base/base.gyp:base', | |
| 74 '<(DEPTH)/webkit/support/webkit_support.gyp:webkit_support', | |
| 75 '<(DEPTH)/third_party/WebKit/Source/WebKit/chromium/WebKit.gyp:webkit', | |
| 76 ], | |
| 77 'sources': [ | |
| 78 'test/compositor_test_support.cc', | |
| 79 'test/compositor_test_support.h', | |
| 80 ], | |
| 81 'conditions': [ | |
| 82 ['os_posix == 1 and OS != "mac"', { | |
| 83 'conditions': [ | |
| 84 ['linux_use_tcmalloc==1', { | |
| 85 'dependencies': [ | |
| 86 '<(DEPTH)/base/allocator/allocator.gyp:allocator', | |
| 87 ], | |
| 88 }], | |
| 89 ], | |
| 90 }], | |
| 91 ], | |
| 92 }, | |
| 93 { | |
| 94 'target_name': 'compositor_unittests', | |
| 95 'type': 'executable', | |
| 96 'dependencies': [ | |
| 97 '<(DEPTH)/base/base.gyp:base', | |
| 98 '<(DEPTH)/base/base.gyp:test_support_base', | |
| 99 '<(DEPTH)/skia/skia.gyp:skia', | |
| 100 '<(DEPTH)/testing/gtest.gyp:gtest', | |
| 101 '<(DEPTH)/ui/gfx/gl/gl.gyp:gl', | |
| 102 '<(DEPTH)/ui/ui.gyp:ui', | |
| 103 'compositor', | |
| 104 'compositor_test_support', | |
| 105 ], | |
| 106 'sources': [ | |
| 107 'layer_animation_element_unittest.cc', | |
| 108 'layer_animation_sequence_unittest.cc', | |
| 109 'layer_animator_unittest.cc', | |
| 110 'layer_unittest.cc', | |
| 111 'run_all_unittests.cc', | |
| 112 'test/test_compositor_host.h', | |
| 113 'test/test_compositor_host_linux.cc', | |
| 114 'test/test_compositor_host_mac.mm', | |
| 115 'test/test_compositor_host_win.cc', | |
| 116 'test/test_layer_animation_delegate.cc', | |
| 117 'test/test_layer_animation_delegate.h', | |
| 118 'test/test_layer_animation_observer.cc', | |
| 119 'test/test_layer_animation_observer.h', | |
| 120 'test/test_suite.cc', | |
| 121 'test/test_suite.h', | |
| 122 'test/test_utils.cc', | |
| 123 'test/test_utils.h', | |
| 124 '<(SHARED_INTERMEDIATE_DIR)/ui/gfx/gfx_resources.rc', | |
| 125 '<(SHARED_INTERMEDIATE_DIR)/ui/ui_resources/ui_resources.rc' | |
| 126 ], | |
| 127 'conditions': [ | |
| 128 # osmesa GL implementation is used on linux. | |
| 129 ['OS=="linux"', { | |
| 130 'dependencies': [ | |
| 131 '<(DEPTH)/third_party/mesa/mesa.gyp:osmesa', | |
| 132 ], | |
| 133 }], | |
| 134 ], | |
| 135 }, | |
| 136 ], | |
| 137 } | |
| OLD | NEW |