AtlatestRepositorysigil-ui
1
#!/usr/bin/env sigil2
(import (sigil shell prelude))3
(define root (realpath (path (script-dir) "..")))4
(define headers (arg 1))5
(define archive (arg 2))6
(define allocator (arg 3))7
(define evidence (arg 4))8
(define compiler (or (getenv "CC") "cc"))9
(ensure-directory evidence)10
(define executable (path evidence "services-native"))11
($ ,compiler -std=c11 -D_GNU_SOURCE -O1 -g -Wall -Wextra -Werror -Wno-unused-parameter12
,(str "-I" headers) ,(str "-I" (path root "native"))13
,(str "-I" (path root "native/wayland")) ,(str "-I" (path root "native/wayland/include"))14
,(path root "test/wayland/services-native.c") ,archive ,allocator15
-lm -ldl -lpthread -o ,executable timeout: 60)16
($ ,executable timeout: 15)