Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions src/build/fan/BuildPod.fan
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,12 @@ abstract class BuildPod : BuildScript
**
Uri[]? jsDirs

**
** List of Uris relative to build script of directories containing
** the Python source files to compile for Python native methods.
**
Uri[]? pyDirs

**
** List of Uris relative to build script that should be searched for '.props'
** files to compile to JavaScript. You may also give relative paths to files
Expand Down Expand Up @@ -244,6 +250,7 @@ abstract class BuildPod : BuildScript
meta["pod.native.jni"] = (jniDirs != null && !jniDirs.isEmpty).toStr
meta["pod.native.dotnet"] = (dotnetDirs != null && !dotnetDirs.isEmpty).toStr
meta["pod.native.js"] = (jsDirs != null && !jsDirs.isEmpty).toStr
meta["pod.native.py"] = (pyDirs != null && !pyDirs.isEmpty).toStr

// TODO: add additinal meta props defined by config file/env var
// this behavior is not guaranteed in future versions, rather we
Expand Down Expand Up @@ -289,6 +296,7 @@ abstract class BuildPod : BuildScript
ci.resFiles = resDirs
ci.jsFiles = jsDirs
ci.jsPropsFiles = jsProps ?: resDirs
ci.pyFiles = pyDirs
ci.log = log
ci.includeDoc = docApi
ci.includeSrc = docSrc
Expand Down
7 changes: 7 additions & 0 deletions src/compiler/fan/CompilerInput.fan
Original file line number Diff line number Diff line change
Expand Up @@ -191,6 +191,13 @@ class CompilerInput
**
Uri[]? jsPropsFiles

**
** List of Python files or directories containing Python files
** to include in the Python output. Uris are relative to `baseDir`.
** This field is used only in file mode.
**
Uri[]? pyFiles

//////////////////////////////////////////////////////////////////////////
// CompilerInputMode.str
//////////////////////////////////////////////////////////////////////////
Expand Down
2 changes: 1 addition & 1 deletion src/fanc/build.fan
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@ class Build : BuildPod
depends = ["sys 1.0", "build 1.0", "compiler 1.0", "util 1.0"]
srcDirs = [`fan/`,
`fan/java/`,
`fan/py/`,
`fan/util/`]
docSrc = true
}
}

Loading