File tree Expand file tree Collapse file tree 1 file changed +7
-12
lines changed Expand file tree Collapse file tree 1 file changed +7
-12
lines changed Original file line number Diff line number Diff line change 7
7
. PARAMETER with_tests
8
8
Build tests
9
9
. PARAMETER standalone
10
- Add ros2 binaries
10
+ Add ros2 binaries. Currently standalone flag is fixed to true, so there is no way to build without standalone libs. Parameter kept for future releases
11
11
. PARAMETER clean_install
12
12
Makes a clean installation. Removes install dir before deploying
13
13
#>
@@ -24,25 +24,20 @@ if(-Not (Test-Path -Path "$scriptPath\src\ros2cs")) {
24
24
exit 1
25
25
}
26
26
27
-
28
27
Write-Host $msg - ForegroundColor Green
29
- $options = " "
30
- if ($with_tests ) {
31
- $options = " --with-tests"
32
- }
33
- if ($standalone ) {
34
- $options = " --standalone"
28
+ $options = @ {
29
+ with_tests = $with_tests
30
+ standalone = $standalone
35
31
}
36
32
37
-
38
33
if ($clean_install ) {
39
34
Write-Host " Cleaning install directory..." - ForegroundColor White
40
35
Remove-Item - Path " $scriptPath \install" - Force - Recurse - ErrorAction Ignore
41
36
}
42
- & " $scriptPath \src\ros2cs\build.ps1" $ options
37
+ & " $scriptPath \src\ros2cs\build.ps1" @ options
43
38
if ($? ) {
44
- mkdir $scriptPath \install\asset | Out-Null
45
- ( Copy-Item - verbose - Path $scriptPath \src\Ros2ForUnity - Destination $scriptPath \install\asset\Ros2ForUnity 4>&1 ).Message
39
+ md - Force $scriptPath \install\asset | Out-Null
40
+ Copy-Item - Path $scriptPath \src\Ros2ForUnity - Destination $scriptPath \install\asset\ - Recurse - Force
46
41
47
42
$plugin_path = Join-Path - Path $scriptPath - ChildPath " \install\asset\Ros2ForUnity\Plugins\"
48
43
Write-Host " Deploying build to $plugin_path " - ForegroundColor Green
You can’t perform that action at this time.
0 commit comments