-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtis-generator.l
48 lines (48 loc) · 1.08 KB
/
tis-generator.l
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
# PicoLisp tis.config file generator
(de prn (F M)
(prinl "{")
(printsp "name" ': (pack F " - " M))
(prinl ",")
(printsp "files" ': "all")
(prinl ",")
(printsp "cpp-extra-args" ': "-I. -I kremlib/dist/minimal")
(prinl ",")
(printsp "machdep" ': (text M))
(prinl ",")
(printsp "raw_options" ':)
(prin "{ ")
(printsp "-val-timeout" ': 10800)
(prin ", ")
(printsp "-no-results" ': "true")
(prinl "} ,")
(printsp "main" ': (text F))
(prinl)
(prinl "}") )
(setq
*M
(quote
sparc_64 sparc_32
x86_32 x86_64 x86_16
armeb_eabi arm_eabi aarch64 aarch64eb
rv64ifdq rv32ifdq
mips_o32 mips_n32 mips_64 mipsel_64
mipsel_n32 apple_ppc_32
)
*F
(quote
p1305 x25519 sha512 blake2b hmac sign_check_ed25519
)
*L
(make
(for F *F
(for M *M
(link (cons F M)) ) ) ) )
(out "tis.config"
(prinl "// Auto genetated file")
(prinl "[")
(for (L *L L (cdr L))
(let (F (caar L) M (cdar L))
(prn F M)
(and (cdr L) (prinl ",")) ) )
(prinl "]") )
(bye)