Index: media/gpu/ipc/service/BUILD.gn |
diff --git a/mojo/edk/system/ports/BUILD.gn b/media/gpu/ipc/service/BUILD.gn |
similarity index 20% |
copy from mojo/edk/system/ports/BUILD.gn |
copy to media/gpu/ipc/service/BUILD.gn |
index 173a17ba5e4c8bf5dad4b9123393f5a2dc19fd91..97470fdfd4fc7069f262e6bdae254600ff91aa7c 100644 |
--- a/mojo/edk/system/ports/BUILD.gn |
+++ b/media/gpu/ipc/service/BUILD.gn |
@@ -2,43 +2,48 @@ |
# Use of this source code is governed by a BSD-style license that can be |
# found in the LICENSE file. |
-import("//testing/test.gni") |
+source_set("service") { |
+ visibility = [ |
+ "//media/*", |
+ "//content/gpu/*", |
+ "//content/public/gpu/*", |
+ ] |
-source_set("ports") { |
sources = [ |
- "event.cc", |
- "event.h", |
- "hash_functions.h", |
- "message.cc", |
- "message.h", |
- "message_queue.cc", |
- "message_queue.h", |
- "name.cc", |
- "name.h", |
- "node.cc", |
- "node.h", |
- "node_delegate.h", |
- "port.cc", |
- "port.h", |
- "port_ref.cc", |
- "user_data.h", |
+ "gpu_jpeg_decode_accelerator.cc", |
+ "gpu_jpeg_decode_accelerator.h", |
+ "gpu_video_decode_accelerator.cc", |
+ "gpu_video_decode_accelerator.h", |
+ "gpu_video_decode_accelerator_factory_impl.cc", |
+ "gpu_video_decode_accelerator_factory_impl.h", |
+ "gpu_video_encode_accelerator.cc", |
+ "gpu_video_encode_accelerator.h", |
+ "media_channel.cc", |
+ "media_channel.h", |
+ "media_service.cc", |
+ "media_service.h", |
] |
+ include_dirs = [ "//third_party/mesa/src/include" ] |
+ |
public_deps = [ |
"//base", |
+ "//gpu/config", |
+ "//ipc", |
+ "//media", |
+ "//media/gpu", |
] |
-} |
- |
-test("mojo_system_ports_unittests") { |
- sources = [ |
- "ports_unittest.cc", |
- ] |
- |
deps = [ |
- ":ports", |
- "//base", |
- "//base/test:test_support", |
- "//mojo/edk/test:run_all_unittests", |
- "//testing/gtest", |
+ "//gpu/ipc/service", |
+ "//media/gpu/ipc/common", |
+ "//third_party/mesa:mesa_headers", |
] |
+ |
+ if (is_chromeos && current_cpu != "arm") { |
+ configs += [ "//third_party/libva:libva_config" ] |
+ } |
+ |
+ if (is_win) { |
+ configs += [ "//build/config/compiler:no_size_t_to_int_warning" ] |
+ } |
} |