SoftwareUnderAnalysisDsl

DSL block for P4 — software under analysis.

Produces the native-target compilation-unit list consumed by P5. include(...) selects exact units; includeTargetSourceTree(...) selects target-owned units beneath logical repository trees.

softwareUnderAnalysis {
from(provenanceBuild.compilationUnits)
include(
repos["sourceRepo"] / "activities/foo/foo_activity.cpp",
repos["stig-project"] / "activities/foo/src/main/resources/harness/foo_harness.cpp",
)
}

Settable at: defaults -> group -> element (cascading).

Constructors

Link copied to clipboard
constructor()

Properties

Link copied to clipboard

Compilation-unit paths. Empty means all source files from from.

Link copied to clipboard

Repository-relative source trees selected from the configured native target's compile actions.

Functions

Link copied to clipboard
Link copied to clipboard
fun include(vararg files: StigRepoFile)

Convenience: add repo-resolved file paths to includes.

Link copied to clipboard
fun includeAbsolutePath(vararg paths: String)
Link copied to clipboard
fun includeTargetSourceTree(vararg sourceTrees: StigRepoFile)

Select every compilation unit owned by the configured native target whose logical source path is beneath one of sourceTrees. Bazel-generated units are matched after their bazel-out/.../bin or genfiles prefix. This does not scan the filesystem and cannot pull tests or other targets into the analysis boundary.