mirror of
https://github.com/cemu-project/vcpkg.git
synced 2025-02-23 11:07:10 +01:00
[boost-vcpkg-helpers] Fix generator script for boost-test modifications in PR #2672
This commit is contained in:
parent
845fccd72a
commit
4a387a4fd7
@ -22,11 +22,16 @@ function Generate()
|
||||
$sanitizedName = $name -replace "_","-"
|
||||
|
||||
$versionsuffix = ""
|
||||
if ($Name -eq "test" -or $Name -eq "python" -or $Name -eq "asio")
|
||||
if ($Name -eq "python" -or $Name -eq "asio")
|
||||
{
|
||||
$versionsuffix = "-1"
|
||||
}
|
||||
|
||||
if ($Name -eq "test")
|
||||
{
|
||||
$versionsuffix = "-2"
|
||||
}
|
||||
|
||||
mkdir "$scriptsDir/../boost-$sanitizedName" -erroraction SilentlyContinue | out-null
|
||||
$controlLines = @(
|
||||
"# Automatically generated by boost-vcpkg-helpers/generate-ports.ps1"
|
||||
@ -158,15 +163,20 @@ function Generate()
|
||||
if ($Name -eq "test")
|
||||
{
|
||||
$portfileLines += @(
|
||||
"file(MAKE_DIRECTORY `${CURRENT_PACKAGES_DIR}/lib/manual-link)"
|
||||
"file(MAKE_DIRECTORY `${CURRENT_PACKAGES_DIR}/debug/lib/manual-link)"
|
||||
"if(NOT DEFINED VCPKG_BUILD_TYPE OR VCPKG_BUILD_TYPE STREQUAL `"release`")"
|
||||
" file(MAKE_DIRECTORY `${CURRENT_PACKAGES_DIR}/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(REMOVE `${MONITOR_LIBS})"
|
||||
"endif()"
|
||||
""
|
||||
"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)"
|
||||
"if(NOT DEFINED VCPKG_BUILD_TYPE OR VCPKG_BUILD_TYPE STREQUAL `"debug`")"
|
||||
" file(MAKE_DIRECTORY `${CURRENT_PACKAGES_DIR}/debug/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})"
|
||||
"endif()"
|
||||
""
|
||||
"file(REMOVE `${DEBUG_MONITOR_LIBS} `${MONITOR_LIBS})"
|
||||
)
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user