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