AusweisApp2/resources/jenkins/dsl/Libraries/Libs_Win32_GNU.groovy

25 lines
605 B
Groovy

import common.Library
def j = new Library
(
name: 'Win32_GNU',
label: "Windows7_${MERCURIAL_REVISION_BRANCH}"
).generate(this)
j.with
{
steps
{
batchFile("cd build & cmake ../source/libs -DCMAKE_BUILD_TYPE=release -DPACKAGES_DIR=%PACKAGES_DIR% -G\"MinGW Makefiles\" -DWIN_SIGN_KEYSTORE=%WIN_SIGN_KEYSTORE% -DWIN_SIGN_KEYSTORE_PSW=%WIN_SIGN_KEYSTORE_PSW% -DWIN_SIGN_SUBJECT_NAME=%WIN_SIGN_SUBJECT_NAME%")
shell('''\
#!c:\\msys\\1.0\\bin\\sh --login
cd /jenkins/$JOB_NAME/build
mingw32-make openssl
'''.stripIndent().trim())
batchFile('cd build & mingw32-make compress')
}
}