type
BuildPod
src
abstract class BuildPod : BuildScript
BuildPod is the base class for build scripts used to manage building a Fantom source code and resources into a Fantom pod.
See Build for details.
fields
depends |
List of dependencies for pod formatted as |
---|---|
dependsDir |
The directory to look in for the dependency pod file (and potentially their recursive dependencies). |
docApi |
Indicates if if fandoc API should be included in the documentation. |
docSrc |
Indicates if if source code should be included in the pod/documentation. |
dotnetDirs |
List of Uris relative to build script of directories containing the C# source files to compile for .NET native methods. |
index |
Pod index name/value pairs to compile into pod. |
javaDirs |
List of Uris relative to build script of directories containing the Java source files to compile for Java native methods. |
jniDirs |
List of Uris relative to build script of directories containing the JNI C source files to compile. |
jniPlatforms |
If non-null, whitelist of platforms JNI should be enabled for. |
jsDirs |
List of Uris relative to build script of directories containing the JavaScript source files to compile for JavaScript native methods. |
jsProps |
List of Uris relative to build script that should be searched for |
meta |
Pod meta-data name/value pairs to compile into pod. |
outDocDir |
Directory to output documentation (docs always get placed in sub-directory named by pod). |
outPodDir |
Directory to output pod file. |
podName |
Required name of the pod. |
resDirs |
List of optional Uris relative to build script of directories of resources files to package into pod zip file. |
srcDirs |
List of Uris relative to build script of directories containing the Fan source files to compile. |
summary |
Required summary description of pod. |
version |
Version of the pod - default is set to |
methods
clean |
Delete all intermediate and target files |
---|---|
compile |
Compile the source into a pod file and all associated natives. |
compileDotnet |
Compile native .NET assembly dotnetDirs configured |
compileFan |
Compile Fan code into pod file |
compileJava |
Compile Java class files if javaDirs is configured |
compileJni |
Compile JNI bindings if jniDirs configured. |
compileNodeJs |
Compile to javascript node module |
full |
Run clean, compile, and test |
nodeJs |
Compile to all classes to run in Node.js |
onCompileFan |
Callback to tune the Fantom compiler input |
test |
Run the unit tests using |
Slot Details
clean
compile
src
@Target { help=... }
virtual Void compile()
Compile the source into a pod file and all associated natives. See compileFan
, compileJava
, and compileDotnet
.
compileDotnet
compileFan
compileJava
compileJni
compileNodeJs
depends
List of dependencies for pod formatted as Depend
. Strings are automatically run through BuildScript.applyMacros
.
dependsDir
The directory to look in for the dependency pod file (and potentially their recursive dependencies). If null then we use the compiler's own pod definitions via reflection (which is more efficient). As a general rule you shouldn't mess with this field - it is used by the build
and compiler
build scripts for bootstrap build.
docApi
docSrc
dotnetDirs
full
index
javaDirs
jniDirs
jniPlatforms
jsDirs
jsProps
meta
nodeJs
onCompileFan
src
virtual Void onCompileFan(CompilerInput ci)
Callback to tune the Fantom compiler input
outDocDir
outPodDir
podName
resDirs
srcDirs
summary
test
version
Version of the pod - default is set to BuildScript.config
prop buildVersion
.