| 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/cdm_adapter.gni") |
| 9 import("//third_party/widevine/cdm/widevine.gni") | 9 import("//third_party/widevine/cdm/widevine.gni") |
| 10 | 10 |
| (...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 103 # the GN build. | 103 # the GN build. |
| 104 } | 104 } |
| 105 } | 105 } |
| 106 } else { | 106 } else { |
| 107 group("widevinecdm") { | 107 group("widevinecdm") { |
| 108 # NOP | 108 # NOP |
| 109 } | 109 } |
| 110 } | 110 } |
| 111 | 111 |
| 112 if ((is_chrome_branded || enable_widevine) && enable_pepper_cdms) { | 112 if ((is_chrome_branded || enable_widevine) && enable_pepper_cdms) { |
| 113 adapter_resource_file = "$target_gen_dir/widevinecdmadapter_version.rc" | 113 # Produce and compile the .rc file. |
| 114 | |
| 115 # Produce the .rc file. | |
| 116 process_version("widevinecdmadapter_resources") { | 114 process_version("widevinecdmadapter_resources") { |
| 117 visibility = [ ":*" ] | 115 visibility = [ ":*" ] |
| 118 sources = [ | 116 sources = [ |
| 119 "BRANDING", | 117 "BRANDING", |
| 120 "widevinecdmadapter.ver", | 118 "widevinecdmadapter.ver", |
| 121 ] | 119 ] |
| 122 output = adapter_resource_file | 120 output = "$target_gen_dir/widevinecdmadapter_version.rc" |
| 123 } | 121 } |
| 124 | 122 |
| 125 cdm_adapter("widevinecdmadapter") { | 123 cdm_adapter("widevinecdmadapter") { |
| 126 sources = [ | |
| 127 adapter_resource_file, | |
| 128 ] | |
| 129 deps = [ | 124 deps = [ |
| 130 ":widevinecdmadapter_resources", | 125 ":widevinecdmadapter_resources", |
| 131 ":widevinecdm", | 126 ":widevinecdm", |
| 132 ":version_h", | 127 ":version_h", |
| 133 "//ppapi/cpp", | 128 "//ppapi/cpp", |
| 134 ] | 129 ] |
| 135 | 130 |
| 136 if (is_linux) { | 131 if (is_linux) { |
| 137 ldflags = | 132 ldflags = |
| 138 [ rebase_path("$root_out_dir/libwidevinecdm.so", root_build_dir) ] | 133 [ rebase_path("$root_out_dir/libwidevinecdm.so", root_build_dir) ] |
| (...skipping 16 matching lines...) Expand all Loading... |
| 155 # on the license server. | 150 # on the license server. |
| 156 source_set("widevine_test_license_server") { | 151 source_set("widevine_test_license_server") { |
| 157 if (is_chrome_branded && is_linux) { | 152 if (is_chrome_branded && is_linux) { |
| 158 deps = [ | 153 deps = [ |
| 159 # TODO(jrummell) | 154 # TODO(jrummell) |
| 160 # This target should be removed and targets should have datadeps on this t
arget: | 155 # This target should be removed and targets should have datadeps on this t
arget: |
| 161 #"//third_party/widevine/test/license_server/license_server.gyp:test_licen
se_server" | 156 #"//third_party/widevine/test/license_server/license_server.gyp:test_licen
se_server" |
| 162 ] | 157 ] |
| 163 } | 158 } |
| 164 } | 159 } |
| OLD | NEW |