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': { | |
7 'content_shell_product_name': 'Content Shell', | |
8 }, | |
6 'targets': [ | 9 'targets': [ |
7 { | 10 { |
8 'target_name': 'content_shell_lib', | 11 'target_name': 'content_shell_lib', |
9 'type': 'static_library', | 12 'type': 'static_library', |
10 'defines!': ['CONTENT_IMPLEMENTATION'], | 13 'defines!': ['CONTENT_IMPLEMENTATION'], |
11 'variables': { | 14 'variables': { |
12 'chromium_code': 1, | 15 'chromium_code': 1, |
13 }, | 16 }, |
14 'dependencies': [ | 17 'dependencies': [ |
15 'content_app', | 18 'content_app', |
(...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
107 ], | 110 ], |
108 'configurations': { | 111 'configurations': { |
109 'Debug_Base': { | 112 'Debug_Base': { |
110 'msvs_settings': { | 113 'msvs_settings': { |
111 'VCLinkerTool': { | 114 'VCLinkerTool': { |
112 'LinkIncremental': '<(msvs_large_module_debug_link_mode)', | 115 'LinkIncremental': '<(msvs_large_module_debug_link_mode)', |
113 }, | 116 }, |
114 }, | 117 }, |
115 }, | 118 }, |
116 }, | 119 }, |
117 }], | 120 }], # OS=="win" |
121 ['OS=="mac"', { | |
122 'type': 'shared_library', | |
123 'product_name': '<(content_shell_product_name) Framework', | |
Mark Mentovai
2012/02/28 20:12:40
No Info.plist?
Avi (use Gerrit)
2012/02/29 19:46:50
Do I need one?
| |
124 'mac_bundle': 1, | |
125 'mac_bundle_resources': [ | |
126 'shell/mac/English.lproj/MainMenu.xib', | |
127 '<(SHARED_INTERMEDIATE_DIR)/content/shell_resources.pak' | |
128 ], | |
129 'xcode_settings': { | |
130 'EXPORTED_SYMBOLS_FILE': 'shell/mac/exported_symbols.exp', | |
Mark Mentovai
2012/02/28 20:12:40
That name’s kinda redundant, no? Following the exa
Avi (use Gerrit)
2012/02/29 19:46:50
mooted.
| |
131 }, | |
132 }], # OS=="mac" | |
118 ], | 133 ], |
119 }, | 134 }, |
120 { | 135 { |
121 'target_name': 'content_shell_resources', | 136 'target_name': 'content_shell_resources', |
122 'type': 'none', | 137 'type': 'none', |
123 'variables': { | 138 'variables': { |
124 'grit_out_dir': '<(SHARED_INTERMEDIATE_DIR)/content', | 139 'grit_out_dir': '<(SHARED_INTERMEDIATE_DIR)/content', |
125 }, | 140 }, |
126 'actions': [ | 141 'actions': [ |
127 { | 142 { |
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
187 '<(PRODUCT_DIR)/content_shell.pak', | 202 '<(PRODUCT_DIR)/content_shell.pak', |
188 ], | 203 ], |
189 'action': ['python', '<(repack_path)', '<@(_outputs)', | 204 'action': ['python', '<(repack_path)', '<@(_outputs)', |
190 '<@(pak_inputs)'], | 205 '<@(pak_inputs)'], |
191 }, | 206 }, |
192 ], | 207 ], |
193 }, | 208 }, |
194 { | 209 { |
195 'target_name': 'content_shell', | 210 'target_name': 'content_shell', |
196 'type': 'executable', | 211 'type': 'executable', |
212 'mac_bundle': 1, | |
197 'defines!': ['CONTENT_IMPLEMENTATION'], | 213 'defines!': ['CONTENT_IMPLEMENTATION'], |
198 'variables': { | 214 'variables': { |
199 'chromium_code': 1, | 215 'chromium_code': 1, |
200 }, | 216 }, |
201 'dependencies': [ | 217 'dependencies': [ |
202 'content_shell_lib', | 218 'content_shell_lib', |
203 'content_shell_pak', | 219 'content_shell_pak', |
204 ], | 220 ], |
205 'include_dirs': [ | 221 'include_dirs': [ |
206 '..', | 222 '..', |
207 ], | 223 ], |
208 'sources': [ | 224 'sources': [ |
209 'app/startup_helper_win.cc', | 225 'app/startup_helper_win.cc', |
210 'shell/shell_main.cc', | 226 'shell/shell_main.cc', |
Mark Mentovai
2012/02/28 20:12:40
In this file:
#if defined(OS_MACOSX)
__attribute_
Avi (use Gerrit)
2012/02/29 19:46:50
Simplified.
| |
211 ], | 227 ], |
228 'mac_bundle_resources': [ | |
229 'shell/mac/app.icns', | |
230 'shell/mac/Info.plist', | |
Mark Mentovai
2012/02/28 20:12:40
app-Info.plist. Again on 236 and 239.
Avi (use Gerrit)
2012/02/29 19:46:50
Done.
| |
231 ], | |
232 # TODO(mark): Come up with a fancier way to do this. It should only | |
233 # be necessary to list app-Info.plist once, not the three times it is | |
234 # listed here. | |
235 'mac_bundle_resources!': [ | |
236 'shell/mac/Info.plist', | |
237 ], | |
238 'xcode_settings': { | |
239 'INFOPLIST_FILE': 'shell/mac/Info.plist', | |
240 }, | |
212 'msvs_settings': { | 241 'msvs_settings': { |
213 'VCLinkerTool': { | 242 'VCLinkerTool': { |
214 'SubSystem': '2', # Set /SUBSYSTEM:WINDOWS | 243 'SubSystem': '2', # Set /SUBSYSTEM:WINDOWS |
215 }, | 244 }, |
216 }, | 245 }, |
217 'conditions': [ | 246 'conditions': [ |
218 ['OS=="win" and win_use_allocator_shim==1', { | 247 ['OS=="win" and win_use_allocator_shim==1', { |
219 'dependencies': [ | 248 'dependencies': [ |
220 '../base/allocator/allocator.gyp:allocator', | 249 '../base/allocator/allocator.gyp:allocator', |
221 ], | 250 ], |
222 }], | 251 }], |
223 ['OS=="win"', { | 252 ['OS=="win"', { |
224 'configurations': { | 253 'configurations': { |
225 'Debug_Base': { | 254 'Debug_Base': { |
226 'msvs_settings': { | 255 'msvs_settings': { |
227 'VCLinkerTool': { | 256 'VCLinkerTool': { |
228 'LinkIncremental': '<(msvs_large_module_debug_link_mode)', | 257 'LinkIncremental': '<(msvs_large_module_debug_link_mode)', |
229 }, | 258 }, |
230 }, | 259 }, |
231 }, | 260 }, |
232 }, | 261 }, |
233 }], | 262 }], # OS=="win" |
234 ['OS == "win" or (toolkit_uses_gtk == 1 and selinux == 0)', { | 263 ['OS == "win" or (toolkit_uses_gtk == 1 and selinux == 0)', { |
235 'dependencies': [ | 264 'dependencies': [ |
236 '../sandbox/sandbox.gyp:sandbox', | 265 '../sandbox/sandbox.gyp:sandbox', |
237 ], | 266 ], |
238 }], | 267 }], # OS=="win" or (toolkit_uses_gtk == 1 and selinux == 0) |
239 ['toolkit_uses_gtk == 1', { | 268 ['toolkit_uses_gtk == 1', { |
240 'dependencies': [ | 269 'dependencies': [ |
241 '<(DEPTH)/build/linux/system.gyp:gtk', | 270 '<(DEPTH)/build/linux/system.gyp:gtk', |
242 ], | 271 ], |
243 }], | 272 }], # toolkit_uses_gtk |
273 ['OS=="mac"', { | |
274 'product_name': '<(content_shell_product_name)', | |
275 'postbuilds': [ | |
Mark Mentovai
2012/02/28 20:12:40
It’d be nice to run tweak_info_plist just to get t
Mark Mentovai
2012/02/28 20:12:40
The “verify” build step from chrome_exe would be v
Avi (use Gerrit)
2012/02/29 19:46:50
Done.
Avi (use Gerrit)
2012/02/29 19:46:50
Done.
| |
276 { | |
277 'postbuild_name': 'Copy <(content_shell_product_name) Framework.fr amework', | |
278 'action': [ | |
279 '../build/mac/copy_framework_unversioned', | |
280 '${BUILT_PRODUCTS_DIR}/<(content_shell_product_name) Framework.f ramework', | |
281 '${BUILT_PRODUCTS_DIR}/${CONTENTS_FOLDER_PATH}/Frameworks', | |
282 ], | |
283 }, | |
284 { | |
285 'postbuild_name': 'Fix Framework Link', | |
286 'action': [ | |
287 'install_name_tool', | |
288 '-change', | |
289 '/Library/Frameworks/<(content_shell_product_name) Framework.fra mework/Versions/A/<(content_shell_product_name) Framework', | |
290 '@executable_path/../Frameworks/<(content_shell_product_name) Fr amework.framework/<(content_shell_product_name) Framework', | |
291 '${BUILT_PRODUCTS_DIR}/${EXECUTABLE_PATH}' | |
292 ], | |
293 }, | |
294 ], | |
295 }], # OS=="mac" | |
244 ], | 296 ], |
245 }, | 297 }, |
246 ], | 298 ], |
247 } | 299 } |
OLD | NEW |