compositor.gyp revision 23730a6e56a168d1879203e4b3819bb36e3d8f1f
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:dynamic_annotations', 16 '<(DEPTH)/cc/cc.gyp:cc', 17 '<(DEPTH)/gpu/gpu.gyp:command_buffer_common', 18 '<(DEPTH)/skia/skia.gyp:skia', 19 '<(DEPTH)/ui/gfx/gfx.gyp:gfx', 20 '<(DEPTH)/ui/gfx/gfx.gyp:gfx_geometry', 21 '<(DEPTH)/ui/gl/gl.gyp:gl', 22 ], 23 'defines': [ 24 'COMPOSITOR_IMPLEMENTATION', 25 ], 26 'sources': [ 27 'clone_layer.cc', 28 'clone_layer.h', 29 'compositor.cc', 30 'compositor.h', 31 'compositor_export.h', 32 'compositor_observer.h', 33 'compositor_vsync_manager.cc', 34 'compositor_vsync_manager.h', 35 'compositor_switches.cc', 36 'compositor_switches.h', 37 'debug_utils.cc', 38 'debug_utils.h', 39 'dip_util.cc', 40 'dip_util.h', 41 'float_animation_curve_adapter.cc', 42 'float_animation_curve_adapter.h', 43 'layer.cc', 44 'layer.h', 45 'layer_animation_delegate.h', 46 'layer_animation_element.cc', 47 'layer_animation_element.h', 48 'layer_animation_observer.cc', 49 'layer_animation_observer.h', 50 'layer_animation_sequence.cc', 51 'layer_animation_sequence.h', 52 'layer_animator.cc', 53 'layer_animator.h', 54 'layer_delegate.h', 55 'layer_owner.cc', 56 'layer_owner.h', 57 'layer_tree_owner.cc', 58 'layer_tree_owner.h', 59 'layer_type.h', 60 'reflector.h', 61 'scoped_animation_duration_scale_mode.cc', 62 'scoped_animation_duration_scale_mode.h', 63 'scoped_layer_animation_settings.cc', 64 'scoped_layer_animation_settings.h', 65 'transform_animation_curve_adapter.cc', 66 'transform_animation_curve_adapter.h', 67 ], 68 'conditions': [ 69 ['OS == "win" and use_aura == 1', { 70 # TODO(sky): before we make this real need to remove 71 # IDR_BITMAP_BRUSH_IMAGE. 72 'dependencies': [ 73 '<(DEPTH)/ui/resources/ui_resources.gyp:ui_resources', 74 '<(angle_path)/src/build_angle.gyp:libEGL', 75 '<(angle_path)/src/build_angle.gyp:libGLESv2', 76 ], 77 }], 78 ], 79 }, 80 { 81 'target_name': 'compositor_test_support', 82 'type': 'static_library', 83 'dependencies': [ 84 '<(DEPTH)/base/base.gyp:base', 85 '<(DEPTH)/cc/cc.gyp:cc', 86 '<(DEPTH)/cc/cc_tests.gyp:cc_test_support', 87 '<(DEPTH)/skia/skia.gyp:skia', 88 '<(DEPTH)/testing/gtest.gyp:gtest', 89 '<(DEPTH)/third_party/WebKit/public/blink.gyp:blink_minimal', 90 '<(DEPTH)/ui/base/ui_base.gyp:ui_base', 91 '<(DEPTH)/ui/gfx/gfx.gyp:gfx', 92 '<(DEPTH)/ui/gfx/gfx.gyp:gfx_geometry', 93 '<(DEPTH)/ui/gl/gl.gyp:gl', 94 '<(DEPTH)/webkit/common/gpu/webkit_gpu.gyp:webkit_gpu', 95 'compositor', 96 ], 97 'sources': [ 98 'test/context_factories_for_test.cc', 99 'test/context_factories_for_test.h', 100 'test/draw_waiter_for_test.cc', 101 'test/draw_waiter_for_test.h', 102 'test/in_process_context_factory.cc', 103 'test/in_process_context_factory.h', 104 'test/layer_animator_test_controller.cc', 105 'test/layer_animator_test_controller.h', 106 'test/test_compositor_host.h', 107 'test/test_compositor_host_mac.mm', 108 'test/test_compositor_host_ozone.cc', 109 'test/test_compositor_host_win.cc', 110 'test/test_compositor_host_x11.cc', 111 'test/test_layer_animation_delegate.cc', 112 'test/test_layer_animation_delegate.h', 113 'test/test_layer_animation_observer.cc', 114 'test/test_layer_animation_observer.h', 115 'test/test_layers.cc', 116 'test/test_layers.h', 117 'test/test_suite.cc', 118 'test/test_suite.h', 119 'test/test_utils.cc', 120 'test/test_utils.h', 121 ], 122 'conditions': [ 123 ['use_x11==1', { 124 'dependencies': [ 125 '<(DEPTH)/build/linux/system.gyp:x11' 126 ] 127 }] 128 ] 129 }, 130 { 131 'target_name': 'compositor_unittests', 132 'type': 'executable', 133 'dependencies': [ 134 '<(DEPTH)/base/base.gyp:base', 135 '<(DEPTH)/base/base.gyp:test_support_base', 136 '<(DEPTH)/cc/cc.gyp:cc', 137 '<(DEPTH)/cc/cc_tests.gyp:cc_test_support', 138 '<(DEPTH)/skia/skia.gyp:skia', 139 '<(DEPTH)/testing/gtest.gyp:gtest', 140 '<(DEPTH)/ui/base/ui_base.gyp:ui_base', 141 '<(DEPTH)/ui/gfx/gfx.gyp:gfx', 142 '<(DEPTH)/ui/gfx/gfx.gyp:gfx_geometry', 143 '<(DEPTH)/ui/gl/gl.gyp:gl', 144 '<(DEPTH)/ui/resources/ui_resources.gyp:ui_resources', 145 'compositor', 146 'compositor_test_support', 147 ], 148 'sources': [ 149 'layer_animation_element_unittest.cc', 150 'layer_animation_sequence_unittest.cc', 151 'layer_animator_unittest.cc', 152 'layer_unittest.cc', 153 'run_all_unittests.cc', 154 'transform_animation_curve_adapter_unittest.cc', 155 ], 156 'conditions': [ 157 # osmesa GL implementation is used on linux. 158 ['OS=="linux"', { 159 'dependencies': [ 160 '<(DEPTH)/third_party/mesa/mesa.gyp:osmesa', 161 ], 162 }], 163 ['os_posix == 1 and OS != "mac"', { 164 'conditions': [ 165 # TODO(dmikurube): Kill linux_use_tcmalloc. http://crbug.com/345554 166 ['(use_allocator!="none" and use_allocator!="see_use_tcmalloc") or (use_allocator=="see_use_tcmalloc" and linux_use_tcmalloc==1)', { 167 'dependencies': [ 168 '<(DEPTH)/base/allocator/allocator.gyp:allocator', 169 ], 170 }], 171 ], 172 }], 173 ], 174 }, 175 ], 176} 177