Revert of Roll src/third_party/WebKit e0eac24:489c548 (svn 193311:193320) (patchset...
[chromium-blink-merge.git] / media / blink / BUILD.gn
blob9def3ef6fc6914b42258fa1a6c9233bcd53e6b9d
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 component("blink") {
8   output_name = "media_blink"
10   deps = [
11     "//base",
12     "//cc",
13     "//cc/blink",
14     "//gpu/blink",
15     "//media",
16     "//media:shared_memory_support",
17     "//net",
18     "//skia",
19     "//third_party/WebKit/public:blink",
20     "//ui/gfx",
21     "//ui/gfx/geometry",
22     "//url",
23   ]
25   defines = [ "MEDIA_IMPLEMENTATION" ]
27   sources = [
28     "active_loader.cc",
29     "active_loader.h",
30     "buffered_data_source.cc",
31     "buffered_data_source.h",
32     "buffered_data_source_host_impl.cc",
33     "buffered_data_source_host_impl.h",
34     "buffered_resource_loader.cc",
35     "buffered_resource_loader.h",
36     "cache_util.cc",
37     "cache_util.h",
38     "cdm_result_promise.h",
39     "cdm_result_promise_helper.cc",
40     "cdm_result_promise_helper.h",
41     "cdm_session_adapter.cc",
42     "cdm_session_adapter.h",
43     "encrypted_media_player_support.cc",
44     "encrypted_media_player_support.h",
45     "key_system_config_selector.cc",
46     "key_system_config_selector.h",
47     "new_session_cdm_result_promise.cc",
48     "new_session_cdm_result_promise.h",
49     "texttrack_impl.cc",
50     "texttrack_impl.h",
51     "video_frame_compositor.cc",
52     "video_frame_compositor.h",
53     "webaudiosourceprovider_impl.cc",
54     "webaudiosourceprovider_impl.h",
55     "webcontentdecryptionmodule_impl.cc",
56     "webcontentdecryptionmodule_impl.h",
57     "webcontentdecryptionmoduleaccess_impl.cc",
58     "webcontentdecryptionmoduleaccess_impl.h",
59     "webcontentdecryptionmodulesession_impl.cc",
60     "webcontentdecryptionmodulesession_impl.h",
61     "webencryptedmediaclient_impl.cc",
62     "webencryptedmediaclient_impl.h",
63     "webinbandtexttrack_impl.cc",
64     "webinbandtexttrack_impl.h",
65     "webmediaplayer_delegate.h",
66     "webmediaplayer_impl.cc",
67     "webmediaplayer_impl.h",
68     "webmediaplayer_params.cc",
69     "webmediaplayer_params.h",
70     "webmediaplayer_util.cc",
71     "webmediaplayer_util.h",
72     "webmediasource_impl.cc",
73     "webmediasource_impl.h",
74     "websourcebuffer_impl.cc",
75     "websourcebuffer_impl.h",
76   ]
78   if (is_android) {
79     sources -= [
80       "encrypted_media_player_support.cc",
81       "encrypted_media_player_support.h",
82       "webmediaplayer_impl.cc",
83       "webmediaplayer_impl.h",
84     ]
85   }
88 if (!is_mac) {
89   # TODO(GYP): Make linking this work on the mac.
90   test("media_blink_unittests") {
91     deps = [
92       ":blink",
93       "//base",
94       "//base/test:test_support",
95       "//cc",
96       "//cc/blink",
97       "//gin",
98       "//media",
99       "//media:shared_memory_support",
100       "//media/base:test_support",
101       "//net",
102       "//testing/gmock",
103       "//testing/gtest",
104       "//third_party/WebKit/public:blink",
105       "//ui/gfx/geometry",
106       "//ui/gfx:test_support",
107       "//url",
108     ]
110     configs += [ "//build/config/compiler:no_size_t_to_int_warning" ]
112     sources = [
113       "buffered_data_source_host_impl_unittest.cc",
114       "buffered_data_source_unittest.cc",
115       "buffered_resource_loader_unittest.cc",
116       "cache_util_unittest.cc",
117       "mock_webframeclient.h",
118       "mock_weburlloader.cc",
119       "mock_weburlloader.h",
120       "run_all_unittests.cc",
121       "test_response_generator.cc",
122       "test_response_generator.h",
123       "video_frame_compositor_unittest.cc",
124       "webaudiosourceprovider_impl_unittest.cc",
125     ]
126   }