From ad3016e12262917f474f0f511c8ac1a1c3e91935 Mon Sep 17 00:00:00 2001 From: "thomasvl@chromium.org" Date: Fri, 8 May 2009 20:24:08 +0000 Subject: 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 --- chrome/chrome.gyp | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) (limited to 'chrome/chrome.gyp') 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': [ -- cgit v1.1