Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(213)

Side by Side Diff: third_party/widevine/cdm/widevine_cdm.gyp

Issue 344873006: Add widevine and extensions resources to GN build. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « third_party/widevine/cdm/BUILD.gn ('k') | webkit/common/BUILD.gn » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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 }
OLDNEW
« no previous file with comments | « third_party/widevine/cdm/BUILD.gn ('k') | webkit/common/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698