Add platform detection to Windows build
This commit is contained in:
parent
19efb08a3a
commit
7ac6100a5a
@ -7,6 +7,10 @@ $Compiler = "cl.exe"
|
||||
$GeneralFlags = "/Wall /WX /wd4996"
|
||||
$LibraryFlags = "/LD"
|
||||
|
||||
$Kernel = (Get-ChildItem Env:OS).Value
|
||||
$Machine = (Get-ChildItem Env:PROCESSOR_ARCHITECTURE).Value
|
||||
$Platform = "${Kernel}_${Machine}"
|
||||
|
||||
$IncludeDirs = Get-ChildItem -Path src -Recurse -Directory -ErrorAction SilentlyContinue -Force | %{$("/I " + '"' + $_.FullName + '"')}
|
||||
$SrcFiles = "src/wapp.c"
|
||||
|
||||
@ -21,7 +25,7 @@ If ($Release -eq $True) {
|
||||
$BuildType = "debug"
|
||||
}
|
||||
|
||||
$BuildDir = "./libwapp-build/windows-$BuildType"
|
||||
$BuildDir = "./libwapp-build/${Platform}-${BuildType}"
|
||||
$ObjDir = "$BuildDir/objects"
|
||||
$OutDir = "$BuildDir/output"
|
||||
$TestsDir = "$BuildDir/tests"
|
||||
|
Loading…
Reference in New Issue
Block a user