2014-09-15 11:45:19 +02:00
|
|
|
if tup.getconfig("NO_GCC") ~= "" then return end
|
|
|
|
HELPERDIR = (tup.getconfig("HELPERDIR") == "") and "../../.." or tup.getconfig("HELPERDIR")
|
|
|
|
tup.include(HELPERDIR .. "/use_gcc.lua")
|
2021-01-02 19:12:08 +01:00
|
|
|
tup.include(HELPERDIR .. "/use_newlib.lua")
|
2014-09-15 11:45:19 +02:00
|
|
|
|
|
|
|
if tup.getconfig("LANG") == "ru"
|
|
|
|
then C_LANG = "LANG_RUS"
|
|
|
|
else C_LANG = "LANG_ENG" -- this includes default case without config
|
|
|
|
end
|
2021-01-02 19:12:08 +01:00
|
|
|
LIBS = "-lsupc++ -lstdc++ " .. LIBS
|
|
|
|
LDFLAGS = LDFLAGS .. " --subsystem native"
|
2014-09-15 11:45:19 +02:00
|
|
|
CFLAGS = CFLAGS .. " -D_KOLIBRI -DAUTOBUILD -D" .. C_LANG .. " -DNO_FILES -fwhole-program"
|
|
|
|
|
|
|
|
compile_gcc{"checkers.cpp"}
|
|
|
|
link_gcc("checkers")
|