Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(88)

Issue 2005703002: (reland) media: Use platform specific folders for CDMs (Closed)

Created:
4 years, 7 months ago by xhwang
Modified:
4 years, 7 months ago
CC:
chromium-reviews, msramek+watch_chromium.org, ihf+watch_chromium.org, yusukes+watch_chromium.org, eme-reviews_chromium.org, binji+watch_chromium.org, grt+watch_chromium.org, bradnelson+warch_chromium.org, raymes+watch_chromium.org, feature-media-reviews_chromium.org, teravest+watch_chromium.org, tzik, mcasas+watch+vc_chromium.org, wfh+watch_chromium.org, piman+watch_chromium.org, markusheintz_, Michael Moss, miu+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

(reland) media: Use platform specific folders for CDMs This is a reland of commit e13213d846ff7bdd794588b7efd152c3b5080a8d with a minor fix in media_cdm.gypi where we use product_dir for clearkeycdm on all platforms except for Mac. On Mac, we use the default product_dir, and then copy the library to the platform specific folder. Original CL Description: * Purpose of this CL: To support bundled CDM using DefaultCompnentInstaller, the folder structure of bundled CDMs should be the same as component updated CDMs. For component CDMs, the folder structure is like: <DIR_USER_DATA>/WidevineCdm/<version>/_platform_specific/win_x64 For bundled CDM, the folder structure should be like: <DIR_COMPONENTS>/WidevineCdm/_platform_specific/win_x64 Note that the <version> folder is not needed in this case. * What this CL does: - Introduce cdm_paths.* to put CDMs in platform specific folders. On Win/Mac, we have something like WidevineCdm/_platform_specific/win_x64. On Linux/Cros, we don't use platform specific folders. - On Mac, strip_save_dsym doesn't work with targets with "product_dir" (in gyp build). So we build to the default output dir first, then copy it over to the platform specific folder. See http://crbug.com/611990 for more details. - Updated all tests to support platform specific folders. - Update installer files to bundle the CDM (adapter) in the right folder. TBR=gab@chromium.org,ddorwin@chromium.org,thestig@chromium.org,rsesek@chromium.org, BUG=582622, 611990 TEST=All tests pass. Tested on Mac and Linux. Committed: https://crrev.com/c3a252bbf7740877d2c7c515e093554de5f2b423 Cr-Commit-Position: refs/heads/master@{#395280}

Patch Set 1 : original #

Patch Set 2 : fix #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+524 lines, -100 lines) Patch
M chrome/BUILD.gn View 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/BUILD.gn View 1 chunk +8 lines, -0 lines 0 comments Download
M chrome/browser/DEPS View 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/content_settings/content_settings_browsertest.cc View 1 chunk +4 lines, -4 lines 0 comments Download
M chrome/browser/load_library_perf_test.cc View 2 chunks +41 lines, -23 lines 0 comments Download
M chrome/browser/media/encrypted_media_browsertest.cc View 1 chunk +6 lines, -4 lines 0 comments Download
M chrome/browser/media/encrypted_media_supported_types_browsertest.cc View 3 chunks +7 lines, -4 lines 0 comments Download
M chrome/browser/media/pepper_cdm_test_helper.h View 3 chunks +7 lines, -2 lines 0 comments Download
M chrome/browser/media/pepper_cdm_test_helper.cc View 3 chunks +12 lines, -3 lines 0 comments Download
M chrome/browser_tests.isolate View 3 chunks +39 lines, -10 lines 0 comments Download
M chrome/chrome_dll_bundle.gypi View 2 chunks +3 lines, -2 lines 0 comments Download
M chrome/chrome_installer.gypi View 3 chunks +7 lines, -4 lines 0 comments Download
M chrome/chrome_tests.gypi View 2 chunks +3 lines, -5 lines 0 comments Download
M chrome/chrome_tests_unit.gypi View 1 chunk +9 lines, -0 lines 0 comments Download
M chrome/common/BUILD.gn View 1 chunk +1 line, -0 lines 0 comments Download
M chrome/common/chrome_paths.cc View 3 chunks +4 lines, -1 line 0 comments Download
M chrome/common_constants.gyp View 1 chunk +1 line, -0 lines 0 comments Download
M chrome/installer/linux/BUILD.gn View 2 chunks +8 lines, -4 lines 0 comments Download
M chrome/installer/mini_installer/chrome.release View 1 chunk +5 lines, -1 line 0 comments Download
M chrome/test/BUILD.gn View 2 chunks +4 lines, -5 lines 0 comments Download
M chrome/tools/build/win/FILES.cfg View 1 chunk +7 lines, -1 line 0 comments Download
M media/BUILD.gn View 2 chunks +11 lines, -0 lines 0 comments Download
A media/cdm/cdm_paths.h View 1 chunk +24 lines, -0 lines 0 comments Download
A media/cdm/cdm_paths.cc View 1 chunk +68 lines, -0 lines 0 comments Download
M media/cdm/external_clear_key_test_helper.cc View 3 chunks +8 lines, -3 lines 0 comments Download
M media/cdm/ppapi/BUILD.gn View 3 chunks +4 lines, -0 lines 0 comments Download
A media/cdm/ppapi/cdm_paths.gni View 1 chunk +41 lines, -0 lines 0 comments Download
A media/cdm_paths.gypi View 1 chunk +58 lines, -0 lines 2 comments Download
M media/media.gyp View 2 chunks +20 lines, -0 lines 0 comments Download
M media/media_cdm.gypi View 1 6 chunks +62 lines, -7 lines 0 comments Download
M third_party/widevine/cdm/BUILD.gn View 5 chunks +10 lines, -4 lines 0 comments Download
M third_party/widevine/cdm/widevine_cdm.gyp View 4 chunks +36 lines, -12 lines 0 comments Download
M third_party/widevine/cdm/widevine_cdm_common.h View 1 chunk +3 lines, -0 lines 0 comments Download

Messages

Total messages: 17 (8 generated)
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2005703002/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/2005703002/20001
4 years, 7 months ago (2016-05-22 18:13:43 UTC) #4
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: linux_chromium_rel_ng on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_rel_ng/builds/233499)
4 years, 7 months ago (2016-05-22 20:49:46 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2005703002/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/2005703002/20001
4 years, 7 months ago (2016-05-23 02:28:34 UTC) #8
commit-bot: I haz the power
Committed patchset #2 (id:20001)
4 years, 7 months ago (2016-05-23 02:36:00 UTC) #10
commit-bot: I haz the power
Patchset 2 (id:??) landed as https://crrev.com/c3a252bbf7740877d2c7c515e093554de5f2b423 Cr-Commit-Position: refs/heads/master@{#395280}
4 years, 7 months ago (2016-05-23 02:37:06 UTC) #12
lmilko
https://codereview.chromium.org/2005703002/diff/20001/media/cdm_paths.gypi File media/cdm_paths.gypi (right): https://codereview.chromium.org/2005703002/diff/20001/media/cdm_paths.gypi#newcode39 media/cdm_paths.gypi:39: 'component_arch%': '<(current_cpu)' This should probably be target_arch instead of ...
4 years, 7 months ago (2016-05-23 10:58:18 UTC) #14
xhwang
https://codereview.chromium.org/2005703002/diff/20001/media/cdm_paths.gypi File media/cdm_paths.gypi (right): https://codereview.chromium.org/2005703002/diff/20001/media/cdm_paths.gypi#newcode39 media/cdm_paths.gypi:39: 'component_arch%': '<(current_cpu)' On 2016/05/23 10:58:18, lmilko wrote: > This ...
4 years, 7 months ago (2016-05-23 14:51:56 UTC) #15
xhwang
On 2016/05/23 14:51:56, xhwang wrote: > https://codereview.chromium.org/2005703002/diff/20001/media/cdm_paths.gypi > File media/cdm_paths.gypi (right): > > https://codereview.chromium.org/2005703002/diff/20001/media/cdm_paths.gypi#newcode39 > ...
4 years, 7 months ago (2016-05-24 17:56:22 UTC) #16
lmilko
4 years, 7 months ago (2016-05-25 08:03:29 UTC) #17
Message was sent while issue was closed.
On 2016/05/24 17:56:22, xhwang wrote:
> On 2016/05/23 14:51:56, xhwang wrote:
> > https://codereview.chromium.org/2005703002/diff/20001/media/cdm_paths.gypi
> > File media/cdm_paths.gypi (right):
> > 
> >
>
https://codereview.chromium.org/2005703002/diff/20001/media/cdm_paths.gypi#ne...
> > media/cdm_paths.gypi:39: 'component_arch%': '<(current_cpu)'
> > On 2016/05/23 10:58:18, lmilko wrote:
> > > This should probably be target_arch instead of current_cpu (current_cpu is
> > only
> > > used in GN).
> > > This broke MIPS Linux build with GYP:
> > > 
> > >
> >
>
http://www.rt-rk.com/mips-buildbot/builders/Chromium_linux_mips32r1_brcm7429/...
> > 
> > Thanks! I'll take a look and fix it.
> 
> This should've been fixed by https://codereview.chromium.org/2004253002/

Thanks, issue is fixed.

Powered by Google App Engine
This is Rietveld 408576698