Add Widevine CDM plugin build files.
BUG=149772 Review URL: https://chromiumcodereview.appspot.com/10981012 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@160583 0039d316-1c4b-4281-b951-d872f2087c98
This commit is contained in:
3
.gitignore
vendored
3
.gitignore
vendored
@ -231,7 +231,8 @@ v8.log
|
||||
/third_party/webgl_conformance
|
||||
/third_party/webpagereplay/
|
||||
/third_party/webrtc
|
||||
/third_party/widevine
|
||||
/third_party/widevine/cdm/binaries
|
||||
/third_party/widevine/cdm/symbols
|
||||
/third_party/wix
|
||||
/third_party/xdg-utils
|
||||
/third_party/xulrunner-sdk
|
||||
|
5
third_party/widevine/OWNERS
vendored
Normal file
5
third_party/widevine/OWNERS
vendored
Normal file
@ -0,0 +1,5 @@
|
||||
set noparent
|
||||
ddorwin@chromium.org
|
||||
scherkus@chromium.org
|
||||
xhwang@chromium.org
|
||||
|
8
third_party/widevine/cdm/README.chromium
vendored
Normal file
8
third_party/widevine/cdm/README.chromium
vendored
Normal file
@ -0,0 +1,8 @@
|
||||
Name: Widevine CDM
|
||||
Version: 0
|
||||
License: Chromium
|
||||
Security Critical: yes
|
||||
|
||||
Description:
|
||||
This directory contains build files for integrating the Widevine CDM into
|
||||
Chrome. No third-party files are checked in here.
|
111
third_party/widevine/cdm/widevine_cdm.gyp
vendored
Normal file
111
third_party/widevine/cdm/widevine_cdm.gyp
vendored
Normal file
@ -0,0 +1,111 @@
|
||||
# Copyright (c) 2012 The Chromium Authors. All rights reserved.
|
||||
# Use of this source code is governed by a BSD-style license that can be
|
||||
# found in the LICENSE file.
|
||||
|
||||
{
|
||||
'variables': {
|
||||
'widevine_cdm_version_h_file%': 'widevine_cdm_version.h',
|
||||
'widevine_cdm_binary_files%': [],
|
||||
'conditions': [
|
||||
[ 'branding == "Chrome"', {
|
||||
'conditions': [
|
||||
[ 'chromeos == 1', {
|
||||
'widevine_cdm_version_h_file%':
|
||||
'symbols/chromeos/<(target_arch)/widevine_cdm_version.h',
|
||||
'widevine_cdm_binary_files%': [
|
||||
'binaries/chromeos/<(target_arch)/libwidevinecdm.so',
|
||||
'binaries/chromeos/<(target_arch)/manifest.json',
|
||||
],
|
||||
}],
|
||||
[ 'OS == "linux" and chromeos == 0', {
|
||||
'widevine_cdm_version_h_file%':
|
||||
'symbols/linux/<(target_arch)/widevine_cdm_version.h',
|
||||
'widevine_cdm_binary_files%': [
|
||||
'binaries/linux/<(target_arch)/libwidevinecdm.so',
|
||||
'binaries/linux/<(target_arch)/manifest.json',
|
||||
],
|
||||
}],
|
||||
[ 'OS == "mac"', {
|
||||
'widevine_cdm_version_h_file%':
|
||||
'symbols/mac/<(target_arch)/widevine_cdm_version.h',
|
||||
'widevine_cdm_binary_files%': [
|
||||
'binaries/mac/<(target_arch)/libwidevinecdm.dylib',
|
||||
'binaries/mac/<(target_arch)/manifest.json',
|
||||
],
|
||||
}],
|
||||
[ 'OS == "win"', {
|
||||
'widevine_cdm_version_h_file%':
|
||||
'symbols/win/<(target_arch)/widevine_cdm_version.h',
|
||||
'widevine_cdm_binary_files%': [
|
||||
'binaries/win/<(target_arch)/widevinecdm.dll',
|
||||
'binaries/win/<(target_arch)/manifest.json',
|
||||
],
|
||||
}],
|
||||
],
|
||||
}],
|
||||
],
|
||||
},
|
||||
# Always provide a target, so we can put the logic about whether there's
|
||||
# anything to be done in this file (instead of a higher-level .gyp file).
|
||||
'targets': [
|
||||
{
|
||||
'target_name': 'widevinecdmplugin',
|
||||
'type': 'none',
|
||||
'conditions': [
|
||||
[ 'branding == "Chrome"', {
|
||||
'dependencies': [
|
||||
'<(DEPTH)/ppapi/ppapi.gyp:ppapi_cpp',
|
||||
'widevine_cdm_version_h',
|
||||
'widevine_cdm_binaries',
|
||||
],
|
||||
'sources': [
|
||||
'<(DEPTH)/webkit/media/crypto/ppapi/cdm_wrapper.cc',
|
||||
'<(DEPTH)/webkit/media/crypto/ppapi/content_decryption_module.h',
|
||||
'<(DEPTH)/webkit/media/crypto/ppapi/linked_ptr.h',
|
||||
],
|
||||
'conditions': [
|
||||
[ 'os_posix == 1 and OS != "mac"', {
|
||||
'cflags': ['-fvisibility=hidden'],
|
||||
'type': 'loadable_module',
|
||||
# -gstabs, used in the official builds, causes an ICE. Simply
|
||||
# remove it.
|
||||
'cflags!': ['-gstabs'],
|
||||
}],
|
||||
[ 'OS == "win"', {
|
||||
'type': 'shared_library',
|
||||
}],
|
||||
[ 'OS == "mac"', {
|
||||
'type': 'loadable_module',
|
||||
'mac_bundle': 1,
|
||||
'product_extension': 'plugin',
|
||||
'xcode_settings': {
|
||||
'OTHER_LDFLAGS': [
|
||||
# Not to strip important symbols by -Wl,-dead_strip.
|
||||
'-Wl,-exported_symbol,_PPP_GetInterface',
|
||||
'-Wl,-exported_symbol,_PPP_InitializeModule',
|
||||
'-Wl,-exported_symbol,_PPP_ShutdownModule'
|
||||
]},
|
||||
}],
|
||||
],
|
||||
}],
|
||||
],
|
||||
},
|
||||
{
|
||||
'target_name': 'widevine_cdm_version_h',
|
||||
'type': 'none',
|
||||
'copies': [{
|
||||
'destination': '<(SHARED_INTERMEDIATE_DIR)',
|
||||
'files': [ '<(widevine_cdm_version_h_file)' ],
|
||||
}],
|
||||
},
|
||||
{
|
||||
'target_name': 'widevine_cdm_binaries',
|
||||
'type': 'none',
|
||||
'copies': [{
|
||||
# TODO(ddorwin): Do we need a sub-directory?
|
||||
'destination': '<(PRODUCT_DIR)',
|
||||
'files': [ '<@(widevine_cdm_binary_files)' ],
|
||||
}],
|
||||
},
|
||||
],
|
||||
}
|
16
third_party/widevine/cdm/widevine_cdm_version.h
vendored
Normal file
16
third_party/widevine/cdm/widevine_cdm_version.h
vendored
Normal file
@ -0,0 +1,16 @@
|
||||
// Copyright (c) 2012 The Chromium Authors. All rights reserved.
|
||||
// Use of this source code is governed by a BSD-style license that can be
|
||||
// found in the LICENSE file.
|
||||
|
||||
// This is a stand-in for a generated file that is available when the
|
||||
// Widevine CDM is available.
|
||||
|
||||
#ifndef WIDEVINE_CDM_VERSION_H_INCLUDED_
|
||||
#define WIDEVINE_CDM_VERSION_H_INCLUDED_
|
||||
|
||||
// If the Widevine CDM were available, we'd define two things:
|
||||
// - WIDEVINE_CDM_AVAILABLE (to indicate availability), and
|
||||
// - WIDEVINE_CDM_VERSION_STRING (with the version of the CDM that's available
|
||||
// as a string, e.g., "1.0.123.456").
|
||||
|
||||
#endif // WIDEVINE_CDM_VERSION_H_INCLUDED_
|
@ -28,6 +28,9 @@ PRUNE_PATHS = set([
|
||||
# Placeholder directory only, not third-party code.
|
||||
os.path.join('third_party','adobe'),
|
||||
|
||||
# Build files only, not third-party code.
|
||||
os.path.join('third_party','widevine'),
|
||||
|
||||
# Only binaries, used during development.
|
||||
os.path.join('third_party','valgrind'),
|
||||
|
||||
|
Reference in New Issue
Block a user