Commit 27d3750c authored by Xiaohan Wang's avatar Xiaohan Wang Committed by Commit Bot

media: Replace `is_desktop_linux` with `is_linux`

Now they are defined the same. Use `is_linux` everywhere to avoid
confusion.

Bug: 1132395
Change-Id: Ib6288cefb2b3447b7ead54632f31dd34d778dd6c
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2431777Reviewed-by: default avatarTed Meyer <tmathmeyer@chromium.org>
Reviewed-by: default avatarJohn Rummell <jrummell@chromium.org>
Commit-Queue: Xiaohan Wang <xhwang@chromium.org>
Cr-Commit-Position: refs/heads/master@{#810797}
parent 654c32c8
...@@ -477,7 +477,7 @@ static_library("common") { ...@@ -477,7 +477,7 @@ static_library("common") {
deps += [ "//media/cdm:cdm_paths" ] # Needed by chrome_content_client.cc deps += [ "//media/cdm:cdm_paths" ] # Needed by chrome_content_client.cc
if (enable_widevine) { if (enable_widevine) {
if (is_desktop_linux) { if (is_linux) {
sources += [ sources += [
"media/component_widevine_cdm_hint_file_linux.cc", "media/component_widevine_cdm_hint_file_linux.cc",
"media/component_widevine_cdm_hint_file_linux.h", "media/component_widevine_cdm_hint_file_linux.h",
......
...@@ -29,7 +29,7 @@ component_arch = "$current_cpu" ...@@ -29,7 +29,7 @@ component_arch = "$current_cpu"
# - |cdm_platform_specific_path| is exported as a BUILDFLAG to cdm_paths.cc. # - |cdm_platform_specific_path| is exported as a BUILDFLAG to cdm_paths.cc.
# - When updating the condition here, also update the condition on the define # - When updating the condition here, also update the condition on the define
# of CDM_USE_PLATFORM_SPECIFIC_PATH in cdm_paths_unittest.cc. # of CDM_USE_PLATFORM_SPECIFIC_PATH in cdm_paths_unittest.cc.
if (is_win || is_mac || is_desktop_linux) { if (is_win || is_mac || is_linux) {
cdm_platform_specific_path = cdm_platform_specific_path =
"_platform_specific/$component_os" + "_" + "$component_arch" "_platform_specific/$component_os" + "_" + "$component_arch"
......
...@@ -196,7 +196,7 @@ if (is_chromecast) { ...@@ -196,7 +196,7 @@ if (is_chromecast) {
"video_decoder", "video_decoder",
] ]
_default_mojo_media_host = "gpu" _default_mojo_media_host = "gpu"
} else if (is_chromeos || is_mac || is_win || (is_desktop_linux && use_vaapi)) { } else if (is_chromeos || is_mac || is_win || (is_linux && use_vaapi)) {
_default_mojo_media_services = [ "video_decoder" ] _default_mojo_media_services = [ "video_decoder" ]
_default_mojo_media_host = "gpu" _default_mojo_media_host = "gpu"
} }
......
...@@ -34,7 +34,7 @@ if (bundle_widevine_cdm) { ...@@ -34,7 +34,7 @@ if (bundle_widevine_cdm) {
widevine_cdm_version_h_file = widevine_cdm_version_h_file =
"chromeos/$widevine_arch/widevine_cdm_version.h" "chromeos/$widevine_arch/widevine_cdm_version.h"
widevine_cdm_binary_files = [ "chromeos/$widevine_arch/libwidevinecdm.so" ] widevine_cdm_binary_files = [ "chromeos/$widevine_arch/libwidevinecdm.so" ]
} else if (is_desktop_linux) { } else if (is_linux) {
widevine_cdm_version_h_file = "linux/$widevine_arch/widevine_cdm_version.h" widevine_cdm_version_h_file = "linux/$widevine_arch/widevine_cdm_version.h"
widevine_cdm_binary_files = [ "linux/$widevine_arch/libwidevinecdm.so" ] widevine_cdm_binary_files = [ "linux/$widevine_arch/libwidevinecdm.so" ]
widevine_cdm_manifest_and_license_files = [ widevine_cdm_manifest_and_license_files = [
......
...@@ -23,7 +23,7 @@ if (is_chromeos && !is_chromeos_device) { ...@@ -23,7 +23,7 @@ if (is_chromeos && !is_chromeos_device) {
# supported via Android MediaDrm API. # supported via Android MediaDrm API.
library_widevine_cdm_available = library_widevine_cdm_available =
(is_chromeos && (target_cpu == "x64" || target_cpu == "arm")) || (is_chromeos && (target_cpu == "x64" || target_cpu == "arm")) ||
(is_desktop_linux && (target_cpu == "x86" || target_cpu == "x64")) || (is_linux && (target_cpu == "x86" || target_cpu == "x64")) ||
(is_mac && (target_cpu == "x64" || target_cpu == "arm64")) || (is_mac && (target_cpu == "x64" || target_cpu == "arm64")) ||
(is_win && (target_cpu == "x86" || target_cpu == "x64")) (is_win && (target_cpu == "x86" || target_cpu == "x64"))
...@@ -36,8 +36,9 @@ enable_library_widevine_cdm = ...@@ -36,8 +36,9 @@ enable_library_widevine_cdm =
# Widevine CDM can be deployed as a component. Currently only supported on # Widevine CDM can be deployed as a component. Currently only supported on
# Mac, Windows, and desktop Linux. The CDM can be bundled regardless whether # Mac, Windows, and desktop Linux. The CDM can be bundled regardless whether
# it's a component. See below. # it's a component. See below.
# Note: Not enabled on ChromeOS. See https://crbug.com/971433
enable_widevine_cdm_component = enable_widevine_cdm_component =
enable_library_widevine_cdm && (is_win || is_mac || is_desktop_linux) enable_library_widevine_cdm && (is_win || is_mac || is_linux)
# Widevine CDM is bundled as part of Google Chrome builds. # Widevine CDM is bundled as part of Google Chrome builds.
bundle_widevine_cdm = enable_library_widevine_cdm && is_chrome_branded bundle_widevine_cdm = enable_library_widevine_cdm && is_chrome_branded
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment