AusweisApp2/resources/jenkins/dsl/Builds/Build_Win32_MSVC_MSI.groovy

36 lines
798 B
Groovy

import common.Build
import static common.Constants.strip
def j = new Build
(
name: 'Win32_MSVC_MSI',
libraries: ['Win32_MSVC'],
label: 'MSVC',
artifacts: 'build/*.msi'
).generate(this)
j.with
{
steps
{
batchFile('''\
cd build
call vcvarsall.bat x86
cmake ../source -DCMAKE_BUILD_TYPE=MinSizeRel -DCMAKE_CXX_COMPILER=clcache -DCMAKE_PREFIX_PATH=%WORKSPACE%/libs/build/dist -GNinja -DWIN_SIGN_KEYSTORE=%WIN_SIGN_KEYSTORE% -DWIN_SIGN_KEYSTORE_PSW=%WIN_SIGN_KEYSTORE_PSW% -DWIN_SIGN_SUBJECT_NAME=%WIN_SIGN_SUBJECT_NAME%
'''.stripIndent().trim())
batchFile('''\
cd build
call vcvarsall.bat x86
ninja %MAKE_FLAGS% package
'''.stripIndent().trim())
batchFile('''\
cd build
call vcvarsall.bat x86
ninja package.sign
'''.stripIndent().trim())
}
}