Allow the externalfile scheme to be whitelisted as an allowed scheme for component...
[chromium-blink-merge.git] / media / blink / BUILD.gn
blob48dd8dcc0d679e78da4e4d39b1f01f4d80a53296
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     "new_session_cdm_result_promise.cc",
46     "new_session_cdm_result_promise.h",
47     "texttrack_impl.cc",
48     "texttrack_impl.h",
49     "video_frame_compositor.cc",
50     "video_frame_compositor.h",
51     "webaudiosourceprovider_impl.cc",
52     "webaudiosourceprovider_impl.h",
53     "webcontentdecryptionmodule_impl.cc",
54     "webcontentdecryptionmodule_impl.h",
55     "webcontentdecryptionmoduleaccess_impl.cc",
56     "webcontentdecryptionmoduleaccess_impl.h",
57     "webcontentdecryptionmodulesession_impl.cc",
58     "webcontentdecryptionmodulesession_impl.h",
59     "webencryptedmediaclient_impl.cc",
60     "webencryptedmediaclient_impl.h",
61     "webinbandtexttrack_impl.cc",
62     "webinbandtexttrack_impl.h",
63     "webmediaplayer_delegate.h",
64     "webmediaplayer_impl.cc",
65     "webmediaplayer_impl.h",
66     "webmediaplayer_params.cc",
67     "webmediaplayer_params.h",
68     "webmediaplayer_util.cc",
69     "webmediaplayer_util.h",
70     "webmediasource_impl.cc",
71     "webmediasource_impl.h",
72     "websourcebuffer_impl.cc",
73     "websourcebuffer_impl.h",
74   ]
76   if (is_android) {
77     sources -= [
78       "encrypted_media_player_support.cc",
79       "encrypted_media_player_support.h",
80       "webmediaplayer_impl.cc",
81       "webmediaplayer_impl.h",
82     ]
83   }
86 if (!is_mac && (!is_win || link_chrome_on_windows)) {
87   # TODO(GYP): Make linking this work on the mac.
88   test("media_blink_unittests") {
89     deps = [
90       ":blink",
91       "//base",
92       "//base/test:test_support",
93       "//cc",
94       "//cc/blink",
95       "//media",
96       "//media:shared_memory_support",
97       "//media/base:test_support",
98       "//net",
99       "//testing/gmock",
100       "//testing/gtest",
101       "//third_party/WebKit/public:blink",
102       "//ui/gfx/geometry",
103       "//ui/gfx:test_support",
104       "//url",
105     ]
107     sources = [
108       "buffered_data_source_host_impl_unittest.cc",
109       "buffered_data_source_unittest.cc",
110       "buffered_resource_loader_unittest.cc",
111       "cache_util_unittest.cc",
112       "mock_webframeclient.h",
113       "mock_weburlloader.cc",
114       "mock_weburlloader.h",
115       "run_all_unittests.cc",
116       "test_response_generator.cc",
117       "test_response_generator.h",
118       "video_frame_compositor_unittest.cc",
119       "webaudiosourceprovider_impl_unittest.cc",
120     ]
121   }