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 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
70 '<(PRODUCT_DIR)/libwidevinecdm.so', | 70 '<(PRODUCT_DIR)/libwidevinecdm.so', |
71 ], | 71 ], |
72 }], | 72 }], |
73 [ 'OS == "win" and 0', { | 73 [ 'OS == "win" and 0', { |
74 'type': 'shared_library', | 74 'type': 'shared_library', |
75 }], | 75 }], |
76 [ 'OS == "mac" and 0', { | 76 [ 'OS == "mac" and 0', { |
77 'type': 'loadable_module', | 77 'type': 'loadable_module', |
78 'mac_bundle': 1, | 78 'mac_bundle': 1, |
79 'product_extension': 'plugin', | 79 'product_extension': 'plugin', |
80 'libraries': [ | |
81 # Copied by widevine_cdm_binaries. | |
82 '<(PRODUCT_DIR)/libwidevinecdm.dylib', | |
83 ], | |
80 'xcode_settings': { | 84 'xcode_settings': { |
81 'OTHER_LDFLAGS': [ | 85 'OTHER_LDFLAGS': [ |
82 # Not to strip important symbols by -Wl,-dead_strip. | 86 # Not to strip important symbols by -Wl,-dead_strip. |
83 '-Wl,-exported_symbol,_PPP_GetInterface', | 87 '-Wl,-exported_symbol,_PPP_GetInterface', |
84 '-Wl,-exported_symbol,_PPP_InitializeModule', | 88 '-Wl,-exported_symbol,_PPP_InitializeModule', |
85 '-Wl,-exported_symbol,_PPP_ShutdownModule' | 89 '-Wl,-exported_symbol,_PPP_ShutdownModule' |
86 ]}, | 90 ]}, |
91 'copies': [ | |
92 { | |
93 'destination': '<(PRODUCT_DIR)/widevinecdmadapter.plugin/Conte nts/MacOS/', | |
ddorwin
2013/03/13 04:48:34
too long
| |
94 'files': [ | |
95 '<(PRODUCT_DIR)/libwidevinecdm.dylib', | |
96 ] | |
97 } | |
98 ] | |
87 }], | 99 }], |
88 ], | 100 ], |
89 }], | 101 }], |
90 ], | 102 ], |
91 }, | 103 }, |
92 { | 104 { |
93 'target_name': 'widevine_cdm_version_h', | 105 'target_name': 'widevine_cdm_version_h', |
94 'type': 'none', | 106 'type': 'none', |
95 'copies': [{ | 107 'copies': [{ |
96 'destination': '<(SHARED_INTERMEDIATE_DIR)', | 108 'destination': '<(SHARED_INTERMEDIATE_DIR)', |
97 'files': [ '<(widevine_cdm_version_h_file)' ], | 109 'files': [ '<(widevine_cdm_version_h_file)' ], |
98 }], | 110 }], |
99 }, | 111 }, |
100 { | 112 { |
101 'target_name': 'widevine_cdm_binaries', | 113 'target_name': 'widevine_cdm_binaries', |
102 'type': 'none', | 114 'type': 'none', |
103 'copies': [{ | 115 'copies': [{ |
104 # TODO(ddorwin): Do we need a sub-directory? We either need a | 116 # TODO(ddorwin): Do we need a sub-directory? We either need a |
105 # sub-directory or to rename manifest.json before we can copy it. | 117 # sub-directory or to rename manifest.json before we can copy it. |
106 'destination': '<(PRODUCT_DIR)', | 118 'destination': '<(PRODUCT_DIR)', |
107 'files': [ '<@(widevine_cdm_binary_files)' ], | 119 'files': [ '<@(widevine_cdm_binary_files)' ], |
108 }], | 120 }], |
109 }, | 121 }, |
110 ], | 122 ], |
111 } | 123 } |
OLD | NEW |