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': |
| 94 '<(PRODUCT_DIR)/widevinecdmadapter.plugin/Contents/MacOS/'
, |
| 95 'files': [ |
| 96 '<(PRODUCT_DIR)/libwidevinecdm.dylib', |
| 97 ] |
| 98 } |
| 99 ] |
87 }], | 100 }], |
88 ], | 101 ], |
89 }], | 102 }], |
90 ], | 103 ], |
91 }, | 104 }, |
92 { | 105 { |
93 'target_name': 'widevine_cdm_version_h', | 106 'target_name': 'widevine_cdm_version_h', |
94 'type': 'none', | 107 'type': 'none', |
95 'copies': [{ | 108 'copies': [{ |
96 'destination': '<(SHARED_INTERMEDIATE_DIR)', | 109 'destination': '<(SHARED_INTERMEDIATE_DIR)', |
97 'files': [ '<(widevine_cdm_version_h_file)' ], | 110 'files': [ '<(widevine_cdm_version_h_file)' ], |
98 }], | 111 }], |
99 }, | 112 }, |
100 { | 113 { |
101 'target_name': 'widevine_cdm_binaries', | 114 'target_name': 'widevine_cdm_binaries', |
102 'type': 'none', | 115 'type': 'none', |
103 'copies': [{ | 116 'copies': [{ |
104 # TODO(ddorwin): Do we need a sub-directory? We either need a | 117 # 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. | 118 # sub-directory or to rename manifest.json before we can copy it. |
106 'destination': '<(PRODUCT_DIR)', | 119 'destination': '<(PRODUCT_DIR)', |
107 'files': [ '<@(widevine_cdm_binary_files)' ], | 120 'files': [ '<@(widevine_cdm_binary_files)' ], |
108 }], | 121 }], |
109 }, | 122 }, |
110 ], | 123 ], |
111 } | 124 } |
OLD | NEW |