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 # This file contains resources for the main Mac chromium bundle. | 5 # This file contains resources for the main Mac chromium bundle. |
6 { | 6 { |
7 # The main browser executable's name is <(mac_product_name). | 7 # The main browser executable's name is <(mac_product_name). |
8 # Certain things will get confused if two modules in the | 8 # Certain things will get confused if two modules in the |
9 # executable share the same name, so append " Framework" to the | 9 # executable share the same name, so append " Framework" to the |
10 # product_name used for the framework. This will result in | 10 # product_name used for the framework. This will result in |
(...skipping 118 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
129 ['branding == "Chrome"', { | 129 ['branding == "Chrome"', { |
130 'files': [ | 130 'files': [ |
131 '<(PRODUCT_DIR)/PepperFlash/PepperFlashPlayer.plugin', | 131 '<(PRODUCT_DIR)/PepperFlash/PepperFlashPlayer.plugin', |
132 '<(PRODUCT_DIR)/PepperFlash/manifest.json', | 132 '<(PRODUCT_DIR)/PepperFlash/manifest.json', |
133 ], | 133 ], |
134 }], | 134 }], |
135 ], | 135 ], |
136 }, | 136 }, |
137 { | 137 { |
138 # The adapter is not a complete library on its own. It needs the Widevine | 138 # The adapter is not a complete library on its own. It needs the Widevine |
139 # CDM to work. | 139 # CDM to work. The CDM and manifest are either the actual Widevine CDM |
| 140 # and manifest or stubs used for testing only. The choice is made within |
| 141 # the corresponding Widevine targets based on branding. |
140 'destination': '<(PRODUCT_DIR)/$(CONTENTS_FOLDER_PATH)/Libraries/<(widevin
e_cdm_path)', | 142 'destination': '<(PRODUCT_DIR)/$(CONTENTS_FOLDER_PATH)/Libraries/<(widevin
e_cdm_path)', |
141 'files': [], | 143 'files': [], |
142 'conditions': [ | 144 'conditions': [ |
143 ['branding == "Chrome"', { | 145 ['branding == "Chrome" or enable_widevine == 1', { |
144 'files': [ | 146 'files': [ |
145 '<(PRODUCT_DIR)/<(widevine_cdm_path)/libwidevinecdm.dylib', | 147 '<(PRODUCT_DIR)/<(widevine_cdm_path)/libwidevinecdm.dylib', |
146 '<(PRODUCT_DIR)/<(widevine_cdm_path)/widevinecdmadapter.plugin', | 148 '<(PRODUCT_DIR)/<(widevine_cdm_path)/widevinecdmadapter.plugin', |
147 ], | 149 ], |
148 }], | 150 }], |
149 ], | 151 ], |
150 }, | 152 }, |
151 { | 153 { |
152 'destination': '<(PRODUCT_DIR)/$(CONTENTS_FOLDER_PATH)/Libraries/WidevineC
dm', | 154 'destination': '<(PRODUCT_DIR)/$(CONTENTS_FOLDER_PATH)/Libraries/WidevineC
dm', |
153 'files': [], | 155 'files': [], |
154 'conditions': [ | 156 'conditions': [ |
155 ['branding == "Chrome"', { | 157 ['branding == "Chrome" or enable_widevine == 1', { |
156 'files': [ | 158 'files': [ |
157 '<(PRODUCT_DIR)/WidevineCdm/manifest.json', | 159 '<(PRODUCT_DIR)/WidevineCdm/manifest.json', |
158 ], | 160 ], |
159 }], | 161 }], |
160 ], | 162 ], |
161 }, | 163 }, |
162 { | 164 { |
163 # Copy of resources used by tests. | 165 # Copy of resources used by tests. |
164 'destination': '<(PRODUCT_DIR)/pseudo_locales', | 166 'destination': '<(PRODUCT_DIR)/pseudo_locales', |
165 'files': [ | 167 'files': [ |
(...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
254 ], | 256 ], |
255 }], | 257 }], |
256 ['v8_use_external_startup_data==1', { | 258 ['v8_use_external_startup_data==1', { |
257 'mac_bundle_resources': [ | 259 'mac_bundle_resources': [ |
258 '<(PRODUCT_DIR)/natives_blob.bin', | 260 '<(PRODUCT_DIR)/natives_blob.bin', |
259 '<(PRODUCT_DIR)/snapshot_blob.bin', | 261 '<(PRODUCT_DIR)/snapshot_blob.bin', |
260 ], | 262 ], |
261 }], | 263 }], |
262 ], # conditions | 264 ], # conditions |
263 } | 265 } |
OLD | NEW |