Building libclearkeycdm on Chromium.

102 views
Skip to first unread message

Alex Frick

unread,
Aug 9, 2022, 10:09:16 AM8/9/22
to Chromium-dev
Hello, can someone tell me how to build this. I can build with widevine and proprietary codecs, but cant find either an arg for the args.gn or elsewhere on how to build this library.

It ships with snapshots of vanilla chromium downloaded straight from google, and I see files for it in chromium code search, so I assume its FOSS because of that unlike widevine.

Xiaohan Wang (王消寒)

unread,
Aug 9, 2022, 12:14:55 PM8/9/22
to frick...@gmail.com, Chromium-dev
libclearkeycdm is only used for testing and should not be used for any production.

When you say "It ships with snapshots of vanilla chromium downloaded straight from google", do you have a link? Thanks!

On Tue, Aug 9, 2022 at 7:09 AM Alex Frick <frick...@gmail.com> wrote:
Hello, can someone tell me how to build this. I can build with widevine and proprietary codecs, but cant find either an arg for the args.gn or elsewhere on how to build this library.

It ships with snapshots of vanilla chromium downloaded straight from google, and I see files for it in chromium code search, so I assume its FOSS because of that unlike widevine.

--
--
Chromium Developers mailing list: chromi...@chromium.org
View archives, change email options, or unsubscribe:
http://groups.google.com/a/chromium.org/group/chromium-dev
---
You received this message because you are subscribed to the Google Groups "Chromium-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to chromium-dev...@chromium.org.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/chromium-dev/69d44891-3a22-419f-b382-fa3ea2bcde11n%40chromium.org.

Alex Frick

unread,
Aug 10, 2022, 3:01:21 PM8/10/22
to Chromium-dev, Xiaohan Wang, Chromium-dev, Alex Frick
It wouldn't be for production. I make a Chromium fork called Thorium > https://thorium.rocks/, but I also make vanilla dev chromium builds, lately, I have been busy so have been downloading the linux snapshots. 

When I say it ships with vanilla snapshots I mean those downloaded from here > https://commondatastorage.googleapis.com/chromium-browser-snapshots/index.html which is also what https://download-chromium.appspot.com/ links to

Xiaohan Wang (王消寒)

unread,
Aug 10, 2022, 3:13:16 PM8/10/22
to Alex Frick, Chromium-dev
I downloaded from  https://download-chromium.appspot.com/ but didn't see libclearkeycdm...

The build file for clearkeycdm is here. You juse need to have "enable_library_cdms" enabled, which should already be the case on windows.

Alex Frick

unread,
Aug 10, 2022, 7:33:25 PM8/10/22
to Chromium-dev, Xiaohan Wang, Chromium-dev, Alex Frick
You're probably downloading the Windows release then. Download a linux release, in the folder is a ClearKeyCdm/_platform_specific/linux_x64/libclearkeycdm.so, which is very similar to the Widevine/_platform_specific/linux_x64/libwidevinecdm.so present in builds with widevine.

Alex Frick

unread,
Aug 10, 2022, 7:35:06 PM8/10/22
to Chromium-dev, Alex Frick, Xiaohan Wang, Chromium-dev
And I dont think "enable_library_cdms" is the way to do it, as it defaults to true for both debug and official builds, no matter if "enable_widevine" is enabled or disabled.

Xiaohan Wang (王消寒)

unread,
Aug 10, 2022, 7:43:42 PM8/10/22
to Alex Frick, Chromium-dev
Thanks for the additional info! I can confirm what you described, which is odd and probably should not happen. I'll file a bug and investigate.

Xiaohan Wang (王消寒)

unread,
Aug 10, 2022, 8:11:27 PM8/10/22
to Alex Frick, Chromium-dev

Alex Frick

unread,
Aug 12, 2022, 10:19:37 AM8/12/22
to Chromium-dev, Xiaohan Wang, Chromium-dev, Alex Frick
Although, I don't think it's bad to include it, since these snapshots are for developers anyway. I would still like to know how to build it, like what target or what args.gn to use.

John Rummell

unread,
Aug 12, 2022, 2:33:22 PM8/12/22
to frick...@gmail.com, Chromium-dev, Xiaohan Wang
The target is "clear_key_cdm" (found here). It is only included as a data_deps when building test code here.

Alex Frick

unread,
Aug 12, 2022, 4:39:40 PM8/12/22
to Chromium-dev, jrum...@chromium.org, Chromium-dev, Xiaohan Wang, Alex Frick
I'll just move it into the regular build.gn, that way it will build since enable_library_cdms is on by default when building with widevine.
Reply all
Reply to author
Forward
0 new messages