AusweisApp2/resources/jenkins/dsl/Reviews/Review_Libs_Win32_MSVC.groovy

29 lines
627 B
Groovy

import common.LibraryReview
def j = new LibraryReview
(
name: 'Win32_MSVC',
label: 'MSVC'
).generate(this)
j.with
{
steps
{
batchFile('cd source & python resources/jenkins/import.py')
batchFile('''\
cd build
call vcvarsall.bat x86
cmake ../source/libs -DCMAKE_BUILD_TYPE=release -DPACKAGES_DIR=%PACKAGES_DIR% -G"NMake Makefiles" -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
nmake compress
'''.stripIndent().trim())
}
}