summaryrefslogtreecommitdiff
path: root/src/build_wince.bat
blob: 26223e3487b774a2bb771c689f87c81103e75e07 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
@echo off

rem We use FPC to found out the Platform and OS to create a lib output path
fpc -Parm -Twince -iTP > tmpvar
set /p myplatform= < tmpvar
fpc -Parm -Twince -iTO > tmpvar
set /p myos= < tmpvar
del tmpvar

if exist ..\lib\%myplatform%-%myos%\nul.x goto exists

echo Creating missing directory ..\lib\%myplatform%-%myos%
mkdir ..\lib\%myplatform%-%myos%
goto end

:exists
echo "You've got the correct output lib directory"

:end

fpc -v0 -dGDI -Twince -Parm @extrafpc.cfg corelib\gdi\fpgui_toolkit.pas