summaryrefslogtreecommitdiffstats
path: root/third_party/widevine
diff options
context:
space:
mode:
authorscottmg <scottmg@chromium.org>2014-12-02 23:28:00 -0800
committerCommit bot <commit-bot@chromium.org>2014-12-03 07:29:20 +0000
commit1c240d2719e764ed0108aa59ba35a6d99c00491a (patch)
treef33b022e82cbca0f69637da64415fe5259496c89 /third_party/widevine
parentd83fc265629d2a24078132b260c76192f3cc68f1 (diff)
downloadchromium_src-1c240d2719e764ed0108aa59ba35a6d99c00491a.zip
chromium_src-1c240d2719e764ed0108aa59ba35a6d99c00491a.tar.gz
chromium_src-1c240d2719e764ed0108aa59ba35a6d99c00491a.tar.bz2
gn format //third_party
Uses gn binary at head. No intended functionality change. R=brettw@chromium.org TBR=scherkus@chromium.org BUG=348474 Review URL: https://codereview.chromium.org/779473002 Cr-Commit-Position: refs/heads/master@{#306567}
Diffstat (limited to 'third_party/widevine')
-rw-r--r--third_party/widevine/cdm/BUILD.gn32
1 files changed, 14 insertions, 18 deletions
diff --git a/third_party/widevine/cdm/BUILD.gn b/third_party/widevine/cdm/BUILD.gn
index ecf3251..b5aa3de 100644
--- a/third_party/widevine/cdm/BUILD.gn
+++ b/third_party/widevine/cdm/BUILD.gn
@@ -14,29 +14,20 @@ if (is_android) {
} else if (is_chrome_branded) {
if (is_chromeos) {
widevine_cdm_version_h_file =
- "chromeos/$widevine_arch/widevine_cdm_version.h"
- widevine_cdm_binary_files = [
- "chromeos/$widevine_arch/libwidevinecdm.so",
- ]
+ "chromeos/$widevine_arch/widevine_cdm_version.h"
+ widevine_cdm_binary_files = [ "chromeos/$widevine_arch/libwidevinecdm.so" ]
} else if (is_linux) {
- widevine_cdm_version_h_file =
- "linux/$widevine_arch/widevine_cdm_version.h"
- widevine_cdm_binary_files = [
- "linux/$widevine_arch/libwidevinecdm.so",
- ]
+ widevine_cdm_version_h_file = "linux/$widevine_arch/widevine_cdm_version.h"
+ widevine_cdm_binary_files = [ "linux/$widevine_arch/libwidevinecdm.so" ]
} else if (is_win) {
- widevine_cdm_version_h_file =
- "win/$widevine_arch/widevine_cdm_version.h"
+ widevine_cdm_version_h_file = "win/$widevine_arch/widevine_cdm_version.h"
widevine_cdm_binary_files = [
"win/$widevine_arch/widevinecdm.dll",
"win/$widevine_arch/widevinecdm.dll.lib",
]
} else if (is_mac) {
- widevine_cdm_version_h_file =
- "mac/$widevine_arch/widevine_cdm_version.h"
- widevine_cdm_binary_files = [
- "mac/$widevine_arch/libwidevinecdm.dylib",
- ]
+ widevine_cdm_version_h_file = "mac/$widevine_arch/widevine_cdm_version.h"
+ widevine_cdm_binary_files = [ "mac/$widevine_arch/libwidevinecdm.dylib" ]
} else {
# Other platforms, use the default one.
widevine_cdm_version_h_file = "widevine_cdm_version.h"
@@ -50,7 +41,10 @@ if (is_android) {
# GYP version: third_party/widevine/cdm/widevine_cdm.gyp:widevine_cdm_version_h
copy("version_h") {
- sources = [ widevine_cdm_version_h_file ]
+ sources = [
+ widevine_cdm_version_h_file,
+ ]
+
# TODO(brettw) this should go into target_out_dir and callers should include
# it from there. This requires, however, renaming the default
# widevine_cdm_version.h in this directory to avoid conflicts.
@@ -66,6 +60,7 @@ if (widevine_cdm_binary_files == []) {
copy("binaries") {
sources = widevine_cdm_binary_files
outputs = [ "$root_out_dir/{{source_file_part}}" ]
+
# TODO(GYP)
# 'COPY_PHASE_STRIP': 'NO',
}
@@ -77,12 +72,13 @@ source_set("adapter") {
":version_h",
":binaries",
"//ppapi:ppapi_cpp",
+
#'<(DEPTH)/media/media_cdm_adapter.gyp:cdmadapter', TODO(GYP)
]
}
if (is_linux) {
- libs = [ rebase_path("$root_out_dir/libwidevinecdm.so", root_build_dir) ]
+ libs = [ rebase_path("$root_out_dir/libwidevinecdm.so", root_build_dir) ]
} else if (is_win) {
libs = [ rebase_path("$root_out_dir/widevinecdm.dll.lib", root_build_dir) ]
} else if (is_mac) {