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