Use caching during builds.

Change library name/path depending on arch.
This commit is contained in:
Joseph Lenox 2017-05-15 18:41:07 -05:00
parent b826f8baea
commit bbbf4e6172
2 changed files with 8 additions and 5 deletions

View File

@ -9,8 +9,8 @@ environment:
BOOST_DIR: C:\dev\boost_1_63_0
WXDIR: C:\dev\wxwidgets
WXSHARED: SHARED=0
FORCE_WX_BUILD: 1
FORCE_BOOST_REINSTALL: 1
FORCE_WX_BUILD: 0
FORCE_BOOST_REINSTALL: 0
ENC_SECRET:
secure: QfeTOSKXz1uFCEACqFKLNw==
UPLOAD_USER:

View File

@ -43,8 +43,12 @@ New-Variable -Name "STRAWBERRY_PATH" -Value "C:\Strawberry"
cpanm "PAR::Packer"
if ($env:ARCH -eq "32bit") {
$perlarch = "sjlj"
$glut = "libglut-0_.dll"
$pthread= "pthreadGC2-w32.dll"
} else {
$perlarch = "seh"
$glut = "libglut-0__.dll"
$pthread= "pthreadGC2-w64.dll"
}
@ -62,9 +66,8 @@ pp `
-a "${STRAWBERRY_PATH}\perl\bin\libstdc++-6.dll;libstdc++-6.dll" `
-a "${STRAWBERRY_PATH}\perl\bin\libgcc_s_${perlarch}-1.dll;libgcc_s_${perlarch}-1.dll" `
-a "${STRAWBERRY_PATH}\perl\bin\libwinpthread-1.dll;libwinpthread-1.dll" `
-a "${STRAWBERRY_PATH}\c\bin\pthreadGC2-w64.dll;pthreadGC2-w64.dll" `
-a "${STRAWBERRY_PATH}\c\bin\pthreadGC2-w32.dll;pthreadGC2-w32.dll" `
-a "${STRAWBERRY_PATH}\c\bin\libglut-0__.dll;libglut-0__.dll" `
-a "${STRAWBERRY_PATH}\c\bin\${pthread};${pthread}" `
-a "${STRAWBERRY_PATH}\c\bin\${glut};${glut}" `
-M AutoLoader `
-M B `
-M Carp `