OLD | NEW |
---|---|
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 Loading... | |
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") { |
80 output_dir = "$root_out_dir/WidevineCdm" | |
80 sources = [ | 81 sources = [ |
81 "//media/cdm/stub/stub_cdm.cc", | 82 "//media/cdm/stub/stub_cdm.cc", |
82 "//media/cdm/stub/stub_cdm.h", | 83 "//media/cdm/stub/stub_cdm.h", |
83 ] | 84 ] |
84 | 85 |
85 defines = [ "CDM_IMPLEMENTATION" ] | 86 defines = [ "CDM_IMPLEMENTATION" ] |
86 | 87 |
87 deps = [ | 88 deps = [ |
88 ":version_h", | 89 ":version_h", |
89 "//base", | 90 "//base", |
(...skipping 27 matching lines...) Expand all Loading... | |
117 template_file = chrome_version_rc_template | 118 template_file = chrome_version_rc_template |
118 sources = [ | 119 sources = [ |
119 "BRANDING", | 120 "BRANDING", |
120 "widevinecdmadapter.ver", | 121 "widevinecdmadapter.ver", |
121 ] | 122 ] |
122 output = "$target_gen_dir/widevinecdmadapter_version.rc" | 123 output = "$target_gen_dir/widevinecdmadapter_version.rc" |
123 } | 124 } |
124 | 125 |
125 ppapi_cdm_adapter("widevinecdmadapter") { | 126 ppapi_cdm_adapter("widevinecdmadapter") { |
126 defines = [] | 127 defines = [] |
128 output_dir = "$root_out_dir/WidevineCdm" | |
127 deps = [ | 129 deps = [ |
128 ":version_h", | 130 ":version_h", |
129 ":widevinecdm", | 131 ":widevinecdm", |
130 ":widevinecdmadapter_resources", | 132 ":widevinecdmadapter_resources", |
131 ] | 133 ] |
132 | 134 |
133 if (is_linux) { | 135 if (is_linux) { |
134 ldflags = | 136 ldflags = [ rebase_path("$root_out_dir/WidevineCdm/libwidevinecdm.so", |
135 [ rebase_path("$root_out_dir/libwidevinecdm.so", root_build_dir) ] | 137 root_build_dir) ] |
136 } else if (is_win) { | 138 } else if (is_win) { |
137 ldflags = | 139 ldflags = [ rebase_path("$root_out_dir/WidevineCdm/widevinecdm.dll.lib", |
138 [ rebase_path("$root_out_dir/widevinecdm.dll.lib", root_build_dir) ] | 140 root_build_dir) ] |
139 } else if (is_mac) { | 141 } else if (is_mac) { |
140 ldflags = | 142 ldflags = [ rebase_path("$root_out_dir/WidevineCdm/libwidevinecdm.dylib", |
Robert Sesek
2016/05/13 22:32:42
This is probably wrong, but I'll deal with it late
xhwang
2016/05/13 22:45:37
Acknowledged.
| |
141 [ rebase_path("$root_out_dir/libwidevinecdm.dylib", root_build_dir) ] | 143 root_build_dir) ] |
142 } | 144 } |
143 } | 145 } |
144 } else { | 146 } else { |
145 # Placeholder when we're not compiling the adapter. | 147 # Placeholder when we're not compiling the adapter. |
146 group("widevinecdmadapter") { | 148 group("widevinecdmadapter") { |
147 } | 149 } |
148 } | 150 } |
149 | 151 |
150 # This target exists for tests to depend on that pulls in a runtime dependency | 152 # This target exists for tests to depend on that pulls in a runtime dependency |
151 # on the license server. | 153 # on the license server. |
152 source_set("widevine_test_license_server") { | 154 source_set("widevine_test_license_server") { |
153 if (is_chrome_branded && is_linux) { | 155 if (is_chrome_branded && is_linux) { |
154 deps = [ | 156 deps = [ |
155 # TODO(jrummell) | 157 # TODO(jrummell) |
156 # This target should be removed and targets should have data_deps on this target: | 158 # 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" | 159 #"//third_party/widevine/test/license_server/license_server.gyp:test_licen se_server" |
158 ] | 160 ] |
159 } | 161 } |
160 } | 162 } |
OLD | NEW |