diff options
| author | Robert Schumacher <roschuma@microsoft.com> | 2018-01-03 17:44:55 -0800 |
|---|---|---|
| committer | Robert Schumacher <roschuma@microsoft.com> | 2018-01-03 17:45:15 -0800 |
| commit | b899067edba25c5464a96a5dd2c5cfac5901b785 (patch) | |
| tree | 29380498abe4e4eb4305849cff68ec20730dca8c /ports/boost-vcpkg-helpers | |
| parent | 3bebb1074420858b9c703865c518cf09438fa52a (diff) | |
| download | vcpkg-b899067edba25c5464a96a5dd2c5cfac5901b785.tar.gz vcpkg-b899067edba25c5464a96a5dd2c5cfac5901b785.zip | |
[boost-test] Move _exec_monitor libs to manual-link. Fixes #2444.
Diffstat (limited to 'ports/boost-vcpkg-helpers')
| -rw-r--r-- | ports/boost-vcpkg-helpers/generate-ports.ps1 | 22 |
1 files changed, 21 insertions, 1 deletions
diff --git a/ports/boost-vcpkg-helpers/generate-ports.ps1 b/ports/boost-vcpkg-helpers/generate-ports.ps1 index 11f670c7a..09dcbca72 100644 --- a/ports/boost-vcpkg-helpers/generate-ports.ps1 +++ b/ports/boost-vcpkg-helpers/generate-ports.ps1 @@ -21,11 +21,17 @@ function Generate() $sanitizedName = $name -replace "_","-"
+ $versionsuffix = ""
+ if ($Name -eq "test")
+ {
+ $versionsuffix = "-1"
+ }
+
mkdir "$scriptsDir/../boost-$sanitizedName" -erroraction SilentlyContinue | out-null
$controlLines = @(
"# Automatically generated by boost-vcpkg-helpers/generate-ports.ps1"
"Source: boost-$sanitizedName"
- "Version: $version"
+ "Version: $version$versionsuffix"
"Build-Depends: $controlDeps"
"Description: Boost $Name module"
)
@@ -143,6 +149,20 @@ function Generate() "endif()"
)
}
+ if ($Name -eq "test")
+ {
+ $portfileLines += @(
+ "file(MAKE_DIRECTORY `${CURRENT_PACKAGES_DIR}/lib/manual-link)"
+ "file(MAKE_DIRECTORY `${CURRENT_PACKAGES_DIR}/debug/lib/manual-link)"
+ ""
+ "file(GLOB MONITOR_LIBS `${CURRENT_PACKAGES_DIR}/lib/*_exec_monitor*)"
+ "file(COPY `${MONITOR_LIBS} DESTINATION `${CURRENT_PACKAGES_DIR}/lib/manual-link)"
+ "file(GLOB DEBUG_MONITOR_LIBS `${CURRENT_PACKAGES_DIR}/debug/lib/*_exec_monitor*)"
+ "file(COPY `${DEBUG_MONITOR_LIBS} DESTINATION `${CURRENT_PACKAGES_DIR}/debug/lib/manual-link)"
+ ""
+ "file(REMOVE `${DEBUG_MONITOR_LIBS} `${MONITOR_LIBS})"
+ )
+ }
$portfileLines | out-file -enc ascii "$scriptsDir/../boost-$sanitizedName/portfile.cmake"
}
|
