| 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 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 43 [ 'OS == "android"', { | 43 [ 'OS == "android"', { |
| 44 'widevine_cdm_version_h_file%': | 44 'widevine_cdm_version_h_file%': |
| 45 'android/widevine_cdm_version.h', | 45 'android/widevine_cdm_version.h', |
| 46 }], | 46 }], |
| 47 ], | 47 ], |
| 48 }, | 48 }, |
| 49 # Always provide a target, so we can put the logic about whether there's | 49 # Always provide a target, so we can put the logic about whether there's |
| 50 # anything to be done in this file (instead of a higher-level .gyp file). | 50 # anything to be done in this file (instead of a higher-level .gyp file). |
| 51 'targets': [ | 51 'targets': [ |
| 52 { | 52 { |
| 53 # GN version: //third_party/widevine/cdm:adapter |
| 53 'target_name': 'widevinecdmadapter', | 54 'target_name': 'widevinecdmadapter', |
| 54 'type': 'none', | 55 'type': 'none', |
| 55 'conditions': [ | 56 'conditions': [ |
| 56 [ 'branding == "Chrome" and enable_pepper_cdms==1', { | 57 [ 'branding == "Chrome" and enable_pepper_cdms==1', { |
| 57 'dependencies': [ | 58 'dependencies': [ |
| 58 '<(DEPTH)/ppapi/ppapi.gyp:ppapi_cpp', | 59 '<(DEPTH)/ppapi/ppapi.gyp:ppapi_cpp', |
| 59 '<(DEPTH)/media/media_cdm_adapter.gyp:cdmadapter', | 60 '<(DEPTH)/media/media_cdm_adapter.gyp:cdmadapter', |
| 60 'widevine_cdm_version_h', | 61 'widevine_cdm_version_h', |
| 61 'widevine_cdm_binaries', | 62 'widevine_cdm_binaries', |
| 62 ], | 63 ], |
| (...skipping 14 matching lines...) Expand all Loading... |
| 77 'libraries': [ | 78 'libraries': [ |
| 78 # Copied by widevine_cdm_binaries. | 79 # Copied by widevine_cdm_binaries. |
| 79 '<(PRODUCT_DIR)/libwidevinecdm.dylib', | 80 '<(PRODUCT_DIR)/libwidevinecdm.dylib', |
| 80 ], | 81 ], |
| 81 }], | 82 }], |
| 82 ], | 83 ], |
| 83 }], | 84 }], |
| 84 ], | 85 ], |
| 85 }, | 86 }, |
| 86 { | 87 { |
| 88 # GN version: //third_party/widevine/cdm:version_h |
| 87 'target_name': 'widevine_cdm_version_h', | 89 'target_name': 'widevine_cdm_version_h', |
| 88 'type': 'none', | 90 'type': 'none', |
| 89 'copies': [{ | 91 'copies': [{ |
| 90 'destination': '<(SHARED_INTERMEDIATE_DIR)', | 92 'destination': '<(SHARED_INTERMEDIATE_DIR)', |
| 91 'files': [ '<(widevine_cdm_version_h_file)' ], | 93 'files': [ '<(widevine_cdm_version_h_file)' ], |
| 92 }], | 94 }], |
| 93 }, | 95 }, |
| 94 { | 96 { |
| 97 # GN version: //third_party/widevine/cdm:binaries |
| 95 'target_name': 'widevine_cdm_binaries', | 98 'target_name': 'widevine_cdm_binaries', |
| 96 'type': 'none', | 99 'type': 'none', |
| 97 'conditions': [ | 100 'conditions': [ |
| 98 [ 'OS=="mac"', { | 101 [ 'OS=="mac"', { |
| 99 'xcode_settings': { | 102 'xcode_settings': { |
| 100 'COPY_PHASE_STRIP': 'NO', | 103 'COPY_PHASE_STRIP': 'NO', |
| 101 } | 104 } |
| 102 }], | 105 }], |
| 103 ], | 106 ], |
| 104 'copies': [{ | 107 'copies': [{ |
| 105 # TODO(ddorwin): Do we need a sub-directory? We either need a | 108 # TODO(ddorwin): Do we need a sub-directory? We either need a |
| 106 # sub-directory or to rename manifest.json before we can copy it. | 109 # sub-directory or to rename manifest.json before we can copy it. |
| 107 'destination': '<(PRODUCT_DIR)', | 110 'destination': '<(PRODUCT_DIR)', |
| 108 'files': [ '<@(widevine_cdm_binary_files)' ], | 111 'files': [ '<@(widevine_cdm_binary_files)' ], |
| 109 }], | 112 }], |
| 110 }, | 113 }, |
| 111 { | 114 { |
| 112 'target_name': 'widevine_test_license_server', | 115 'target_name': 'widevine_test_license_server', |
| 113 'type': 'none', | 116 'type': 'none', |
| 114 'conditions': [ | 117 'conditions': [ |
| 115 [ 'branding == "Chrome" and OS == "linux"', { | 118 [ 'branding == "Chrome" and OS == "linux"', { |
| 116 'dependencies': [ | 119 'dependencies': [ |
| 117 '<(DEPTH)/third_party/widevine/test/license_server/license_server.gy
p:test_license_server', | 120 '<(DEPTH)/third_party/widevine/test/license_server/license_server.gy
p:test_license_server', |
| 118 ], | 121 ], |
| 119 }], | 122 }], |
| 120 ], | 123 ], |
| 121 }, | 124 }, |
| 122 ], | 125 ], |
| 123 } | 126 } |
| OLD | NEW |