mirror of
https://github.com/cappuccino/cappuccino.git
synced 2026-09-25 20:00:42 +00:00
Removed dependencies on common.jake.
Reviewed by me.
This commit is contained in:
@@ -1,12 +1,13 @@
|
||||
|
||||
var Jake = require("jake"),
|
||||
var FILE = require("file"),
|
||||
Jake = require("jake"),
|
||||
BundleTask = require("objective-j/jake/bundletask").BundleTask;
|
||||
|
||||
function ApplicationTask(aName)
|
||||
{
|
||||
BundleTask.apply(this, arguments);
|
||||
|
||||
if (require("file").exists("index.html"))
|
||||
if (FILE.exists("index.html"))
|
||||
this._indexFilePath = "index.html";
|
||||
else
|
||||
this._indexFilePath = null;
|
||||
@@ -65,7 +66,7 @@ ApplicationTask.prototype.defineIndexFileTask = function()
|
||||
|
||||
Jake.filedir (buildIndexFilePath, [indexFilePath], function()
|
||||
{
|
||||
cp(indexFilePath, buildIndexFilePath);
|
||||
FILE.copy(indexFilePath, buildIndexFilePath);
|
||||
});
|
||||
|
||||
this.enhance([buildIndexFilePath]);
|
||||
|
||||
@@ -0,0 +1,37 @@
|
||||
/*
|
||||
* Jakefile
|
||||
* __project.name__
|
||||
*
|
||||
* Created by __user.name__ on __project.date__.
|
||||
* Copyright __project.year__, __organization.name__ All rights reserved.
|
||||
*/
|
||||
|
||||
var ENV = require("system").env,
|
||||
FILE = require("file"),
|
||||
task = require("jake").task,
|
||||
FileList = require("jake").FileList,
|
||||
app = require("objective-j/jake").app,
|
||||
configuration = ENV["CONFIG"] || ENV["CONFIGURATION"] || ENV["c"] || "Debug";
|
||||
|
||||
app ("__project.nameasidentifier__", function(task)
|
||||
{
|
||||
task.setBuildIntermediatesPath(FILE.join("Build", "__project.nameasidentifier__.build", configuration));
|
||||
task.setBuildPath(FILE.join("Build", configuration));
|
||||
|
||||
task.setProductName("__project.name__");
|
||||
task.setIdentifier("__project.identifier__");
|
||||
task.setVersion("1.0");
|
||||
// t.author = '__organization.name__'
|
||||
// t.email = '__organization.email__'
|
||||
// t.summary = '__project.name__'
|
||||
task.setSources(new FileList("*.j"));
|
||||
task.setResources(new FileList("Resources/*"));
|
||||
// t.info_plist = 'Info.plist'
|
||||
|
||||
if (configuration === "Debug")
|
||||
task.setCompilerFlags("-DDEBUG -g");
|
||||
else
|
||||
task.setCompilerFlags("-O");
|
||||
});
|
||||
|
||||
task ("default", ["__project.nameasidentifier__"]);
|
||||
Reference in New Issue
Block a user