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