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

Side by Side Diff: third_party/widevine/cdm/BUILD.gn

Issue 1957643002: media: Move widevine CDM targets to WidevineCdm folder (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: comments addressed Created 4 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « media/media_cdm.gypi ('k') | third_party/widevine/cdm/widevine_cdm.gyp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # Copyright 2014 The Chromium Authors. All rights reserved. 1 # Copyright 2014 The Chromium Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be 2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file. 3 # found in the LICENSE file.
4 4
5 import("//build/config/chrome_build.gni") 5 import("//build/config/chrome_build.gni")
6 import("//build/config/features.gni") 6 import("//build/config/features.gni")
7 import("//chrome/version.gni") # TODO layering violation 7 import("//chrome/version.gni") # TODO layering violation
8 import("//media/cdm/ppapi/ppapi_cdm_adapter.gni") 8 import("//media/cdm/ppapi/ppapi_cdm_adapter.gni")
9 import("//third_party/widevine/cdm/widevine.gni") 9 import("//third_party/widevine/cdm/widevine.gni")
10 10
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
60 outputs = [ 60 outputs = [
61 "$root_gen_dir/widevine_cdm_version.h", 61 "$root_gen_dir/widevine_cdm_version.h",
62 ] 62 ]
63 } 63 }
64 64
65 # GYP version: third_party/widevine/cdm/widevine_cdm.gyp:widevinecdm 65 # GYP version: third_party/widevine/cdm/widevine_cdm.gyp:widevinecdm
66 if (widevine_cdm_binary_files != []) { 66 if (widevine_cdm_binary_files != []) {
67 copy("widevinecdm") { 67 copy("widevinecdm") {
68 sources = widevine_cdm_binary_files 68 sources = widevine_cdm_binary_files
69 outputs = [ 69 outputs = [
70 "$root_out_dir/{{source_file_part}}", 70 "$root_out_dir/WidevineCdm/{{source_file_part}}",
71 ] 71 ]
72 72
73 # TODO(jrummell) 73 # TODO(jrummell)
74 # 'COPY_PHASE_STRIP': 'NO', 74 # 'COPY_PHASE_STRIP': 'NO',
75 } 75 }
76 } else if (enable_widevine && enable_pepper_cdms) { 76 } else if (enable_widevine && enable_pepper_cdms) {
77 assert(!is_chrome_branded, "Branded Chrome should have binary files to copy.") 77 assert(!is_chrome_branded, "Branded Chrome should have binary files to copy.")
78 assert(!is_android, "Android should not have enable_pepper_cdms.") 78 assert(!is_android, "Android should not have enable_pepper_cdms.")
79 shared_library("widevinecdm") { 79 shared_library("widevinecdm") {
ddorwin 2016/05/09 23:12:56 Where does the stub get output now that you remove
xhwang 2016/05/09 23:50:05 oops, that's clearly a rebase error. I'll revert t
80 sources = [ 80 sources = [
81 "//media/cdm/stub/stub_cdm.cc", 81 "//media/cdm/stub/stub_cdm.cc",
82 "//media/cdm/stub/stub_cdm.h", 82 "//media/cdm/stub/stub_cdm.h",
83 ] 83 ]
84 84
85 defines = [ "CDM_IMPLEMENTATION" ] 85 defines = [ "CDM_IMPLEMENTATION" ]
86 86
87 deps = [ 87 deps = [
88 ":version_h", 88 ":version_h",
89 "//base", 89 "//base",
(...skipping 27 matching lines...) Expand all
117 template_file = chrome_version_rc_template 117 template_file = chrome_version_rc_template
118 sources = [ 118 sources = [
119 "BRANDING", 119 "BRANDING",
120 "widevinecdmadapter.ver", 120 "widevinecdmadapter.ver",
121 ] 121 ]
122 output = "$target_gen_dir/widevinecdmadapter_version.rc" 122 output = "$target_gen_dir/widevinecdmadapter_version.rc"
123 } 123 }
124 124
125 ppapi_cdm_adapter("widevinecdmadapter") { 125 ppapi_cdm_adapter("widevinecdmadapter") {
126 defines = [] 126 defines = []
127 output_dir = "$root_out_dir/WidevineCdm"
127 deps = [ 128 deps = [
128 ":version_h", 129 ":version_h",
129 ":widevinecdm", 130 ":widevinecdm",
130 ":widevinecdmadapter_resources", 131 ":widevinecdmadapter_resources",
131 ] 132 ]
132 133
133 if (is_linux) { 134 if (is_linux) {
134 ldflags = 135 ldflags =
135 [ rebase_path("$root_out_dir/libwidevinecdm.so", root_build_dir) ] 136 [ rebase_path("$root_out_dir/libwidevinecdm.so", root_build_dir) ]
136 } else if (is_win) { 137 } else if (is_win) {
(...skipping 14 matching lines...) Expand all
151 # on the license server. 152 # on the license server.
152 source_set("widevine_test_license_server") { 153 source_set("widevine_test_license_server") {
153 if (is_chrome_branded && is_linux) { 154 if (is_chrome_branded && is_linux) {
154 deps = [ 155 deps = [
155 # TODO(jrummell) 156 # TODO(jrummell)
156 # This target should be removed and targets should have data_deps on this target: 157 # This target should be removed and targets should have data_deps on this target:
157 #"//third_party/widevine/test/license_server/license_server.gyp:test_licen se_server" 158 #"//third_party/widevine/test/license_server/license_server.gyp:test_licen se_server"
158 ] 159 ]
159 } 160 }
160 } 161 }
OLDNEW
« no previous file with comments | « media/media_cdm.gypi ('k') | third_party/widevine/cdm/widevine_cdm.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698