| OLD | NEW |
| 1 # Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 # Copyright (c) 2012 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 { | 5 { |
| 6 'variables': { | 6 'variables': { |
| 7 # Allow widevinecdmadapter to be built in Chromium. | 7 # Allow widevinecdmadapter to be built in Chromium. |
| 8 'variables': { | 8 'variables': { |
| 9 'enable_widevine%': 0, | 9 'enable_widevine%': 0, |
| 10 }, | 10 }, |
| 11 'enable_widevine%': '<(enable_widevine)', | 11 'enable_widevine%': '<(enable_widevine)', |
| 12 'widevine_cdm_version_h_file%': 'widevine_cdm_version.h', | 12 'widevine_cdm_version_h_file%': 'widevine_cdm_version.h', |
| 13 # TODO(xhwang): Also include manifest.json. | |
| 14 'widevine_cdm_binary_files%': [], | 13 'widevine_cdm_binary_files%': [], |
| 15 'conditions': [ | 14 'conditions': [ |
| 16 [ 'branding == "Chrome"', { | 15 [ 'branding == "Chrome"', { |
| 17 'conditions': [ | 16 'conditions': [ |
| 18 [ 'chromeos == 1', { | 17 [ 'chromeos == 1', { |
| 19 'widevine_cdm_version_h_file%': | 18 'widevine_cdm_version_h_file%': |
| 20 'chromeos/<(target_arch)/widevine_cdm_version.h', | 19 'chromeos/<(target_arch)/widevine_cdm_version.h', |
| 21 'widevine_cdm_binary_files%': [ | 20 'widevine_cdm_binary_files%': [ |
| 22 'chromeos/<(target_arch)/libwidevinecdm.so', | 21 'chromeos/<(target_arch)/libwidevinecdm.so', |
| 23 ], | 22 ], |
| (...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 80 'sources': [ | 79 'sources': [ |
| 81 'widevinecdmadapter.ver', | 80 'widevinecdmadapter.ver', |
| 82 ], | 81 ], |
| 83 'includes': [ | 82 'includes': [ |
| 84 '../../../chrome/version_resource_rules.gypi', | 83 '../../../chrome/version_resource_rules.gypi', |
| 85 ], | 84 ], |
| 86 }, | 85 }, |
| 87 { | 86 { |
| 88 # GN version: //third_party/widevine/cdm:widevinecdmadapter | 87 # GN version: //third_party/widevine/cdm:widevinecdmadapter |
| 89 'target_name': 'widevinecdmadapter', | 88 'target_name': 'widevinecdmadapter', |
| 90 'product_dir': '<(PRODUCT_DIR)/WidevineCdm', | |
| 91 'type': 'none', | 89 'type': 'none', |
| 92 'conditions': [ | 90 'conditions': [ |
| 93 [ '(branding == "Chrome" or enable_widevine == 1) and enable_pepper_cdms
== 1', { | 91 [ '(branding == "Chrome" or enable_widevine == 1) and enable_pepper_cdms
== 1', { |
| 94 'dependencies': [ | 92 'dependencies': [ |
| 95 '<(DEPTH)/ppapi/ppapi.gyp:ppapi_cpp', | 93 '<(DEPTH)/ppapi/ppapi.gyp:ppapi_cpp', |
| 96 '<(DEPTH)/media/media_cdm_adapter.gyp:cdmadapter', | 94 '<(DEPTH)/media/media_cdm_adapter.gyp:cdmadapter', |
| 97 'widevine_cdm_version_h', | 95 'widevine_cdm_version_h', |
| 98 'widevinecdm', | 96 'widevinecdm', |
| 99 'widevinecdmadapter_resources', | 97 'widevinecdmadapter_resources', |
| 100 ], | 98 ], |
| 101 'sources': [ | 99 'sources': [ |
| 102 '<(SHARED_INTERMEDIATE_DIR)/widevinecdmadapter_version.rc', | 100 '<(SHARED_INTERMEDIATE_DIR)/widevinecdmadapter_version.rc', |
| 103 ], | 101 ], |
| 104 'conditions': [ | 102 'conditions': [ |
| 105 [ 'os_posix == 1 and OS != "mac"', { | 103 [ 'os_posix == 1 and OS != "mac"', { |
| 106 'libraries': [ | 104 'libraries': [ |
| 107 '-lrt', | 105 '-lrt', |
| 108 # Copied/created by widevinecdm. | 106 # Copied/created by widevinecdm. |
| 109 '<(PRODUCT_DIR)/WidevineCdm/libwidevinecdm.so', | 107 '<(PRODUCT_DIR)/libwidevinecdm.so', |
| 110 ], | 108 ], |
| 111 }], | 109 }], |
| 112 [ 'OS == "win"', { | 110 [ 'OS == "win"', { |
| 113 'libraries': [ | 111 'libraries': [ |
| 114 # Copied/created by widevinecdm. | 112 # Copied/created by widevinecdm. |
| 115 '<(PRODUCT_DIR)/WidevineCdm/widevinecdm.dll.lib', | 113 '<(PRODUCT_DIR)/widevinecdm.dll.lib', |
| 116 ], | 114 ], |
| 117 }], | 115 }], |
| 118 [ 'OS == "mac"', { | 116 [ 'OS == "mac"', { |
| 119 'libraries': [ | 117 'libraries': [ |
| 120 # Copied/created by widevinecdm. | 118 # Copied/created by widevinecdm. |
| 121 '<(PRODUCT_DIR)/WidevineCdm/libwidevinecdm.dylib', | 119 '<(PRODUCT_DIR)/libwidevinecdm.dylib', |
| 122 ], | 120 ], |
| 123 }], | 121 }], |
| 124 ], | 122 ], |
| 125 }], | 123 }], |
| 126 ], | 124 ], |
| 127 }, | 125 }, |
| 128 { | 126 { |
| 129 # GN version: //third_party/widevine/cdm:version_h | 127 # GN version: //third_party/widevine/cdm:version_h |
| 130 'target_name': 'widevine_cdm_version_h', | 128 'target_name': 'widevine_cdm_version_h', |
| 131 'type': 'none', | 129 'type': 'none', |
| 132 'copies': [{ | 130 'copies': [{ |
| 133 'destination': '<(SHARED_INTERMEDIATE_DIR)', | 131 'destination': '<(SHARED_INTERMEDIATE_DIR)', |
| 134 'files': [ '<(widevine_cdm_version_h_file)' ], | 132 'files': [ '<(widevine_cdm_version_h_file)' ], |
| 135 }], | 133 }], |
| 136 }, | 134 }, |
| 137 { | 135 { |
| 138 # GN version: //third_party/widevine/cdm:widevinecdm | 136 # GN version: //third_party/widevine/cdm:widevinecdm |
| 139 'target_name': 'widevinecdm', | 137 'target_name': 'widevinecdm', |
| 140 'type': 'none', | 138 'type': 'none', |
| 141 'conditions': [ | 139 'conditions': [ |
| 142 [ 'branding == "Chrome"', { | 140 [ 'branding == "Chrome"', { |
| 143 'conditions': [ | 141 'conditions': [ |
| 144 [ 'OS=="mac"', { | 142 [ 'OS=="mac"', { |
| 145 'xcode_settings': { | 143 'xcode_settings': { |
| 146 'COPY_PHASE_STRIP': 'NO', | 144 'COPY_PHASE_STRIP': 'NO', |
| 147 } | 145 } |
| 148 }], | 146 }], |
| 149 ], | 147 ], |
| 150 'copies': [{ | 148 'copies': [{ |
| 151 'destination': '<(PRODUCT_DIR)/WidevineCdm', | 149 # TODO(ddorwin): Do we need a sub-directory? We either need a |
| 150 # sub-directory or to rename manifest.json before we can copy it. |
| 151 'destination': '<(PRODUCT_DIR)', |
| 152 'files': [ '<@(widevine_cdm_binary_files)' ], | 152 'files': [ '<@(widevine_cdm_binary_files)' ], |
| 153 }], | 153 }], |
| 154 }], | 154 }], |
| 155 [ 'branding != "Chrome" and enable_widevine == 1', { | 155 [ 'branding != "Chrome" and enable_widevine == 1', { |
| 156 'product_dir': '<(PRODUCT_DIR)/WidevineCdm', | |
| 157 'conditions': [ | 156 'conditions': [ |
| 158 ['os_posix == 1 and OS != "mac"', { | 157 ['os_posix == 1 and OS != "mac"', { |
| 159 'type': 'loadable_module', | 158 'type': 'loadable_module', |
| 160 # This causes the binary to be put in <(PRODUCT_DIR)/WidevineCdm | 159 # Note that this causes the binary to be put in PRODUCT_DIR |
| 161 # instead of lib/. This matches what happens in the copy step | 160 # instead of lib/. This matches what happens in the copy step |
| 162 # above. | 161 # above. |
| 163 }], | 162 }], |
| 164 ['OS == "mac" or OS == "win"', { | 163 ['OS == "mac" or OS == "win"', { |
| 165 'type': 'shared_library', | 164 'type': 'shared_library', |
| 166 }], | 165 }], |
| 167 ['OS == "mac"', { | 166 ['OS == "mac"', { |
| 168 'xcode_settings': { | 167 'xcode_settings': { |
| 169 'DYLIB_INSTALL_NAME_BASE': '@loader_path', | 168 'DYLIB_INSTALL_NAME_BASE': '@loader_path', |
| 170 }, | 169 }, |
| (...skipping 18 matching lines...) Expand all Loading... |
| 189 'conditions': [ | 188 'conditions': [ |
| 190 [ 'branding == "Chrome" and OS == "linux"', { | 189 [ 'branding == "Chrome" and OS == "linux"', { |
| 191 'dependencies': [ | 190 'dependencies': [ |
| 192 '<(DEPTH)/third_party/widevine/test/license_server/license_server.gy
p:test_license_server', | 191 '<(DEPTH)/third_party/widevine/test/license_server/license_server.gy
p:test_license_server', |
| 193 ], | 192 ], |
| 194 }], | 193 }], |
| 195 ], | 194 ], |
| 196 }, | 195 }, |
| 197 ], | 196 ], |
| 198 } | 197 } |
| OLD | NEW |