Adding a memory pressure observer for ChromeOS.
[chromium-blink-merge.git] / media / blink / BUILD.gn
blob5d3a60cd5d6e36b54d2b17bd3facc64c48e08dce
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.
4 component("blink") {
5   output_name = "media_blink"
7   deps = [
8     "//base",
9     "//cc",
10     "//cc/blink",
11     "//media",
12     "//media:shared_memory_support",
13     "//net",
14     "//third_party/WebKit/public:blink",
15     "//ui/gfx",
16     "//ui/gfx/geometry",
17     "//url",
18   ]
20   defines = [ "MEDIA_IMPLEMENTATION" ]
22   sources = [
23     "active_loader.cc",
24     "active_loader.h",
25     "buffered_data_source.cc",
26     "buffered_data_source.h",
27     "buffered_data_source_host_impl.cc",
28     "buffered_data_source_host_impl.h",
29     "buffered_resource_loader.cc",
30     "buffered_resource_loader.h",
31     "cache_util.cc",
32     "cache_util.h",
33     "cdm_result_promise.h",
34     "cdm_result_promise_helper.cc",
35     "cdm_result_promise_helper.h",
36     "cdm_session_adapter.cc",
37     "cdm_session_adapter.h",
38     "encrypted_media_player_support.cc",
39     "encrypted_media_player_support.h",
40     "new_session_cdm_result_promise.cc",
41     "new_session_cdm_result_promise.h",
42     "texttrack_impl.cc",
43     "texttrack_impl.h",
44     "video_frame_compositor.cc",
45     "video_frame_compositor.h",
46     "webaudiosourceprovider_impl.cc",
47     "webaudiosourceprovider_impl.h",
48     "webcontentdecryptionmodule_impl.cc",
49     "webcontentdecryptionmodule_impl.h",
50     "webcontentdecryptionmodulesession_impl.cc",
51     "webcontentdecryptionmodulesession_impl.h",
52     "webinbandtexttrack_impl.cc",
53     "webinbandtexttrack_impl.h",
54     "webmediaplayer_delegate.h",
55     "webmediaplayer_impl.cc",
56     "webmediaplayer_impl.h",
57     "webmediaplayer_params.cc",
58     "webmediaplayer_params.h",
59     "webmediaplayer_util.cc",
60     "webmediaplayer_util.h",
61     "webmediasource_impl.cc",
62     "webmediasource_impl.h",
63     "websourcebuffer_impl.cc",
64     "websourcebuffer_impl.h",
65   ]
67   if (is_android) {
68     sources -= [
69       "encrypted_media_player_support.cc",
70       "encrypted_media_player_support.h",
71       "webmediaplayer_impl.cc",
72       "webmediaplayer_impl.h",
73     ]
74   }
77 if (!is_mac) {
78   # TODO(GYP): Make linking this work on the mac.
79   test("media_blink_unittests") {
80     deps = [
81       ":blink",
82       "//base",
83       "//base/test:test_support",
84       "//cc",
85       "//cc/blink",
86       "//media",
87       "//media:shared_memory_support",
88       "//media/base:test_support",
89       "//net",
90       "//testing/gmock",
91       "//testing/gtest",
92       "//third_party/WebKit/public:blink",
93       "//ui/gfx/geometry",
94       "//ui/gfx:test_support",
95       "//url",
96     ]
98     sources = [
99       "buffered_data_source_host_impl_unittest.cc",
100       "buffered_data_source_unittest.cc",
101       "buffered_resource_loader_unittest.cc",
102       "cache_util_unittest.cc",
103       "mock_webframeclient.h",
104       "mock_weburlloader.cc",
105       "mock_weburlloader.h",
106       "run_all_unittests.cc",
107       "test_response_generator.cc",
108       "test_response_generator.h",
109       "video_frame_compositor_unittest.cc",
110       "webaudiosourceprovider_impl_unittest.cc",
111     ]
112   }