Skip to content

Commit

Permalink
Cleanup build dir checking, print deprecation warning for STEAM_BUILD
Browse files Browse the repository at this point in the history
  • Loading branch information
Tom Robinson committed Jan 9, 2010
1 parent c2282af commit 379f40c
Showing 1 changed file with 12 additions and 19 deletions.
31 changes: 12 additions & 19 deletions common.jake
Expand Up @@ -52,25 +52,18 @@ global.CLOBBER = require("jake/clean").CLOBBER;


// Read in and set up development environment variables.
if (!ENV["BUILD_PATH"])
{
// Global Cappuccino build directory
if (ENV["CAPP_BUILD"])
ENV["BUILD_PATH"] = ENV["CAPP_BUILD"];

// Maintain backwards compatibility with steam.
else if(ENV["STEAM_BUILD"])
ENV["BUILD_PATH"] = ENV["STEAM_BUILD"];

// Just build here.
else
ENV["BUILD_PATH"] = FILE.join(FILE.dirname(module.path), 'Build');
}

ENV["BUILD_PATH"] = FILE.absolute(ENV["BUILD_PATH"]);

if (!ENV["CONFIG"])
ENV["CONFIG"] = "Release";

ENV["BUILD_PATH"] = FILE.absolute(
ENV["BUILD_PATH"] ||
ENV["CAPP_BUILD"] || // Global Cappuccino build directory.
ENV["STEAM_BUILD"] || // Maintain backwards compatibility with steam.
FILE.join(FILE.dirname(module.path), "Build") // Just build here.
);

if (!ENV["CAPP_BUILD"] && ENV["STEAM_BUILD"])
system.stderr.print("STEAM_BUILD is deprecated, please use CAPP_BUILD instead");

ENV["CONFIG"] = ENV["CONFIG"] || "Release";

global.$CONFIGURATION = ENV['CONFIG'];
global.$BUILD_DIR = ENV['BUILD_PATH'];
Expand Down

0 comments on commit 379f40c

Please sign in to comment.