@@ -115,6 +115,59 @@ The MSBuild verbosity level. Passed to MSBuild as `/v:<value>`.
115115
116116Valid values: ` quiet ` , ` minimal ` , ` normal ` , ` detailed ` , ` diagnostic `
117117
118+ ## -ExeOutputDir
119+
120+ ``` text
121+ -ExeOutputDir <path>
122+ ```
123+
124+ Output directory for the compiled executable or library. Passed to MSBuild as
125+ ` /p:DCC_ExeOutput=<path> ` .
126+
127+ When omitted, MSBuild uses the output location defined in the project's
128+ PropertyGroups. The result object's ` .exeOutputDir ` is ` $null ` when this
129+ parameter is not supplied.
130+
131+ ## -DcuOutputDir
132+
133+ ``` text
134+ -DcuOutputDir <path>
135+ ```
136+
137+ Output directory for compiled ` .dcu ` files. Passed to MSBuild as
138+ ` /p:DCC_DcuOutput=<path> ` .
139+
140+ When omitted, MSBuild uses the DCU location from the project's PropertyGroups.
141+ The result object's ` .dcuOutputDir ` is ` $null ` when this parameter is not
142+ supplied.
143+
144+ ## -UnitSearchPath
145+
146+ ``` text
147+ -UnitSearchPath <path[]>
148+ ```
149+
150+ Additional unit search paths appended to the project's existing unit path.
151+ Accepts an array of path strings. Multiple paths are joined with semicolons
152+ and passed as:
153+
154+ ``` text
155+ /p:DCC_UnitSearchPath="$(DCC_UnitSearchPath);path1;path2"
156+ ```
157+
158+ The ` $(DCC_UnitSearchPath) ` prefix preserves the paths already set in the
159+ project's PropertyGroups. Without it, the assignment would replace them
160+ entirely.
161+
162+ When omitted (or an empty array), no ` /p:DCC_UnitSearchPath ` argument is added.
163+ The result object's ` .unitSearchPath ` is ` $null ` when no paths are supplied.
164+
165+ Example:
166+
167+ ``` powershell
168+ -UnitSearchPath @('C:\Libs\A', 'C:\Libs\B')
169+ ```
170+
118171## -Define
119172
120173``` text
@@ -191,17 +244,20 @@ On success or build failure (exit codes 0 and 5), a single
191244` pscustomobject ` is written to the pipeline before the script exits.
192245This allows downstream pipeline steps to consume the build result.
193246
194- | Property | Type | Description |
195- | ---------------| ---------| ------------------------------------------------------|
196- | ` projectFile ` | string | Absolute path to the project file |
197- | ` platform ` | string | Platform value used (e.g. ` Win32 ` ) |
198- | ` config ` | string | Config value used (e.g. ` Debug ` ) |
199- | ` target ` | string | Target used (e.g. ` Build ` ) |
200- | ` rootDir ` | string | Resolved Delphi installation root |
201- | ` rsvarsPath ` | string | Derived path to ` rsvars.bat ` |
202- | ` exitCode ` | int | MSBuild process exit code |
203- | ` success ` | bool | ` $true ` when ` exitCode ` is 0 |
204- | ` output ` | string | Captured MSBuild output; ` $null ` when ` -ShowOutput ` |
247+ | Property | Type | Description |
248+ | ------------------| ----------| ----------------------------------------------------------|
249+ | ` projectFile ` | string | Absolute path to the project file |
250+ | ` platform ` | string | Platform value used (e.g. ` Win32 ` ) |
251+ | ` config ` | string | Config value used (e.g. ` Debug ` ) |
252+ | ` target ` | string | Target used (e.g. ` Build ` ) |
253+ | ` rootDir ` | string | Resolved Delphi installation root |
254+ | ` rsvarsPath ` | string | Derived path to ` rsvars.bat ` |
255+ | ` exeOutputDir ` | string | Value of ` -ExeOutputDir ` ; ` $null ` when not supplied |
256+ | ` dcuOutputDir ` | string | Value of ` -DcuOutputDir ` ; ` $null ` when not supplied |
257+ | ` unitSearchPath ` | string[ ] | Value of ` -UnitSearchPath ` ; ` $null ` when not supplied |
258+ | ` exitCode ` | int | MSBuild process exit code |
259+ | ` success ` | bool | ` $true ` when ` exitCode ` is 0 |
260+ | ` output ` | string | Captured MSBuild output; ` $null ` when ` -ShowOutput ` |
205261
206262Note: On fata errors before MSBuild is invoked (exit codes 2, 3, 4) no result
207263object is emitted.
0 commit comments