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