Subversion Repositories Kolibri OS

Rev

Rev 8832 | Go to most recent revision | Blame | Compare with Previous | Last modification | View Log | Download | RSS feed

  1. if tup.getconfig("NO_TCC") ~= "" then return end
  2. if tup.getconfig("HELPERDIR") == ""
  3. then
  4.   HELPERDIR = "../../../programs"
  5. end
  6. tup.include(HELPERDIR .. "/use_tcc.lua")
  7.  
  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.  
  20. LIBS = ""
  21.  
  22. link_tcc({"shell.c", "system/kolibri.c", extra_inputs = {"lang.h"}}, "shell");
  23.