diff options
author | ddorwin@chromium.org <ddorwin@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-10-06 18:44:49 +0000 |
---|---|---|
committer | ddorwin@chromium.org <ddorwin@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-10-06 18:44:49 +0000 |
commit | 2f5dc5732d6e5624a3d15f58a3b1fba6da4d1888 (patch) | |
tree | f5e63f2260b977e172fe7b388b0bb32e6984dc81 /third_party/widevine | |
parent | dca7dd933acd1c9d2ed0454679158db2fa0a3224 (diff) | |
download | chromium_src-2f5dc5732d6e5624a3d15f58a3b1fba6da4d1888.zip chromium_src-2f5dc5732d6e5624a3d15f58a3b1fba6da4d1888.tar.gz chromium_src-2f5dc5732d6e5624a3d15f58a3b1fba6da4d1888.tar.bz2 |
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
Diffstat (limited to 'third_party/widevine')
-rw-r--r-- | third_party/widevine/OWNERS | 5 | ||||
-rw-r--r-- | third_party/widevine/cdm/README.chromium | 8 | ||||
-rw-r--r-- | third_party/widevine/cdm/widevine_cdm.gyp | 111 | ||||
-rw-r--r-- | third_party/widevine/cdm/widevine_cdm_version.h | 16 |
4 files changed, 140 insertions, 0 deletions
diff --git a/third_party/widevine/OWNERS b/third_party/widevine/OWNERS new file mode 100644 index 0000000..e8ae738 --- /dev/null +++ b/third_party/widevine/OWNERS @@ -0,0 +1,5 @@ +set noparent +ddorwin@chromium.org +scherkus@chromium.org +xhwang@chromium.org + diff --git a/third_party/widevine/cdm/README.chromium b/third_party/widevine/cdm/README.chromium new file mode 100644 index 0000000..6fb6a05 --- /dev/null +++ b/third_party/widevine/cdm/README.chromium @@ -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. diff --git a/third_party/widevine/cdm/widevine_cdm.gyp b/third_party/widevine/cdm/widevine_cdm.gyp new file mode 100644 index 0000000..ace42ee --- /dev/null +++ b/third_party/widevine/cdm/widevine_cdm.gyp @@ -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)' ], + }], + }, + ], +} diff --git a/third_party/widevine/cdm/widevine_cdm_version.h b/third_party/widevine/cdm/widevine_cdm_version.h new file mode 100644 index 0000000..5b1ffeb --- /dev/null +++ b/third_party/widevine/cdm/widevine_cdm_version.h @@ -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_ |