2022-06-11 04:49:07 +00:00
|
|
|
@echo off
|
|
|
|
setlocal enabledelayedexpansion
|
|
|
|
|
2022-07-02 07:22:38 +00:00
|
|
|
if not exist src\code\unicode\data.h (
|
|
|
|
py src\code\unicode\compile.py
|
2022-06-16 12:36:35 +00:00
|
|
|
)
|
|
|
|
|
2022-06-11 04:49:07 +00:00
|
|
|
set PLATFORM=win
|
|
|
|
set CIABATTA_OPTIONS=--crt none -I %% -I inc
|
|
|
|
|
|
|
|
del ciabatta.lib
|
2022-06-16 12:36:35 +00:00
|
|
|
cuik %CIABATTA_OPTIONS% src\code\*.c src\%PLATFORM%\*.c -c -o ciabatta.obj
|
2022-06-11 04:49:07 +00:00
|
|
|
lib /out:ciabatta.lib ciabatta.obj
|
|
|
|
|
2022-06-16 12:36:35 +00:00
|
|
|
if "%TEST%"=="" set TEST=assert
|
|
|
|
|
|
|
|
cuik test\test_%TEST%.c --lib ciabatta.lib,kernel32.lib,user32.lib,shell32.lib %CIABATTA_OPTIONS%
|
2022-06-11 04:49:07 +00:00
|
|
|
del ciabatta.obj
|