diff --git a/Tools/capp/Resources/Templates/Framework/Jakefile b/Tools/capp/Resources/Templates/Framework/Jakefile index 904120d20..e5b79aa60 100644 --- a/Tools/capp/Resources/Templates/Framework/Jakefile +++ b/Tools/capp/Resources/Templates/Framework/Jakefile @@ -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");