-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathbuild.cmd
57 lines (48 loc) · 1.58 KB
/
build.cmd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
mkdir build\dashel
pushd build\dashel
cmake.exe -G "MinGW Makefiles"^
-D "CMAKE_BUILD_TYPE=Release"^
-D "BUILD_SHARED_LIBS=OFF"^
"%WORKSPACE%\source\dashel"
mingw32-make.exe
popd
mkdir build\enki
pushd build\enki
cmake.exe -G "MinGW Makefiles"^
-D "CMAKE_BUILD_TYPE=Release"^
"%WORKSPACE%\source\enki"
mingw32-make.exe
popd
mkdir build\aseba
pushd build\aseba
cmake.exe -G "MinGW Makefiles"^
-D "CMAKE_BUILD_TYPE=Release"^
-D "dashel_DIR=%WORKSPACE%\build\dashel"^
-D "enki_DIR=%WORKSPACE%\build\enki"^
-D "LIBXML2_INCLUDE_DIR=%ASEBA_DEP%\libxml2\include"^
-D "LIBXML2_LIBRARIES=%ASEBA_DEP%\libxml2\win32\bin.mingw\libxml2.a"^
-D "QWT_INCLUDE_DIR=%ASEBA_DEP%\qwt\src"^
-D "QWT_LIBRARIES=%ASEBA_DEP%\qwt\lib\libqwt5.a"^
"%WORKSPACE%\source\aseba"
mingw32-make.exe
mkdir strip
del /Q strip
for /f %%F in ('dir *.exe /s /b') do (
objcopy.exe --strip-all %%F strip\%%~nxF
call :signBinary strip\%%~nxF
)
popd
if exist "build\thymio-blockly-standalone\" rd /q /s "build\thymio-blockly-standalone"
powershell.exe -nologo -noprofile -command^
"& { Add-Type -A 'System.IO.Compression.FileSystem'; [IO.Compression.ZipFile]::ExtractToDirectory('%ASEBA_DEP%/blockly/blockly.zip', 'build'); }"
del /Q *.exe
makensis.exe^
"/DASEBA_DEP=%ASEBA_DEP%"^
"/DQTDIR=%QTDIR%"^
-- "%WORKSPACE%\source\package\aseba.nsi"
move "%WORKSPACE%\source\package\*.exe" .
call :signBinary *.exe
GOTO:EOF
:signBinary
signtool sign /tr http://timestamp.digicert.com /td sha256 /fd sha256 /du "http://http://www.mobsya.org/" /n "Association Mobsya" /as %~1
GOTO:EOF