In third_party/widevine/cdm/widevine_cdm.gyp, we have a widevine_cdm_manifest target:
{
# GN version: //third_party/widevine/cdm:widevine_cdm_manifest
'target_name': 'widevine_cdm_manifest',
'type': 'none',
'conditions': [
[ 'branding == "Chrome"', {
'copies': [{
'destination': '<(PRODUCT_DIR)/WidevineCdm',
'files': [ '<(widevine_cdm_manifest_file)' ],
}],
}],
],
},
On platforms like Linux, |widevine_cdm_manifest_file| is empty, where I suppose that nothing will be copied.
However, it seems gyp + ninja don't agree. The ninja file generated is like:
build WidevineCdm/.: copy ../../third_party/widevine/cdm
Then when I build widevine_cdm_manifest, it'll do the following:
COPY ../../third_party/widevine/cdm WidevineCdm
which will copy the whole src/third_party/widevine/cdm folder into out/{Debug|Release}/WidevineCdm.
This doesn't affect anything today, but it looks really bad and should be fixed.
We don't have this issue in GN as GN doesn't allow copy with empty input files.
Comment 1 by bugdroid1@chromium.org
, Jun 2 2016