| 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/process_version_rc_template.gni") | 7 import("//chrome/process_version_rc_template.gni") |
| 8 import("//media/cdm/ppapi/cdm_paths.gni") | 8 import("//media/cdm/ppapi/cdm_paths.gni") |
| 9 import("//media/cdm/ppapi/ppapi_cdm_adapter.gni") | 9 import("//media/cdm/ppapi/ppapi_cdm_adapter.gni") |
| 10 import("//ppapi/features/features.gni") |
| 10 import("//third_party/widevine/cdm/widevine.gni") | 11 import("//third_party/widevine/cdm/widevine.gni") |
| 11 | 12 |
| 12 widevine_arch = current_cpu | 13 widevine_arch = current_cpu |
| 13 if (widevine_arch == "x86") { | 14 if (widevine_arch == "x86") { |
| 14 widevine_arch = "ia32" | 15 widevine_arch = "ia32" |
| 15 } | 16 } |
| 16 | 17 |
| 17 widevine_cdm_binary_files = [] | 18 widevine_cdm_binary_files = [] |
| 18 widevine_cdm_manifest_file = [] | 19 widevine_cdm_manifest_file = [] |
| 19 | 20 |
| (...skipping 25 matching lines...) Expand all Loading... |
| 45 } | 46 } |
| 46 } else if (enable_widevine) { | 47 } else if (enable_widevine) { |
| 47 widevine_cdm_version_h_file = "stub/widevine_cdm_version.h" | 48 widevine_cdm_version_h_file = "stub/widevine_cdm_version.h" |
| 48 widevine_cdm_manifest_file = [ "stub/manifest.json" ] | 49 widevine_cdm_manifest_file = [ "stub/manifest.json" ] |
| 49 } else { | 50 } else { |
| 50 # No branding, use the default one. | 51 # No branding, use the default one. |
| 51 widevine_cdm_version_h_file = "widevine_cdm_version.h" | 52 widevine_cdm_version_h_file = "widevine_cdm_version.h" |
| 52 } | 53 } |
| 53 | 54 |
| 54 copy("version_h") { | 55 copy("version_h") { |
| 56 visibility = [ ":*" ] # Depend on ":headers" instead. |
| 55 sources = [ | 57 sources = [ |
| 56 widevine_cdm_version_h_file, | 58 widevine_cdm_version_h_file, |
| 57 ] | 59 ] |
| 58 | 60 |
| 59 # TODO(brettw) this should go into target_out_dir and callers should include | 61 # TODO(brettw) this should go into target_out_dir and callers should include |
| 60 # it from there. This requires, however, renaming the default | 62 # it from there. This requires, however, renaming the default |
| 61 # widevine_cdm_version.h in this directory to avoid conflicts. | 63 # widevine_cdm_version.h in this directory to avoid conflicts. |
| 62 outputs = [ | 64 outputs = [ |
| 63 "$root_gen_dir/widevine_cdm_version.h", | 65 "$root_gen_dir/widevine_cdm_version.h", |
| 64 ] | 66 ] |
| 65 } | 67 } |
| 66 | 68 |
| 69 source_set("headers") { |
| 70 public = [ |
| 71 "widevine_cdm_common.h", |
| 72 ] |
| 73 |
| 74 public_deps = [ |
| 75 ":version_h", # Forward permission to use version header. |
| 76 "//ppapi/features", |
| 77 ] |
| 78 } |
| 79 |
| 67 if (widevine_cdm_binary_files != []) { | 80 if (widevine_cdm_binary_files != []) { |
| 68 copy("widevinecdm") { | 81 copy("widevinecdm") { |
| 69 sources = widevine_cdm_binary_files | 82 sources = widevine_cdm_binary_files |
| 70 outputs = [ | 83 outputs = [ |
| 71 "$root_out_dir/$widevine_cdm_path/{{source_file_part}}", | 84 "$root_out_dir/$widevine_cdm_path/{{source_file_part}}", |
| 72 ] | 85 ] |
| 73 | 86 |
| 74 # TODO(jrummell) | 87 # TODO(jrummell) |
| 75 # 'COPY_PHASE_STRIP': 'NO', | 88 # 'COPY_PHASE_STRIP': 'NO', |
| 76 } | 89 } |
| (...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 171 # on the license server. | 184 # on the license server. |
| 172 source_set("widevine_test_license_server") { | 185 source_set("widevine_test_license_server") { |
| 173 if (is_chrome_branded && is_linux) { | 186 if (is_chrome_branded && is_linux) { |
| 174 deps = [ | 187 deps = [ |
| 175 # TODO(jrummell) | 188 # TODO(jrummell) |
| 176 # This target should be removed and targets should have data_deps on this
target: | 189 # This target should be removed and targets should have data_deps on this
target: |
| 177 #"//third_party/widevine/test/license_server/license_server.gyp:test_licen
se_server" | 190 #"//third_party/widevine/test/license_server/license_server.gyp:test_licen
se_server" |
| 178 ] | 191 ] |
| 179 } | 192 } |
| 180 } | 193 } |
| OLD | NEW |