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',
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).
53 # GN version: //third_party/widevine/cdm:adapter
54 'target_name': 'widevinecdmadapter',
57 [ 'branding == "Chrome" and enable_pepper_cdms==1', {
59 '<(DEPTH)/ppapi/ppapi.gyp:ppapi_cpp',
60 '<(DEPTH)/media/media_cdm_adapter.gyp:cdmadapter',
61 'widevine_cdm_version_h',
62 'widevine_cdm_binaries',
65 [ 'os_posix == 1 and OS != "mac"', {
67 # Copied by widevine_cdm_binaries.
68 '<(PRODUCT_DIR)/libwidevinecdm.so',
73 # Copied by widevine_cdm_binaries.
74 '<(PRODUCT_DIR)/widevinecdm.dll.lib',
79 # Copied by widevine_cdm_binaries.
80 '<(PRODUCT_DIR)/libwidevinecdm.dylib',
88 # GN version: //third_party/widevine/cdm:version_h
89 'target_name': 'widevine_cdm_version_h',
92 'destination': '<(SHARED_INTERMEDIATE_DIR)',
93 'files': [ '<(widevine_cdm_version_h_file)' ],
97 # GN version: //third_party/widevine/cdm:binaries
98 'target_name': 'widevine_cdm_binaries',
103 'COPY_PHASE_STRIP': 'NO',
108 # TODO(ddorwin): Do we need a sub-directory? We either need a
109 # sub-directory or to rename manifest.json before we can copy it.
110 'destination': '<(PRODUCT_DIR)',
111 'files': [ '<@(widevine_cdm_binary_files)' ],
115 'target_name': 'widevine_test_license_server',
118 [ 'branding == "Chrome" and OS == "linux"', {
120 '<(DEPTH)/third_party/widevine/test/license_server/license_server.gyp:test_license_server',