Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / cc / blink / BUILD.gn
blob4ee8862a9ae46479a6c5e06166dcb9c85f77c662
1 # Copyright 2014 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.
5 import("//testing/test.gni")
7 # GYP version: //cc/blink/cc_blink.gyp:cc_blink
8 component("blink") {
9   output_name = "cc_blink"
11   sources = [
12     "cc_blink_export.h",
13     "context_provider_web_context.h",
14     "scrollbar_impl.cc",
15     "scrollbar_impl.h",
16     "web_animation_curve_common.cc",
17     "web_animation_curve_common.h",
18     "web_animation_impl.cc",
19     "web_animation_impl.h",
20     "web_compositor_animation_player_impl.cc",
21     "web_compositor_animation_player_impl.h",
22     "web_compositor_animation_timeline_impl.cc",
23     "web_compositor_animation_timeline_impl.h",
24     "web_compositor_support_impl.cc",
25     "web_compositor_support_impl.h",
26     "web_content_layer_impl.cc",
27     "web_content_layer_impl.h",
28     "web_display_item_list_impl.cc",
29     "web_display_item_list_impl.h",
30     "web_external_bitmap_impl.cc",
31     "web_external_bitmap_impl.h",
32     "web_external_texture_layer_impl.cc",
33     "web_external_texture_layer_impl.h",
34     "web_filter_animation_curve_impl.cc",
35     "web_filter_animation_curve_impl.h",
36     "web_filter_operations_impl.cc",
37     "web_filter_operations_impl.h",
38     "web_float_animation_curve_impl.cc",
39     "web_float_animation_curve_impl.h",
40     "web_image_layer_impl.cc",
41     "web_image_layer_impl.h",
42     "web_layer_impl.cc",
43     "web_layer_impl.h",
44     "web_layer_impl_fixed_bounds.cc",
45     "web_layer_impl_fixed_bounds.h",
46     "web_scroll_offset_animation_curve_impl.cc",
47     "web_scroll_offset_animation_curve_impl.h",
48     "web_scrollbar_layer_impl.cc",
49     "web_scrollbar_layer_impl.h",
50     "web_to_cc_animation_delegate_adapter.cc",
51     "web_to_cc_animation_delegate_adapter.h",
52     "web_transform_animation_curve_impl.cc",
53     "web_transform_animation_curve_impl.h",
54     "web_transform_operations_impl.cc",
55     "web_transform_operations_impl.h",
56   ]
58   defines = [ "CC_BLINK_IMPLEMENTATION" ]
60   public_deps = [
61     "//skia",
62   ]
64   deps = [
65     "//base",
66     "//base/third_party/dynamic_annotations",
67     "//cc",
68     "//gpu",
69     "//third_party/WebKit/public:blink",
70     "//ui/gfx",
71     "//ui/gfx/geometry",
72   ]
75 # GYP version: //cc/blink/cc_blink_tests.gyp:cc_blink_unittests
76 # TODO(GYP): make linking work on the mac.
77 if (!is_mac) {
78   test("cc_blink_unittests") {
79     sources = [
80       "web_animation_unittest.cc",
81       "web_float_animation_curve_unittest.cc",
82       "web_layer_impl_fixed_bounds_unittest.cc",
84       # Setup.
85       "test/cc_blink_test_suite.cc",
86       "test/run_all_unittests.cc",
87     ]
89     deps = [
90       ":blink",
91       "//base/test:test_support",
92       "//base/third_party/dynamic_annotations",
93       "//skia",
94       "//testing/gtest",
95       "//third_party/WebKit/public:blink",
96       "//ui/gfx/geometry",
97       "//ui/gfx:test_support",
98       "//cc",
99       "//cc:test_support",
100     ]
101   }