Rev 9624 | 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 |
9781 | vitalkrilo | 2 | |
3 | HELPERDIR = (tup.getconfig("HELPERDIR") == "") and "../.." or tup.getconfig("HELPERDIR") |
||
9624 | turbocat | 4 | tup.include(HELPERDIR .. "/use_tcc.lua") |
5098 | clevermous | 5 | |
8828 | rgimad | 6 | if tup.getconfig("LANG") == "ru" |
7 | then C_LANG = "LANG_RUS" |
||
8 | else C_LANG = "LANG_ENG" -- this includes default case without config |
||
9 | end |
||
10 | |||
11 | if tup.getconfig("TUP_PLATFORM") == "win32" |
||
12 | -- on win32 '#' is not a special character, but backslash and quotes would be printed as is |
||
13 | then tup.rule('echo #define ' .. C_LANG .. ' 1 > %o', {"lang.h"}) |
||
14 | -- on unix '#' should be escaped |
||
15 | else tup.rule('echo "#define" ' .. C_LANG .. ' 1 > %o', {"lang.h"}) |
||
16 | end |
||
17 | |||
9624 | turbocat | 18 | LIBS = "" |
8827 | rgimad | 19 | |
9624 | turbocat | 20 | link_tcc({"shell.c", "system/kolibri.c", extra_inputs = {"lang.h"}}, "shell"); |