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 28 matching lines...) Expand all Loading... |
39 ], | 39 ], |
40 }], | 40 }], |
41 ], | 41 ], |
42 }], | 42 }], |
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 'includes': [ |
| 50 '../../../build/util/version.gypi', |
| 51 ], |
| 52 |
49 # Always provide a target, so we can put the logic about whether there's | 53 # 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). | 54 # anything to be done in this file (instead of a higher-level .gyp file). |
51 'targets': [ | 55 'targets': [ |
52 { | 56 { |
| 57 'target_name': 'widevinecdmadapter_resources', |
| 58 'type': 'none', |
| 59 'conditions': [ |
| 60 ['branding == "Chrome"', { |
| 61 'variables': { |
| 62 'branding_path': '../../../chrome/app/theme/google_chrome/BRANDING', |
| 63 }, |
| 64 }, { # else branding!="Chrome" |
| 65 'variables': { |
| 66 'branding_path': '../../../chrome/app/theme/chromium/BRANDING', |
| 67 }, |
| 68 }], |
| 69 ], |
| 70 'variables': { |
| 71 'output_dir': '.', |
| 72 'template_input_path': '../../../chrome/app/chrome_version.rc.version', |
| 73 }, |
| 74 'sources': [ |
| 75 'widevinecdmadapter.ver', |
| 76 ], |
| 77 'includes': [ |
| 78 '../../../chrome/version_resource_rules.gypi', |
| 79 ], |
| 80 }, |
| 81 { |
53 # GN version: //third_party/widevine/cdm:adapter | 82 # GN version: //third_party/widevine/cdm:adapter |
54 'target_name': 'widevinecdmadapter', | 83 'target_name': 'widevinecdmadapter', |
55 'type': 'none', | 84 'type': 'none', |
56 'conditions': [ | 85 'conditions': [ |
57 [ 'branding == "Chrome" and enable_pepper_cdms==1', { | 86 [ 'branding == "Chrome" and enable_pepper_cdms==1', { |
58 'dependencies': [ | 87 'dependencies': [ |
59 '<(DEPTH)/ppapi/ppapi.gyp:ppapi_cpp', | 88 '<(DEPTH)/ppapi/ppapi.gyp:ppapi_cpp', |
60 '<(DEPTH)/media/media_cdm_adapter.gyp:cdmadapter', | 89 '<(DEPTH)/media/media_cdm_adapter.gyp:cdmadapter', |
61 'widevine_cdm_version_h', | 90 'widevine_cdm_version_h', |
62 'widevine_cdm_binaries', | 91 'widevine_cdm_binaries', |
| 92 'widevinecdmadapter_resources', |
| 93 ], |
| 94 'sources': [ |
| 95 '<(SHARED_INTERMEDIATE_DIR)/widevinecdmadapter_version.rc', |
63 ], | 96 ], |
64 'conditions': [ | 97 'conditions': [ |
65 [ 'os_posix == 1 and OS != "mac"', { | 98 [ 'os_posix == 1 and OS != "mac"', { |
66 'libraries': [ | 99 'libraries': [ |
67 # Copied by widevine_cdm_binaries. | 100 # Copied by widevine_cdm_binaries. |
68 '<(PRODUCT_DIR)/libwidevinecdm.so', | 101 '<(PRODUCT_DIR)/libwidevinecdm.so', |
69 ], | 102 ], |
70 }], | 103 }], |
71 [ 'OS == "win"', { | 104 [ 'OS == "win"', { |
72 'libraries': [ | 105 'libraries': [ |
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
117 'conditions': [ | 150 'conditions': [ |
118 [ 'branding == "Chrome" and OS == "linux"', { | 151 [ 'branding == "Chrome" and OS == "linux"', { |
119 'dependencies': [ | 152 'dependencies': [ |
120 '<(DEPTH)/third_party/widevine/test/license_server/license_server.gy
p:test_license_server', | 153 '<(DEPTH)/third_party/widevine/test/license_server/license_server.gy
p:test_license_server', |
121 ], | 154 ], |
122 }], | 155 }], |
123 ], | 156 ], |
124 }, | 157 }, |
125 ], | 158 ], |
126 } | 159 } |
OLD | NEW |