summaryrefslogtreecommitdiffstats
path: root/chrome/chrome.gyp
diff options
context:
space:
mode:
authorthomasvl@chromium.org <thomasvl@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-05-08 20:24:08 +0000
committerthomasvl@chromium.org <thomasvl@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-05-08 20:24:08 +0000
commitad3016e12262917f474f0f511c8ac1a1c3e91935 (patch)
tree2460afdd4aff58385d153fab6b65fb1460573780 /chrome/chrome.gyp
parent0800c6694b82aebb27f8021acc759e04dfe2542f (diff)
downloadchromium_src-ad3016e12262917f474f0f511c8ac1a1c3e91935.zip
chromium_src-ad3016e12262917f474f0f511c8ac1a1c3e91935.tar.gz
chromium_src-ad3016e12262917f474f0f511c8ac1a1c3e91935.tar.bz2
Add a simple dmg script to the mac build dir to build a dmg out of the app.
Add a target to build a dmg out of the app. Add a target to all that will build everything and the dmg (since we don't include the dmg in all since developers really don't need to wait for that). Review URL: http://codereview.chromium.org/113152 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@15672 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/chrome.gyp')
-rw-r--r--chrome/chrome.gyp29
1 files changed, 29 insertions, 0 deletions
diff --git a/chrome/chrome.gyp b/chrome/chrome.gyp
index 0d1d680..95cdc1a 100644
--- a/chrome/chrome.gyp
+++ b/chrome/chrome.gyp
@@ -2771,6 +2771,9 @@
['OS=="mac"',
# On Mac only, add a project target called "package_app" that only
# runs a shell script (package_chrome.sh).
+ # On Mac only, add a project target called "build_app_dmg" that only
+ # builds a DMG out of the App (eventually will completely replace
+ # "package_app").
{ 'targets': [
{
'target_name': 'package_app',
@@ -2792,6 +2795,32 @@
},
], # 'actions'
},
+ {
+ 'target_name': 'build_app_dmg',
+ # do NOT place this in the 'all' list; most won't want it.
+ # In gyp, booleans are 0/1 not True/False.
+ 'suppress_wildcard': 1,
+ 'type': 'none',
+ 'dependencies': [
+ 'app',
+ ],
+ 'variables': {
+ 'build_app_dmg_script_path': '<(DEPTH)/build/mac/build_app_dmg',
+ },
+ 'actions': [
+ {
+ 'inputs': [
+ '<(build_app_dmg_script_path)',
+ '<(PRODUCT_DIR)/<(branding).app',
+ ],
+ 'outputs': [
+ '<(PRODUCT_DIR)/<(branding).dmg',
+ ],
+ 'action_name': 'build_app_dmg',
+ 'action': ['<(build_app_dmg_script_path)', '<@(branding)'],
+ },
+ ], # 'actions'
+ },
]
}, { # else: OS != "mac"
'targets': [