| 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/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 |
| 11 widevine_arch = current_cpu | 11 widevine_arch = current_cpu |
| 12 if (widevine_arch == "x86") { | 12 if (widevine_arch == "x86") { |
| 13 widevine_arch = "ia32" | 13 widevine_arch = "ia32" |
| 14 } | 14 } |
| 15 | 15 |
| 16 if (is_android) { | 16 if (is_android) { |
| 17 # Always available on Android regardless of branding. | 17 # Always available on Android regardless of branding. |
| 18 widevine_cdm_version_h_file = "android/widevine_cdm_version.h" | 18 widevine_cdm_version_h_file = "android/widevine_cdm_version.h" |
| (...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 115 process_version("widevinecdmadapter_resources") { | 115 process_version("widevinecdmadapter_resources") { |
| 116 visibility = [ ":*" ] | 116 visibility = [ ":*" ] |
| 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 cdm_adapter("widevinecdmadapter") { | 125 ppapi_cdm_adapter("widevinecdmadapter") { |
| 126 defines = [] |
| 126 deps = [ | 127 deps = [ |
| 127 ":widevinecdmadapter_resources", | 128 ":widevinecdmadapter_resources", |
| 128 ":widevinecdm", | 129 ":widevinecdm", |
| 129 ":version_h", | 130 ":version_h", |
| 130 "//ppapi/cpp", | 131 "//ppapi/cpp", |
| 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) ] |
| (...skipping 16 matching lines...) Expand all Loading... |
| 152 # on the license server. | 153 # on the license server. |
| 153 source_set("widevine_test_license_server") { | 154 source_set("widevine_test_license_server") { |
| 154 if (is_chrome_branded && is_linux) { | 155 if (is_chrome_branded && is_linux) { |
| 155 deps = [ | 156 deps = [ |
| 156 # TODO(jrummell) | 157 # TODO(jrummell) |
| 157 # 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: |
| 158 #"//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" |
| 159 ] | 160 ] |
| 160 } | 161 } |
| 161 } | 162 } |
| OLD | NEW |