Skip to content

Commit

Permalink
Exclude test targets from vgaudio-cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
hozuki committed May 30, 2020
1 parent 74f07d1 commit 2667c8e
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/vgaudio-cpp
15 changes: 14 additions & 1 deletion scripts/configure-cmake-ubuntu.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,19 @@ New-Item -ItemType Directory -Force -Path build/make

Push-Location build/make

& cmake -DCMAKE_BUILD_TYPE=MinSizeRel -DVGAUDIO_APPS_DYNAMIC_LINKING=ON -DVGAUDIO_NO_CMAKE_OUTPUT_DIRECTORY_OVERRIDE=ON ../..
$cmakeDefs = @{
"DVGAUDIO_APPS_DYNAMIC_LINKING" = "ON";
"VGAUDIO_NO_CMAKE_OUTPUT_DIRECTORY_OVERRIDE" = "ON";
"VGAUDIO_DONT_GENERATE_TEST_TARGETS" = "ON";
}

# Must specify types explicitly otherwise PowerShell can't find the correct overload
[String]$cmakeDefString = [String]::Join(" ",[System.Linq.Enumerable]::Select([String[]]$cmakeDefs.Keys, [Func[String, String]]{
param ([String]$key)
[String]$value = $cmakeDefs[$key]
return "-D$key=$value"
}))

& cmake -DCMAKE_BUILD_TYPE=MinSizeRel "$cmakeDefString" ../..

Pop-Location
2 changes: 2 additions & 0 deletions scripts/configure-cmake-win.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,10 @@ cmake --version
$cmakeDefs = @{
"DVGAUDIO_APPS_DYNAMIC_LINKING" = "ON";
"VGAUDIO_NO_CMAKE_OUTPUT_DIRECTORY_OVERRIDE" = "ON";
"VGAUDIO_DONT_GENERATE_TEST_TARGETS" = "ON";
}

# Must specify types explicitly otherwise PowerShell can't find the correct overload
[String]$cmakeDefString = [String]::Join(" ",[System.Linq.Enumerable]::Select([String[]]$cmakeDefs.Keys, [Func[String, String]]{
param ([String]$key)
[String]$value = $cmakeDefs[$key]
Expand Down

0 comments on commit 2667c8e

Please sign in to comment.