From 0876653ae3fe9016ef950fd640bb0a1762bf82c1 Mon Sep 17 00:00:00 2001 From: Francisco Ryan Tolmasky I Date: Wed, 29 Jul 2009 19:06:06 -0700 Subject: [PATCH] Only include debug.js in DEBUG mode for Objective-J. Reviewed by me. --- Objective-J/Rakefile | 17 +++++------------ 1 file changed, 5 insertions(+), 12 deletions(-) diff --git a/Objective-J/Rakefile b/Objective-J/Rakefile index f0f1782ac..c57bb8edc 100644 --- a/Objective-J/Rakefile +++ b/Objective-J/Rakefile @@ -17,18 +17,11 @@ $RHINO_FILE = File.join($PRODUCT, 'rhino.platform', 'Objective-J.js' task :Products => [$BROWSER_FILE, $RHINO_FILE, $LICENSE_PRODUCT] -Files = [ 'constants.js', - 'utilities.js', - 'json2.js', - 'runtime.js', - 'dictionary.js', - 'plist.js', - 'file.js', - 'exception.js', - 'preprocess.js', - 'evaluate.js', - 'debug.js', - 'bootstrap.js']; +Files = FileList['constants.js', 'utilities.js', 'json2.js', 'runtime.js', 'dictionary.js', 'plist.js', 'file.js', 'exception.js', 'preprocess.js', 'evaluate.js', 'bootstrap.js'] + +if $CONFIGURATION == 'Debug' + Files.add('debug.js') +end file_d $BROWSER_FILE => Files do |t| build_product(t.name, platform_flags(ObjectiveJ::Platform::Browser, ObjectiveJ::Platform::ObjJ))