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 '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"', { |
| 11 'conditions': [ | 11 'conditions': [ |
| 12 [ 'chromeos == 1', { | 12 [ 'chromeos == 1', { |
| 13 'widevine_cdm_version_h_file%': | 13 'widevine_cdm_version_h_file%': |
| 14 'symbols/chromeos/<(target_arch)/widevine_cdm_version.h', | 14 'symbols/chromeos/<(target_arch)/widevine_cdm_version.h', |
| 15 'widevine_cdm_binary_files%': [ | 15 'widevine_cdm_binary_files%': [ |
| 16 'binaries/chromeos/<(target_arch)/libwidevinecdm.so', | 16 'binaries/chromeos/<(target_arch)/libwidevinecdm.so', |
| 17 'binaries/chromeos/<(target_arch)/manifest.json', | |
| 18 ], | 17 ], |
| 19 }], | 18 }], |
| 20 [ 'OS == "linux" and chromeos == 0', { | 19 [ 'OS == "linux" and chromeos == 0', { |
| 21 'widevine_cdm_version_h_file%': | 20 'widevine_cdm_version_h_file%': |
| 22 'symbols/linux/<(target_arch)/widevine_cdm_version.h', | 21 'symbols/linux/<(target_arch)/widevine_cdm_version.h', |
| 23 'widevine_cdm_binary_files%': [ | 22 'widevine_cdm_binary_files%': [ |
| 24 'binaries/linux/<(target_arch)/libwidevinecdm.so', | 23 'binaries/linux/<(target_arch)/libwidevinecdm.so', |
| 25 'binaries/linux/<(target_arch)/manifest.json', | |
| 26 ], | 24 ], |
| 27 }], | 25 }], |
| 28 [ 'OS == "mac"', { | 26 [ 'OS == "mac"', { |
| 29 'widevine_cdm_version_h_file%': | 27 'widevine_cdm_version_h_file%': |
| 30 'symbols/mac/<(target_arch)/widevine_cdm_version.h', | 28 'symbols/mac/<(target_arch)/widevine_cdm_version.h', |
| 31 'widevine_cdm_binary_files%': [ | 29 'widevine_cdm_binary_files%': [ |
| 32 'binaries/mac/<(target_arch)/libwidevinecdm.dylib', | 30 'binaries/mac/<(target_arch)/libwidevinecdm.dylib', |
| 33 'binaries/mac/<(target_arch)/manifest.json', | |
| 34 ], | 31 ], |
| 35 }], | 32 }], |
| 36 [ 'OS == "win"', { | 33 [ 'OS == "win"', { |
| 37 'widevine_cdm_version_h_file%': | 34 'widevine_cdm_version_h_file%': |
| 38 'symbols/win/<(target_arch)/widevine_cdm_version.h', | 35 'symbols/win/<(target_arch)/widevine_cdm_version.h', |
| 39 'widevine_cdm_binary_files%': [ | 36 'widevine_cdm_binary_files%': [ |
| 40 'binaries/win/<(target_arch)/widevinecdm.dll', | 37 'binaries/win/<(target_arch)/widevinecdm.dll', |
| 41 'binaries/win/<(target_arch)/manifest.json', | |
| 42 ], | 38 ], |
| 43 }], | 39 }], |
| 44 ], | 40 ], |
| 45 }], | 41 }], |
| 46 ], | 42 ], |
| 47 }, | 43 }, |
| 48 # Always provide a target, so we can put the logic about whether there's | 44 # Always provide a target, so we can put the logic about whether there's |
| 49 # anything to be done in this file (instead of a higher-level .gyp file). | 45 # anything to be done in this file (instead of a higher-level .gyp file). |
| 50 'targets': [ | 46 'targets': [ |
| 51 { | 47 { |
| 52 'target_name': 'widevinecdmplugin', | 48 'target_name': 'widevinecdmplugin', |
| 53 'type': 'none', | 49 'type': 'none', |
| 54 'conditions': [ | 50 'conditions': [ |
| 55 [ 'branding == "Chrome"', { | 51 [ 'branding == "Chrome"', { |
| 56 'dependencies': [ | 52 'dependencies': [ |
| 57 '<(DEPTH)/ppapi/ppapi.gyp:ppapi_cpp', | 53 '<(DEPTH)/ppapi/ppapi.gyp:ppapi_cpp', |
| 58 'widevine_cdm_version_h', | 54 'widevine_cdm_version_h', |
| 59 'widevine_cdm_binaries', | 55 'widevine_cdm_binaries', |
| 60 ], | 56 ], |
| 61 'sources': [ | 57 'sources': [ |
| 62 '<(DEPTH)/webkit/media/crypto/ppapi/cdm_wrapper.cc', | 58 '<(DEPTH)/webkit/media/crypto/ppapi/cdm_wrapper.cc', |
| 63 '<(DEPTH)/webkit/media/crypto/ppapi/content_decryption_module.h', | 59 '<(DEPTH)/webkit/media/crypto/ppapi/content_decryption_module.h', |
| 64 '<(DEPTH)/webkit/media/crypto/ppapi/linked_ptr.h', | 60 '<(DEPTH)/webkit/media/crypto/ppapi/linked_ptr.h', |
| 65 ], | 61 ], |
| 66 'conditions': [ | 62 'conditions': [ |
| 67 [ 'os_posix == 1 and OS != "mac"', { | 63 [ 'os_posix == 1 and OS != "mac"', { |
| 68 'cflags': ['-fvisibility=hidden'], | 64 'cflags': ['-fvisibility=hidden'], |
| 69 'type': 'loadable_module', | 65 'type': 'loadable_module', |
| 70 # -gstabs, used in the official builds, causes an ICE. Simply | |
| 71 # remove it. | |
| 72 'cflags!': ['-gstabs'], | |
| 73 # 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. |
| 74 'ldflags': ['-Wl,-rpath=\$$ORIGIN'] | 67 'ldflags': ['-Wl,-rpath=\$$ORIGIN'], |
| 68 }], | |
| 69 [ 'chromeos == 1 and target_arch == "arm"', { | |
|
Jorge Lucangeli Obes
2012/10/26 21:11:23
'git cl patch' shows extra whitespace at the end o
ddorwin
2012/10/26 21:31:29
Done.
| |
| 70 'libraries': [ | |
| 71 # Copied by widevine_cdm_binaries. | |
| 72 '<(PRODUCT_DIR)/libwidevinecdm.so', | |
| 73 ], | |
| 75 }], | 74 }], |
| 76 [ 'OS == "win" and 0', { | 75 [ 'OS == "win" and 0', { |
| 77 'type': 'shared_library', | 76 'type': 'shared_library', |
| 78 }], | 77 }], |
| 79 [ 'OS == "mac" and 0', { | 78 [ 'OS == "mac" and 0', { |
| 80 'type': 'loadable_module', | 79 'type': 'loadable_module', |
| 81 'mac_bundle': 1, | 80 'mac_bundle': 1, |
| 82 'product_extension': 'plugin', | 81 'product_extension': 'plugin', |
| 83 'xcode_settings': { | 82 'xcode_settings': { |
| 84 'OTHER_LDFLAGS': [ | 83 'OTHER_LDFLAGS': [ |
| (...skipping 12 matching lines...) Expand all Loading... | |
| 97 'type': 'none', | 96 'type': 'none', |
| 98 'copies': [{ | 97 'copies': [{ |
| 99 'destination': '<(SHARED_INTERMEDIATE_DIR)', | 98 'destination': '<(SHARED_INTERMEDIATE_DIR)', |
| 100 'files': [ '<(widevine_cdm_version_h_file)' ], | 99 'files': [ '<(widevine_cdm_version_h_file)' ], |
| 101 }], | 100 }], |
| 102 }, | 101 }, |
| 103 { | 102 { |
| 104 'target_name': 'widevine_cdm_binaries', | 103 'target_name': 'widevine_cdm_binaries', |
| 105 'type': 'none', | 104 'type': 'none', |
| 106 'copies': [{ | 105 'copies': [{ |
| 107 # TODO(ddorwin): Do we need a sub-directory? | 106 # TODO(ddorwin): Do we need a sub-directory? We either need a |
| 107 # sub-directory or to rename manifest.json before we can copy it. | |
| 108 'destination': '<(PRODUCT_DIR)', | 108 'destination': '<(PRODUCT_DIR)', |
| 109 'files': [ '<@(widevine_cdm_binary_files)' ], | 109 'files': [ '<@(widevine_cdm_binary_files)' ], |
| 110 }], | 110 }], |
| 111 }, | 111 }, |
| 112 ], | 112 ], |
| 113 } | 113 } |
| OLD | NEW |