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
3 # found in the LICENSE file.
7 'widevine_cdm_version_h_file%': 'widevine_cdm_version.h',
8 'widevine_cdm_binary_files%': [],
10 [ 'branding == "Chrome"', {
13 'widevine_cdm_version_h_file%':
14 'chromeos/<(target_arch)/widevine_cdm_version.h',
15 'widevine_cdm_binary_files%': [
16 'chromeos/<(target_arch)/libwidevinecdm.so',
19 [ 'OS == "linux" and chromeos == 0', {
20 'widevine_cdm_version_h_file%':
21 'linux/<(target_arch)/widevine_cdm_version.h',
22 'widevine_cdm_binary_files%': [
23 'linux/<(target_arch)/libwidevinecdm.so',
27 'widevine_cdm_version_h_file%':
28 'mac/<(target_arch)/widevine_cdm_version.h',
29 'widevine_cdm_binary_files%': [
30 'mac/<(target_arch)/libwidevinecdm.dylib',
34 'widevine_cdm_version_h_file%':
35 'win/<(target_arch)/widevine_cdm_version.h',
36 'widevine_cdm_binary_files%': [
37 'win/<(target_arch)/widevinecdm.dll',
38 'win/<(target_arch)/widevinecdm.dll.lib',
43 [ 'OS == "android"', {
44 'widevine_cdm_version_h_file%':
45 'android/widevine_cdm_version.h',
50 '../../../build/util/version.gypi',
53 # Always provide a target, so we can put the logic about whether there's
54 # anything to be done in this file (instead of a higher-level .gyp file).
57 # GN version: //third_party/widevine/cdm:adapter_resources
58 'target_name': 'widevinecdmadapter_resources',
61 ['branding == "Chrome"', {
63 'branding_path': '../../../chrome/app/theme/google_chrome/BRANDING',
65 }, { # else branding!="Chrome"
67 'branding_path': '../../../chrome/app/theme/chromium/BRANDING',
73 'template_input_path': '../../../chrome/app/chrome_version.rc.version',
74 'extra_variable_files_arguments': [ '-f', 'BRANDING' ],
75 'extra_variable_files': [ 'BRANDING' ], # NOTE: matches that above
78 'widevinecdmadapter.ver',
81 '../../../chrome/version_resource_rules.gypi',
85 # GN version: //third_party/widevine/cdm:adapter
86 'target_name': 'widevinecdmadapter',
89 [ 'branding == "Chrome" and enable_pepper_cdms==1', {
91 '<(DEPTH)/ppapi/ppapi.gyp:ppapi_cpp',
92 '<(DEPTH)/media/media_cdm_adapter.gyp:cdmadapter',
93 'widevine_cdm_version_h',
94 'widevine_cdm_binaries',
95 'widevinecdmadapter_resources',
98 '<(SHARED_INTERMEDIATE_DIR)/widevinecdmadapter_version.rc',
101 [ 'os_posix == 1 and OS != "mac"', {
104 # Copied by widevine_cdm_binaries.
105 '<(PRODUCT_DIR)/libwidevinecdm.so',
110 # Copied by widevine_cdm_binaries.
111 '<(PRODUCT_DIR)/widevinecdm.dll.lib',
116 # Copied by widevine_cdm_binaries.
117 '<(PRODUCT_DIR)/libwidevinecdm.dylib',
125 # GN version: //third_party/widevine/cdm:version_h
126 'target_name': 'widevine_cdm_version_h',
129 'destination': '<(SHARED_INTERMEDIATE_DIR)',
130 'files': [ '<(widevine_cdm_version_h_file)' ],
134 # GN version: //third_party/widevine/cdm:binaries
135 'target_name': 'widevine_cdm_binaries',
140 'COPY_PHASE_STRIP': 'NO',
145 # TODO(ddorwin): Do we need a sub-directory? We either need a
146 # sub-directory or to rename manifest.json before we can copy it.
147 'destination': '<(PRODUCT_DIR)',
148 'files': [ '<@(widevine_cdm_binary_files)' ],
152 'target_name': 'widevine_test_license_server',
155 [ 'branding == "Chrome" and OS == "linux"', {
157 '<(DEPTH)/third_party/widevine/test/license_server/license_server.gyp:test_license_server',