Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1952)

Side by Side Diff: media/mojo/services/BUILD.gn

Issue 2737513004: Fix media_mojo builds (Closed)
Patch Set: add export Created 3 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « media/mojo/BUILD.gn ('k') | media/remoting/proto_utils.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # Copyright 2014 The Chromium Authors. All rights reserved. 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 2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file. 3 # found in the LICENSE file.
4 4
5 import("//media/media_options.gni") 5 import("//media/media_options.gni")
6 import("//services/catalog/public/tools/catalog.gni") 6 import("//services/catalog/public/tools/catalog.gni")
7 import("//services/service_manager/public/cpp/service.gni") 7 import("//services/service_manager/public/cpp/service.gni")
8 import("//services/service_manager/public/service_manifest.gni") 8 import("//services/service_manager/public/service_manifest.gni")
9 import("//services/service_manager/public/tools/test/service_test.gni") 9 import("//services/service_manager/public/tools/test/service_test.gni")
10 import("//testing/test.gni") 10 import("//testing/test.gni")
11 11
12 component("services") { 12 component("services") {
13 output_name = "media_mojo_services" 13 output_name = "media_mojo_services"
14
15 public_deps = [
16 ":lib",
17 ]
18 }
19
20 # TODO(xhwang): Add this intermediate target because ServiceTest doesn't support
21 # services that depend on shared libraries in component build.
22 # See http://crbug.com/670094
23 source_set("lib") {
24 sources = [ 14 sources = [
25 "gpu_mojo_media_client.cc", 15 "gpu_mojo_media_client.cc",
26 "gpu_mojo_media_client.h", 16 "gpu_mojo_media_client.h",
27 "interface_factory_impl.cc", 17 "interface_factory_impl.cc",
28 "interface_factory_impl.h", 18 "interface_factory_impl.h",
29 "media_interface_provider.cc", 19 "media_interface_provider.cc",
30 "media_interface_provider.h", 20 "media_interface_provider.h",
31 "media_mojo_export.h", 21 "media_mojo_export.h",
32 "media_resource_shim.cc", 22 "media_resource_shim.cc",
33 "media_resource_shim.h", 23 "media_resource_shim.h",
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after
99 "android_mojo_media_client.h", 89 "android_mojo_media_client.h",
100 "mojo_media_drm_storage.cc", 90 "mojo_media_drm_storage.cc",
101 "mojo_media_drm_storage.h", 91 "mojo_media_drm_storage.h",
102 ] 92 ]
103 } 93 }
104 } 94 }
105 95
106 service("media") { 96 service("media") {
107 testonly = true 97 testonly = true
108 98
109 # crbug.com/676418: Suppress symbol import warnings.
110 if (is_win && is_component_build) {
111 ldflags = [ "/ignore:4217" ]
112 }
113
114 sources = [ 99 sources = [
115 "main.cc", 100 "main.cc",
116 ] 101 ]
117 102
118 public_deps = [ 103 public_deps = [
119 "//base", 104 "//base",
120 "//media", 105 "//media",
121 ] 106 ]
122 107
123 deps = [ 108 deps = [
124 ":lib", 109 ":services",
125 "//mojo/public/c/system", 110 "//mojo/public/c/system",
126 "//services/service_manager/public/cpp", 111 "//services/service_manager/public/cpp",
127 ] 112 ]
128 } 113 }
129 114
130 # crbug.com/676055: media_service_unittests currently fails to link in Windows 115 service_test("media_service_unittests") {
131 # component builds, so don't declare it, otherwise the "all" target will still 116 testonly = true
132 # try to build it.
133 if (!(is_win && is_component_build)) {
134 service_test("media_service_unittests") {
135 testonly = true
136 117
137 sources = [ 118 sources = [
138 "media_service_unittest.cc", 119 "media_service_unittest.cc",
139 ] 120 ]
140 121
141 catalog = ":media_service_unittests_catalog" 122 catalog = ":media_service_unittests_catalog"
142 123
143 deps = [ 124 deps = [
144 ":lib", 125 ":services",
145 "//base", 126 "//base",
146 "//media", 127 "//media",
147 "//media/base:test_support", 128 "//media/base:test_support",
148 "//media/mojo/clients", 129 "//media/mojo/clients",
149 "//media/mojo/common", 130 "//media/mojo/common",
150 "//media/mojo/interfaces", 131 "//media/mojo/interfaces",
151 "//media/mojo/interfaces:constants", 132 "//media/mojo/interfaces:constants",
152 "//services/service_manager/public/cpp:service_test_support", 133 "//services/service_manager/public/cpp:service_test_support",
153 "//testing/gmock", 134 "//testing/gmock",
154 "//testing/gtest", 135 "//testing/gtest",
155 ] 136 ]
156 137
157 data_deps = [ 138 data_deps = [
158 ":media", 139 ":media",
159 ] 140 ]
160 } 141 }
161 } # !(is_win && is_component_build)
162 142
163 service_manifest("media_manifest") { 143 service_manifest("media_manifest") {
164 name = "media" 144 name = "media"
165 source = "media_manifest.json" 145 source = "media_manifest.json"
166 } 146 }
167 147
168 service_manifest("test_manifest") { 148 service_manifest("test_manifest") {
169 name = "media_service_unittests" 149 name = "media_service_unittests"
170 source = "test_manifest.json" 150 source = "test_manifest.json"
171 } 151 }
(...skipping 19 matching lines...) Expand all
191 171
192 catalog("media_service_unittests_catalog") { 172 catalog("media_service_unittests_catalog") {
193 embedded_services = [ ":test_manifest" ] 173 embedded_services = [ ":test_manifest" ]
194 standalone_services = [ ":media_manifest" ] 174 standalone_services = [ ":media_manifest" ]
195 } 175 }
196 176
197 catalog("media_pipeline_integration_unittests_catalog") { 177 catalog("media_pipeline_integration_unittests_catalog") {
198 embedded_services = [ ":pipeline_test_manifest" ] 178 embedded_services = [ ":pipeline_test_manifest" ]
199 standalone_services = [ ":media_manifest" ] 179 standalone_services = [ ":media_manifest" ]
200 } 180 }
OLDNEW
« no previous file with comments | « media/mojo/BUILD.gn ('k') | media/remoting/proto_utils.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698