blob: a5bb5e02749e8a3f64aed756cdc75c52e55734c7 [file] [log] [blame]
# Copyright 2015 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
import("//chromecast/chromecast.gni")
import("//mojo/public/tools/bindings/mojom.gni")
import("//third_party/widevine/cdm/widevine.gni")
cast_source_set("queryable_data") {
sources = [
"queryable_data.cc",
"queryable_data.h",
]
deps = [ "//base" ]
}
cast_source_set("resource_delegate") {
sources = [
"cast_resource_delegate.cc",
"cast_resource_delegate.h",
]
deps = [
"//base",
"//ui/base",
"//ui/gfx",
]
}
cast_source_set("activity_url_filter") {
sources = [
"activity_filtering_url_loader_throttle.cc",
"activity_filtering_url_loader_throttle.h",
"activity_url_filter.cc",
"activity_url_filter.h",
]
deps = [
"//base",
"//components/url_matcher",
"//content/public/common",
"//url",
]
}
cast_source_set("feature_constants") {
sources = [
"feature_constants.cc",
"feature_constants.h",
]
}
test("cast_common_unittests") {
testonly = true
sources = [ "activity_url_filter_unittest.cc" ]
deps = [
":activity_url_filter",
"//base/test:run_all_unittests",
"//base/test:test_support",
"//testing/gmock",
"//testing/gtest",
"//url",
]
}
cast_source_set("common") {
sources = [
"cast_content_client.cc",
"cast_content_client.h",
"cast_url_loader_throttle.cc",
"cast_url_loader_throttle.h",
"global_descriptors.h",
"identification_settings_manager.cc",
"identification_settings_manager.h",
]
public_deps = [ "//base" ]
deps = [
"//chromecast:chromecast_buildflags",
"//chromecast/base",
"//chromecast/base:cast_version",
"//chromecast/common/media",
"//chromecast/common/mojom",
"//components/cast/common:constants",
"//components/cdm/common:common",
"//content/public/common",
"//media:media_buildflags",
"//mojo/public/cpp/bindings",
"//net",
"//services/network/public/cpp:cpp",
"//third_party/widevine/cdm:buildflags",
"//ui/base",
"//url:url",
]
if (enable_chromecast_extensions) {
sources += [
"cast_extensions_api_provider.cc",
"cast_extensions_api_provider.h",
"cast_extensions_client.cc",
"cast_extensions_client.h",
"cast_redirect_manifest_handler.cc",
"cast_redirect_manifest_handler.h",
"extensions_api/cast_api_permissions.cc",
"extensions_api/cast_api_permissions.h",
]
deps += [
"//chromecast/common/extensions_api:api",
"//chromecast/common/extensions_api:extensions_features",
"//components/version_info",
"//extensions:extensions_resources_grd_grit",
"//extensions/common",
"//extensions/common:core_api_provider",
"//extensions/common/api",
"//extensions/shell:resources",
"//extensions/shell:resources_grit",
]
}
if (!is_fuchsia) {
deps += [ "//components/services/heap_profiling/public/cpp" ]
}
if (enable_library_cdms) {
deps += [ "//media/cdm:cdm_paths" ] # Needed by cast_content_client.cc
}
}