Chromium Code Reviews| 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 'conditions': [ | 7 'conditions': [ |
| 8 ['inside_chromium_build==0', { | 8 ['inside_chromium_build==0', { |
| 9 'webkit_src_dir': '../../../../..', | 9 'webkit_src_dir': '../../../../..', |
| 10 },{ | 10 },{ |
| (...skipping 174 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 185 '<(DEPTH)/media/media.gyp:shared_memory_support', | 185 '<(DEPTH)/media/media.gyp:shared_memory_support', |
| 186 ], | 186 ], |
| 187 'sources': [ | 187 'sources': [ |
| 188 'crypto/ppapi/cdm_video_decoder.cc', | 188 'crypto/ppapi/cdm_video_decoder.cc', |
| 189 'crypto/ppapi/cdm_video_decoder.h', | 189 'crypto/ppapi/cdm_video_decoder.h', |
| 190 'crypto/ppapi/clear_key_cdm.cc', | 190 'crypto/ppapi/clear_key_cdm.cc', |
| 191 'crypto/ppapi/clear_key_cdm.h', | 191 'crypto/ppapi/clear_key_cdm.h', |
| 192 ], | 192 ], |
| 193 }, | 193 }, |
| 194 { | 194 { |
| 195 'target_name': 'clearkeycdmplugin', | 195 'target_name': 'clearkeycdmadapter', |
| 196 'type': 'none', | 196 'type': 'none', |
| 197 'dependencies': [ | 197 'dependencies': [ |
| 198 '<(DEPTH)/ppapi/ppapi.gyp:ppapi_cpp', | 198 '<(DEPTH)/ppapi/ppapi.gyp:ppapi_cpp', |
| 199 'clearkeycdm', | 199 'clearkeycdm', |
| 200 ], | 200 ], |
| 201 'sources': [ | 201 'sources': [ |
| 202 'crypto/ppapi/cdm_wrapper.cc', | 202 'crypto/ppapi/cdm_wrapper.cc', |
| 203 'crypto/ppapi/cdm/content_decryption_module.h', | 203 'crypto/ppapi/cdm/content_decryption_module.h', |
| 204 'crypto/ppapi/linked_ptr.h', | 204 'crypto/ppapi/linked_ptr.h', |
| 205 ], | 205 ], |
| 206 'conditions': [ | 206 'conditions': [ |
| 207 ['os_posix == 1 and OS != "mac"', { | 207 ['os_posix == 1 and OS != "mac"', { |
| 208 'cflags': ['-fvisibility=hidden'], | 208 'cflags': ['-fvisibility=hidden'], |
| 209 'type': 'loadable_module', | 209 'type': 'loadable_module', |
| 210 # Allow the plugin wrapper to find the CDM in the same directory. | 210 # Allow the plugin wrapper to find the CDM in the same directory. |
| 211 'ldflags': ['-Wl,-rpath=\$$ORIGIN'], | 211 'ldflags': ['-Wl,-rpath=\$$ORIGIN'], |
| 212 'libraries': [ | 212 'libraries': [ |
| 213 # Built by clearkeycdm. | 213 # Built by clearkeycdm. |
| 214 '<(PRODUCT_DIR)/libclearkeycdm.so', | 214 '<(PRODUCT_DIR)/libclearkeycdm.so', |
| 215 ], | 215 ], |
| 216 }], | 216 }], |
| 217 ['OS == "win"', { | 217 ['OS == "win"', { |
| 218 'type': 'shared_library', | 218 'type': 'shared_library', |
| 219 }], | 219 }], |
| 220 ['OS == "mac"', { | 220 ['OS == "mac"', { |
| 221 'type': 'loadable_module', | 221 'type': 'loadable_module', |
| 222 'mac_bundle': 1, | 222 'mac_bundle': 1, |
| 223 'product_extension': 'plugin', | 223 'product_extension': 'plugin', |
|
xhwang
2013/02/06 03:05:49
this is a system requirement to have extension 'pl
| |
| 224 'xcode_settings': { | 224 'xcode_settings': { |
| 225 'OTHER_LDFLAGS': [ | 225 'OTHER_LDFLAGS': [ |
| 226 # Not to strip important symbols by -Wl,-dead_strip. | 226 # Not to strip important symbols by -Wl,-dead_strip. |
| 227 '-Wl,-exported_symbol,_PPP_GetInterface', | 227 '-Wl,-exported_symbol,_PPP_GetInterface', |
| 228 '-Wl,-exported_symbol,_PPP_InitializeModule', | 228 '-Wl,-exported_symbol,_PPP_InitializeModule', |
| 229 '-Wl,-exported_symbol,_PPP_ShutdownModule' | 229 '-Wl,-exported_symbol,_PPP_ShutdownModule' |
| 230 ]}, | 230 ]}, |
| 231 'copies': [ | 231 'copies': [ |
| 232 { | 232 { |
| 233 'destination': '<(PRODUCT_DIR)/clearkeycdmplugin.plugin/Contents/M acOS/', | 233 'destination': '<(PRODUCT_DIR)/clearkeycdmadapter.plugin/Contents/ MacOS/', |
| 234 'files': [ | 234 'files': [ |
| 235 '<(PRODUCT_DIR)/libclearkeycdm.dylib', | 235 '<(PRODUCT_DIR)/libclearkeycdm.dylib', |
| 236 '<(PRODUCT_DIR)/ffmpegsumo.so' | 236 '<(PRODUCT_DIR)/ffmpegsumo.so' |
| 237 ] | 237 ] |
| 238 } | 238 } |
| 239 ] | 239 ] |
| 240 }], | 240 }], |
| 241 ], | 241 ], |
| 242 } | 242 } |
| 243 ], | 243 ], |
| 244 } | 244 } |
| OLD | NEW |