fara: language-specific compilation

git-svn-id: svn://kolibrios.org@5112 a494cfbc-eb01-0410-851d-a64ba20cac60
This commit is contained in:
CleverMouse 2014-09-12 18:40:38 +00:00
parent c98f34b54d
commit 3d5d459cb9
2 changed files with 7 additions and 1 deletions

View File

@ -1,6 +1,10 @@
if tup.getconfig("NO_FASM") ~= "" or tup.getconfig("NO_MSVC") ~= "" then return end if tup.getconfig("NO_FASM") ~= "" or tup.getconfig("NO_MSVC") ~= "" then return end
HELPERDIR = (tup.getconfig("HELPERDIR") == "") and "../../.." or tup.getconfig("HELPERDIR") HELPERDIR = (tup.getconfig("HELPERDIR") == "") and "../../.." or tup.getconfig("HELPERDIR")
tup.include(HELPERDIR .. "/use_msvc.lua") tup.include(HELPERDIR .. "/use_msvc.lua")
if tup.getconfig("LANG") == "ru"
then CFLAGS = CFLAGS .. " /DLANG=RUS"
else CFLAGS = CFLAGS .. " /DLANG=ENG"
end
tup.append_table(OBJS, tup.append_table(OBJS,
tup.foreach_rule("memcmp.asm", "fasm %f %o", "%B.obj") tup.foreach_rule("memcmp.asm", "fasm %f %o", "%B.obj")
) )

View File

@ -1,3 +1,5 @@
#define RUS 1 #define RUS 1
#define ENG 2 #define ENG 2
#define LANG RUS #ifndef LANG
#define LANG RUS
#endif