OLD | NEW |
1 # Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 # Copyright (c) 2013 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 # This dict determines how chrome.dll is split into multiple parts. | 5 # This dict determines how chrome.dll is split into multiple parts. |
6 { | 6 { |
7 'parts': [ | 7 'parts': [ |
8 # These sections are matched in order, and a matching input will go into | 8 # These sections are matched in order, and a matching input will go into |
9 # the part for the last block that matches. Inputs are lower()d before | 9 # the part for the last block that matches. Inputs are lower()d before |
10 # the regex is run. | 10 # the regex is run. |
(...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
107 r'^user32\.winxp\.lib$', | 107 r'^user32\.winxp\.lib$', |
108 r'^usp10\.lib$', | 108 r'^usp10\.lib$', |
109 r'^uuid\.lib$', | 109 r'^uuid\.lib$', |
110 r'^version\.lib$', | 110 r'^version\.lib$', |
111 r'^wininet\.lib$', | 111 r'^wininet\.lib$', |
112 r'^winmm\.lib$', | 112 r'^winmm\.lib$', |
113 r'^winspool\.lib$', | 113 r'^winspool\.lib$', |
114 r'^ws2_32\.lib$', | 114 r'^ws2_32\.lib$', |
115 ], | 115 ], |
116 | 116 |
| 117 # objs split out of libs. These will be extracted from whichever side |
| 118 # they're not on according to the 'parts' split, and then just the obj |
| 119 # linked into the other side. Each should be a 2-tuple, where the first is |
| 120 # a regex for the .lib name, and the second is a regex for the .obj from |
| 121 # that lib. The lib should not match anything in 'all'. |
| 122 # |
| 123 # Note: If you're considering adding something that isn't a _switches or a |
| 124 # _constants file, it'd probably be better to break the target into separate |
| 125 # .lib files. |
| 126 'all_from_libs': [ |
| 127 (r'autofill_common\.lib$', r'switches\.obj$'), |
| 128 (r'base_static\.lib$', r'base_switches\.obj$'), |
| 129 # TODO(scottmg): This one is not solely constants, but looks safe. |
| 130 (r'browser_extensions\.lib$', r'tab_capture_api\.obj$'), |
| 131 (r'\bcc\.lib$', r'switches\.obj$'), |
| 132 (r'\bcommon\.lib$', r'extension_constants\.obj$'), |
| 133 (r'\bcommon\.lib$', r'extension_manifest_constants\.obj$'), |
| 134 (r'\bcommon\.lib$', r'url_constants\.obj$'), |
| 135 (r'\bcommon\.lib$', r'view_type\.obj$'), |
| 136 # It sort of looks like most of this lib could go in 'all', but there's a |
| 137 # couple registration/initialization functions that make me a bit nervous. |
| 138 (r'common_constants\.lib$', r'chrome_constants\.obj$'), |
| 139 (r'common_constants\.lib$', r'chrome_switches\.obj$'), |
| 140 (r'common_constants\.lib$', r'pref_names\.obj$'), |
| 141 (r'content_common\.lib$', r'browser_plugin_constants\.obj$'), |
| 142 (r'content_common\.lib$', r'content_constants\.obj$'), |
| 143 (r'content_common\.lib$', r'content_switches\.obj$'), |
| 144 (r'content_common\.lib$', r'page_zoom\.obj$'), |
| 145 (r'content_common\.lib$', r'url_constants\.obj$'), |
| 146 (r'gl_wrapper\.lib$', r'gl_switches\.obj$'), |
| 147 # TODO(scottmg): This one is not solely constants, but looks safe. |
| 148 (r'libjingle_webrtc_common\.lib$', r'mediaconstraintsinterface\.obj$'), |
| 149 (r'\bmedia\.lib$', r'media_switches\.obj$'), |
| 150 # TODO(scottmg): This one is not solely constants, but looks safe. |
| 151 (r'\bnet\.lib$', r'http_request_headers\.obj$'), |
| 152 (r'ppapi_shared\.lib$', r'ppapi_switches\.obj$'), |
| 153 (r'printing\.lib$', r'print_job_constants\.obj$'), |
| 154 (r'skia\.lib$', r'skunpremultiply\.obj$'), |
| 155 (r'\bui\.lib$', r'favicon_size\.obj$'), |
| 156 (r'\bui\.lib$', r'ui_base_switches\.obj$'), |
| 157 (r'webkit.*plugins_common\.lib$', r'plugin_switches\.obj$'), |
| 158 (r'webkit.*plugins_common\.lib$', r'plugin_constants'), |
| 159 (r'webkit.*storage\.lib$', r'file_permission_policy\.obj$'), |
| 160 ], |
| 161 |
117 # This manifest will be merged with the intermediate one from the linker, | 162 # This manifest will be merged with the intermediate one from the linker, |
118 # and embedded in both DLLs. | 163 # and embedded in both DLLs. |
119 'manifest': '..\\..\\chrome\\app\\chrome.dll.manifest' | 164 'manifest': '..\\..\\chrome\\app\\chrome.dll.manifest' |
120 } | 165 } |
OLD | NEW |