Rev 8832 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
8827 | rgimad | 1 | if tup.getconfig("NO_TCC") ~= "" then return end |
9624 | turbocat | 2 | if tup.getconfig("HELPERDIR") == "" |
3 | then |
||
4 | HELPERDIR = "../../../programs" |
||
5 | end |
||
6 | tup.include(HELPERDIR .. "/use_tcc.lua") |
||
5098 | clevermous | 7 | |
8828 | rgimad | 8 | if tup.getconfig("LANG") == "ru" |
9 | then C_LANG = "LANG_RUS" |
||
10 | else C_LANG = "LANG_ENG" -- this includes default case without config |
||
11 | end |
||
12 | |||
13 | if tup.getconfig("TUP_PLATFORM") == "win32" |
||
14 | -- on win32 '#' is not a special character, but backslash and quotes would be printed as is |
||
15 | then tup.rule('echo #define ' .. C_LANG .. ' 1 > %o', {"lang.h"}) |
||
16 | -- on unix '#' should be escaped |
||
17 | else tup.rule('echo "#define" ' .. C_LANG .. ' 1 > %o', {"lang.h"}) |
||
18 | end |
||
19 | |||
9624 | turbocat | 20 | LIBS = "" |
8827 | rgimad | 21 | |
9624 | turbocat | 22 | link_tcc({"shell.c", "system/kolibri.c", extra_inputs = {"lang.h"}}, "shell"); |