| OLD | NEW |
| 1 # Copyright (c) 2009-2010 The Chromium Authors. All rights reserved. | 1 # Copyright (c) 2009-2010 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 'target_defaults': { | 6 'target_defaults': { |
| 7 'variables': { | 7 'variables': { |
| 8 'chrome_exe_target': 0, | 8 'chrome_exe_target': 0, |
| 9 }, | 9 }, |
| 10 'target_conditions': [ | 10 'target_conditions': [ |
| (...skipping 197 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 208 ['branding=="Chrome"', { | 208 ['branding=="Chrome"', { |
| 209 'files': ['app/theme/google_chrome/product_logo_48.png'] | 209 'files': ['app/theme/google_chrome/product_logo_48.png'] |
| 210 }, { # else: 'branding!="Chrome" | 210 }, { # else: 'branding!="Chrome" |
| 211 'files': ['app/theme/chromium/product_logo_48.png'] | 211 'files': ['app/theme/chromium/product_logo_48.png'] |
| 212 }], | 212 }], |
| 213 ], | 213 ], |
| 214 }, | 214 }, |
| 215 ], | 215 ], |
| 216 }], | 216 }], |
| 217 ['OS=="mac"', { | 217 ['OS=="mac"', { |
| 218 'variables': { | |
| 219 'mac_packaging_dir': | |
| 220 '<(PRODUCT_DIR)/<(mac_product_name) Packaging', | |
| 221 # <(PRODUCT_DIR) expands to $(BUILT_PRODUCTS_DIR), which doesn't | |
| 222 # work properly in a shell script, where ${BUILT_PRODUCTS_DIR} is | |
| 223 # needed. | |
| 224 'mac_packaging_sh_dir': | |
| 225 '${BUILT_PRODUCTS_DIR}/<(mac_product_name) Packaging', | |
| 226 }, | |
| 227 # 'branding' is a variable defined in common.gypi | 218 # 'branding' is a variable defined in common.gypi |
| 228 # (e.g. "Chromium", "Chrome") | 219 # (e.g. "Chromium", "Chrome") |
| 229 'conditions': [ | 220 'conditions': [ |
| 230 ['branding=="Chrome"', { | 221 ['branding=="Chrome"', { |
| 231 'mac_bundle_resources': [ | 222 'mac_bundle_resources': [ |
| 232 'app/theme/google_chrome/app.icns', | 223 'app/theme/google_chrome/app.icns', |
| 233 'app/theme/google_chrome/document.icns', | 224 'app/theme/google_chrome/document.icns', |
| 234 ], | 225 ], |
| 235 }, { # else: 'branding!="Chrome" | 226 }, { # else: 'branding!="Chrome" |
| 236 'mac_bundle_resources': [ | 227 'mac_bundle_resources': [ |
| (...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 268 'dump_product_syms_path': | 259 'dump_product_syms_path': |
| 269 'tools/build/mac/dump_product_syms', | 260 'tools/build/mac/dump_product_syms', |
| 270 }, | 261 }, |
| 271 'action': ['<(dump_product_syms_path)', | 262 'action': ['<(dump_product_syms_path)', |
| 272 '<(branding)'], | 263 '<(branding)'], |
| 273 }, | 264 }, |
| 274 ], | 265 ], |
| 275 }], | 266 }], |
| 276 ], | 267 ], |
| 277 }], # mac_breakpad | 268 }], # mac_breakpad |
| 278 ['mac_keystone==1', { | |
| 279 'copies': [ | |
| 280 { | |
| 281 # Put keystone_install.sh where the packaging system will | |
| 282 # find it. The packager will copy this script to the | |
| 283 # correct location on the disk image. | |
| 284 'destination': '<(mac_packaging_dir)', | |
| 285 'files': [ | |
| 286 'tools/build/mac/keystone_install.sh', | |
| 287 ], | |
| 288 }, | |
| 289 ], | |
| 290 }], # mac_keystone | |
| 291 ['buildtype=="Official"', { | |
| 292 'actions': [ | |
| 293 { | |
| 294 # Create sign.sh, the script that the packaging system will | |
| 295 # use to sign the .app bundle. | |
| 296 'action_name': 'Make sign.sh', | |
| 297 'variables': { | |
| 298 'make_sign_sh_path': 'tools/build/mac/make_sign_sh', | |
| 299 'sign_sh_in_path': 'tools/build/mac/sign.sh.in', | |
| 300 'app_resource_rules_in_path': | |
| 301 'tools/build/mac/app_resource_rules.plist.in', | |
| 302 }, | |
| 303 'inputs': [ | |
| 304 '<(make_sign_sh_path)', | |
| 305 '<(sign_sh_in_path)', | |
| 306 '<(app_resource_rules_in_path)', | |
| 307 '<(version_path)', | |
| 308 ], | |
| 309 'outputs': [ | |
| 310 '<(mac_packaging_dir)/sign.sh', | |
| 311 '<(mac_packaging_dir)/app_resource_rules.plist', | |
| 312 ], | |
| 313 'action': [ | |
| 314 '<(make_sign_sh_path)', | |
| 315 '<(mac_packaging_sh_dir)', | |
| 316 '<(mac_product_name)', | |
| 317 '<(version_full)', | |
| 318 ], | |
| 319 }, | |
| 320 ], | |
| 321 }], # buildtype=="Official" | |
| 322 ], | 269 ], |
| 323 'product_name': '<(mac_product_name)', | 270 'product_name': '<(mac_product_name)', |
| 324 'xcode_settings': { | 271 'xcode_settings': { |
| 325 # chrome/app/app-Info.plist has: | 272 # chrome/app/app-Info.plist has: |
| 326 # CFBundleIdentifier of CHROMIUM_BUNDLE_ID | 273 # CFBundleIdentifier of CHROMIUM_BUNDLE_ID |
| 327 # CFBundleName of CHROMIUM_SHORT_NAME | 274 # CFBundleName of CHROMIUM_SHORT_NAME |
| 328 # CFBundleSignature of CHROMIUM_CREATOR | 275 # CFBundleSignature of CHROMIUM_CREATOR |
| 329 # Xcode then replaces these values with the branded values we set | 276 # Xcode then replaces these values with the branded values we set |
| 330 # as settings on the target. | 277 # as settings on the target. |
| 331 'CHROMIUM_BUNDLE_ID': '<(mac_bundle_id)', | 278 'CHROMIUM_BUNDLE_ID': '<(mac_bundle_id)', |
| (...skipping 259 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 591 'configurations': { | 538 'configurations': { |
| 592 'Common_Base': { | 539 'Common_Base': { |
| 593 'msvs_target_platform': 'x64', | 540 'msvs_target_platform': 'x64', |
| 594 }, | 541 }, |
| 595 }, | 542 }, |
| 596 }, | 543 }, |
| 597 ], | 544 ], |
| 598 }], | 545 }], |
| 599 ], | 546 ], |
| 600 } | 547 } |
| OLD | NEW |