mirror of
https://github.com/cappuccino/cappuccino.git
synced 2026-10-02 23:26:16 +00:00
Added configurable list of source directories for framework Jakefile
This commit is contained in:
@@ -42,6 +42,26 @@ var SYS = require("system"),
|
||||
*/
|
||||
var buildDir = ENV["BUILD_PATH"] || ENV["CAPP_BUILD"] || "Build";
|
||||
|
||||
/*
|
||||
The list of directories containing Objective-J source
|
||||
that should be compiled by jake. The main framework
|
||||
directory is always checked for Objective-J source,
|
||||
you only need to edit this if you have source in
|
||||
subdirectories. Do NOT include a leading ortrailing slash
|
||||
in the directory name.
|
||||
|
||||
Example:
|
||||
|
||||
var sourceDirs = [
|
||||
"Core",
|
||||
"Modules",
|
||||
"Modules/Foo",
|
||||
"Modules/Bar"
|
||||
];
|
||||
*/
|
||||
var sourceDirs = [
|
||||
];
|
||||
|
||||
|
||||
//===========================================================
|
||||
// AUTOMATICALLY GENERATED
|
||||
@@ -76,7 +96,13 @@ var frameworkTask = framework (productName, function(frameworkTask)
|
||||
frameworkTask.setAuthor("__organization.name__");
|
||||
frameworkTask.setEmail("__organization.email__");
|
||||
frameworkTask.setSummary("__project.name__");
|
||||
frameworkTask.setSources(new FileList("*.j"));
|
||||
|
||||
var includes = sourceDirs.map(function(dir) { return dir + "/*.j"; }),
|
||||
fileList = new FileList();
|
||||
|
||||
includes.unshift("*.j");
|
||||
fileList.include(includes);
|
||||
frameworkTask.setSources(fileList);
|
||||
frameworkTask.setResources(new FileList("Resources/**/*"));
|
||||
frameworkTask.setFlattensSources(true);
|
||||
frameworkTask.setInfoPlistPath("Info.plist");
|
||||
|
||||
Reference in New Issue
Block a user