| 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 widevine_arch = cpu_arch | 5 widevine_arch = cpu_arch |
| 6 if (widevine_arch == "x86") { | 6 if (widevine_arch == "x86") { |
| 7 widevine_arch = "ia32" | 7 widevine_arch = "ia32" |
| 8 } | 8 } |
| 9 | 9 |
| 10 if (is_android) { | 10 if (enable_widevine) { |
| 11 # Always available on Android regardless of branding. | 11 if (is_android) { |
| 12 widevine_cdm_version_h_file = "android/widevine_cdm_version.h" | 12 widevine_cdm_version_h_file = "android/widevine_cdm_version.h" |
| 13 widevine_cdm_binary_files = [] | 13 widevine_cdm_binary_files = [] |
| 14 } else if (is_chrome_branded) { | 14 } else if (is_chromeos) { |
| 15 if (is_chromeos) { | |
| 16 widevine_cdm_version_h_file = | 15 widevine_cdm_version_h_file = |
| 17 "chromeos/$widevine_arch/widevine_cdm_version.h" | 16 "chromeos/$widevine_arch/widevine_cdm_version.h" |
| 18 widevine_cdm_binary_files = [ | 17 widevine_cdm_binary_files = [ |
| 19 "chromeos/$widevine_arch/libwidevinecdm.so", | 18 "chromeos/$widevine_arch/libwidevinecdm.so", |
| 20 ] | 19 ] |
| 21 } else if (is_linux) { | 20 } else if (is_linux) { |
| 22 widevine_cdm_version_h_file = | 21 widevine_cdm_version_h_file = |
| 23 "linux/$widevine_arch/widevine_cdm_version.h" | 22 "linux/$widevine_arch/widevine_cdm_version.h" |
| 24 widevine_cdm_binary_files = [ | 23 widevine_cdm_binary_files = [ |
| 25 "linux/$widevine_arch/libwidevinecdm.so", | 24 "linux/$widevine_arch/libwidevinecdm.so", |
| (...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 65 } else { | 64 } else { |
| 66 copy("binaries") { | 65 copy("binaries") { |
| 67 sources = widevine_cdm_binary_files | 66 sources = widevine_cdm_binary_files |
| 68 outputs = [ "$root_out_dir/{{source_file_part}}" ] | 67 outputs = [ "$root_out_dir/{{source_file_part}}" ] |
| 69 # TODO(GYP) | 68 # TODO(GYP) |
| 70 # 'COPY_PHASE_STRIP': 'NO', | 69 # 'COPY_PHASE_STRIP': 'NO', |
| 71 } | 70 } |
| 72 } | 71 } |
| 73 | 72 |
| 74 source_set("adapter") { | 73 source_set("adapter") { |
| 75 if (is_chrome_branded) { | 74 if (enable_widevine) { |
| 76 deps = [ | 75 deps = [ |
| 77 ":version_h", | 76 ":version_h", |
| 78 ":binaries", | 77 ":binaries", |
| 79 "//ppapi:ppapi_cpp", | 78 "//ppapi:ppapi_cpp", |
| 80 #'<(DEPTH)/media/media_cdm_adapter.gyp:cdmadapter', TODO(GYP) | 79 #'<(DEPTH)/media/media_cdm_adapter.gyp:cdmadapter', TODO(GYP) |
| 81 ] | 80 ] |
| 82 } | 81 } |
| 83 | 82 |
| 84 if (is_linux) { | 83 if (is_linux) { |
| 85 libs = [ rebase_path("$root_out_dir/libwidevinecdm.so", root_build_dir) ] | 84 libs = [ rebase_path("$root_out_dir/libwidevinecdm.so", root_build_dir) ] |
| 86 } else if (is_win) { | 85 } else if (is_win) { |
| 87 libs = [ rebase_path("$root_out_dir/widevinecdm.dll.lib", root_build_dir) ] | 86 libs = [ rebase_path("$root_out_dir/widevinecdm.dll.lib", root_build_dir) ] |
| 88 } else if (is_mac) { | 87 } else if (is_mac) { |
| 89 libs = [ rebase_path("$root_out_dir/libwidevinecdm.dylib", root_build_dir) ] | 88 libs = [ rebase_path("$root_out_dir/libwidevinecdm.dylib", root_build_dir) ] |
| 90 } | 89 } |
| 91 } | 90 } |
| 92 | 91 |
| 93 # This target exists for tests to depend on that pulls in a runtime dependency | 92 # This target exists for tests to depend on that pulls in a runtime dependency |
| 94 # on the license server. | 93 # on the license server. |
| 95 source_set("widevine_test_license_server") { | 94 source_set("widevine_test_license_server") { |
| 96 if (is_chrome_branded && is_linux) { | 95 if (enable_widevine && is_linux) { |
| 97 deps = [ | 96 deps = [ |
| 98 # TODO(GYP) | 97 # TODO(GYP) |
| 99 #"//third_party/widevine/test/license_server/license_server.gyp:test_licen
se_server" | 98 #"//third_party/widevine/test/license_server/license_server.gyp:test_licen
se_server" |
| 100 ] | 99 ] |
| 101 } | 100 } |
| 102 } | 101 } |
| OLD | NEW |