From 7bb825205767b5ba6bbc19a3ffaca6aa4bf8757e Mon Sep 17 00:00:00 2001 From: Niranjan Yardi Date: Tue, 19 Nov 2024 15:07:22 -0800 Subject: [PATCH] Add proprietary_codecs.gn (#4450) b/377271824 --- cobalt/build/configs/android-arm/args.gn | 2 ++ cobalt/build/configs/android-arm64/args.gn | 2 ++ cobalt/build/configs/android-x86/args.gn | 2 ++ cobalt/build/configs/linux-x64x11/args.gn | 2 ++ cobalt/build/configs/proprietary_codecs.gn | 8 ++++++++ 5 files changed, 16 insertions(+) create mode 100644 cobalt/build/configs/proprietary_codecs.gn diff --git a/cobalt/build/configs/android-arm/args.gn b/cobalt/build/configs/android-arm/args.gn index 97931e8b5b6..67b8dc363c2 100644 --- a/cobalt/build/configs/android-arm/args.gn +++ b/cobalt/build/configs/android-arm/args.gn @@ -1,3 +1,5 @@ +import("//cobalt/build/configs/proprietary_codecs.gn") + target_os = "android" target_cpu = "arm" diff --git a/cobalt/build/configs/android-arm64/args.gn b/cobalt/build/configs/android-arm64/args.gn index 901c934f55f..d11eecedaf0 100644 --- a/cobalt/build/configs/android-arm64/args.gn +++ b/cobalt/build/configs/android-arm64/args.gn @@ -1,3 +1,5 @@ +import("//cobalt/build/configs/proprietary_codecs.gn") + target_os = "android" target_cpu = "arm64" diff --git a/cobalt/build/configs/android-x86/args.gn b/cobalt/build/configs/android-x86/args.gn index b1d56095ede..4924fbbd6db 100644 --- a/cobalt/build/configs/android-x86/args.gn +++ b/cobalt/build/configs/android-x86/args.gn @@ -1,3 +1,5 @@ +import("//cobalt/build/configs/proprietary_codecs.gn") + target_os = "android" target_cpu = "x86" diff --git a/cobalt/build/configs/linux-x64x11/args.gn b/cobalt/build/configs/linux-x64x11/args.gn index 2aac2f520d9..147c2bcbcdf 100644 --- a/cobalt/build/configs/linux-x64x11/args.gn +++ b/cobalt/build/configs/linux-x64x11/args.gn @@ -1,3 +1,5 @@ +import("//cobalt/build/configs/proprietary_codecs.gn") + target_os = "linux" target_cpu = "x64" diff --git a/cobalt/build/configs/proprietary_codecs.gn b/cobalt/build/configs/proprietary_codecs.gn new file mode 100644 index 00000000000..ae16a1c78fa --- /dev/null +++ b/cobalt/build/configs/proprietary_codecs.gn @@ -0,0 +1,8 @@ +# Build flag declared originally in build/config/features.gni +# This flag is overridden to enable common video codecs playbacks. +proprietary_codecs = true + +# This flag is needed by both platforms - android and linux. +# For android: android_webview/docs/aosp-system-integration.md +# For linux: docs/linux/hw_video_decode.md +ffmpeg_branding = "Chrome"