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 'target_name': 'widevinecdmadapter',
56 [ 'branding == "Chrome" and enable_pepper_cdms==1', {
58 '<(DEPTH)/ppapi/ppapi.gyp:ppapi_cpp',
59 '<(DEPTH)/media/media_cdm_adapter.gyp:cdmadapter',
60 'widevine_cdm_version_h',
61 'widevine_cdm_binaries',
64 [ 'os_posix == 1 and OS != "mac"', {
66 # Copied by widevine_cdm_binaries.
67 '<(PRODUCT_DIR)/libwidevinecdm.so',
72 # Copied by widevine_cdm_binaries.
73 '<(PRODUCT_DIR)/widevinecdm.dll.lib',
78 # Copied by widevine_cdm_binaries.
79 '<(PRODUCT_DIR)/libwidevinecdm.dylib',
87 'target_name': 'widevine_cdm_version_h',
90 'destination': '<(SHARED_INTERMEDIATE_DIR)',
91 'files': [ '<(widevine_cdm_version_h_file)' ],
95 'target_name': 'widevine_cdm_binaries',
100 'COPY_PHASE_STRIP': 'NO',
105 # 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.
107 'destination': '<(PRODUCT_DIR)',
108 'files': [ '<@(widevine_cdm_binary_files)' ],
112 'target_name': 'widevine_test_license_server',
115 [ 'branding == "Chrome" and OS == "linux"', {
117 '<(DEPTH)/third_party/widevine/test/license_server/license_server.gyp:test_license_server',