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 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
42 }], | 42 }], |
43 ], | 43 ], |
44 }, | 44 }, |
45 # Always provide a target, so we can put the logic about whether there's | 45 # Always provide a target, so we can put the logic about whether there's |
46 # anything to be done in this file (instead of a higher-level .gyp file). | 46 # anything to be done in this file (instead of a higher-level .gyp file). |
47 'targets': [ | 47 'targets': [ |
48 { | 48 { |
49 'target_name': 'widevinecdmadapter', | 49 'target_name': 'widevinecdmadapter', |
50 'type': 'none', | 50 'type': 'none', |
51 'conditions': [ | 51 'conditions': [ |
52 [ 'branding == "Chrome" and OS != "android" and OS != "ios"', { | 52 [ 'branding == "Chrome" and enable_pepper_cdms==1', { |
53 'dependencies': [ | 53 'dependencies': [ |
54 '<(DEPTH)/ppapi/ppapi.gyp:ppapi_cpp', | 54 '<(DEPTH)/ppapi/ppapi.gyp:ppapi_cpp', |
55 'widevine_cdm_version_h', | 55 'widevine_cdm_version_h', |
56 'widevine_cdm_binaries', | 56 'widevine_cdm_binaries', |
57 ], | 57 ], |
58 'sources': [ | 58 'sources': [ |
59 '<(DEPTH)/webkit/media/crypto/ppapi/cdm_wrapper.cc', | 59 '<(DEPTH)/webkit/media/crypto/ppapi/cdm_wrapper.cc', |
60 '<(DEPTH)/webkit/media/crypto/ppapi/cdm/content_decryption_module.h'
, | 60 '<(DEPTH)/webkit/media/crypto/ppapi/cdm/content_decryption_module.h'
, |
61 '<(DEPTH)/webkit/media/crypto/ppapi/linked_ptr.h', | 61 '<(DEPTH)/webkit/media/crypto/ppapi/linked_ptr.h', |
62 ], | 62 ], |
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
117 'type': 'none', | 117 'type': 'none', |
118 'copies': [{ | 118 'copies': [{ |
119 # TODO(ddorwin): Do we need a sub-directory? We either need a | 119 # TODO(ddorwin): Do we need a sub-directory? We either need a |
120 # sub-directory or to rename manifest.json before we can copy it. | 120 # sub-directory or to rename manifest.json before we can copy it. |
121 'destination': '<(PRODUCT_DIR)', | 121 'destination': '<(PRODUCT_DIR)', |
122 'files': [ '<@(widevine_cdm_binary_files)' ], | 122 'files': [ '<@(widevine_cdm_binary_files)' ], |
123 }], | 123 }], |
124 }, | 124 }, |
125 ], | 125 ], |
126 } | 126 } |
OLD | NEW |