| 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 'widevine_cdm_version_h_file%': 'widevine_cdm_version.h', | 7 'widevine_cdm_version_h_file%': 'widevine_cdm_version.h', |
| 8 'widevine_cdm_binary_files%': [], | 8 'widevine_cdm_binary_files%': [], |
| 9 'conditions': [ | 9 'conditions': [ |
| 10 [ 'branding == "Chrome"', { | 10 [ 'branding == "Chrome"', { |
| (...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 63 [ 'os_posix == 1 and OS != "mac"', { | 63 [ 'os_posix == 1 and OS != "mac"', { |
| 64 'cflags': ['-fvisibility=hidden'], | 64 'cflags': ['-fvisibility=hidden'], |
| 65 'type': 'loadable_module', | 65 'type': 'loadable_module', |
| 66 # Allow the plugin wrapper to find the CDM in the same directory. | 66 # Allow the plugin wrapper to find the CDM in the same directory. |
| 67 'ldflags': ['-Wl,-rpath=\$$ORIGIN'], | 67 'ldflags': ['-Wl,-rpath=\$$ORIGIN'], |
| 68 'libraries': [ | 68 'libraries': [ |
| 69 # Copied by widevine_cdm_binaries. | 69 # Copied by widevine_cdm_binaries. |
| 70 '<(PRODUCT_DIR)/libwidevinecdm.so', | 70 '<(PRODUCT_DIR)/libwidevinecdm.so', |
| 71 ], | 71 ], |
| 72 }], | 72 }], |
| 73 [ 'OS == "win" and 0', { | 73 [ 'OS == "win"', { |
| 74 'type': 'shared_library', | 74 'type': 'shared_library', |
| 75 # See http://crbug.com/237636. |
| 76 'msvs_settings': { |
| 77 'VCLinkerTool': { |
| 78 'AdditionalOptions': [ |
| 79 '/FORCE:UNRESOLVED', |
| 80 ], |
| 81 }, |
| 82 }, |
| 75 }], | 83 }], |
| 76 [ 'OS == "mac"', { | 84 [ 'OS == "mac"', { |
| 77 'type': 'loadable_module', | 85 'type': 'loadable_module', |
| 78 'product_extension': 'plugin', | 86 'product_extension': 'plugin', |
| 79 'libraries': [ | 87 'libraries': [ |
| 80 # Copied by widevine_cdm_binaries. | 88 # Copied by widevine_cdm_binaries. |
| 81 # See http://crbug.com/237636. | 89 # See http://crbug.com/237636. |
| 82 #'<(PRODUCT_DIR)/libwidevinecdm.dylib', | 90 #'<(PRODUCT_DIR)/libwidevinecdm.dylib', |
| 83 ], | 91 ], |
| 84 'xcode_settings': { | 92 'xcode_settings': { |
| (...skipping 25 matching lines...) Expand all Loading... |
| 110 'type': 'none', | 118 'type': 'none', |
| 111 'copies': [{ | 119 'copies': [{ |
| 112 # TODO(ddorwin): Do we need a sub-directory? We either need a | 120 # TODO(ddorwin): Do we need a sub-directory? We either need a |
| 113 # sub-directory or to rename manifest.json before we can copy it. | 121 # sub-directory or to rename manifest.json before we can copy it. |
| 114 'destination': '<(PRODUCT_DIR)', | 122 'destination': '<(PRODUCT_DIR)', |
| 115 'files': [ '<@(widevine_cdm_binary_files)' ], | 123 'files': [ '<@(widevine_cdm_binary_files)' ], |
| 116 }], | 124 }], |
| 117 }, | 125 }, |
| 118 ], | 126 ], |
| 119 } | 127 } |
| OLD | NEW |