From 3d5d459cb930d5a90670d10f295c0e16e4ea1b4b Mon Sep 17 00:00:00 2001 From: CleverMouse Date: Fri, 12 Sep 2014 18:40:38 +0000 Subject: [PATCH] fara: language-specific compilation git-svn-id: svn://kolibrios.org@5112 a494cfbc-eb01-0410-851d-a64ba20cac60 --- programs/games/fara/trunk/Tupfile.lua | 4 ++++ programs/games/fara/trunk/lang.h | 4 +++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/programs/games/fara/trunk/Tupfile.lua b/programs/games/fara/trunk/Tupfile.lua index aa977800a..7db57f3a5 100644 --- a/programs/games/fara/trunk/Tupfile.lua +++ b/programs/games/fara/trunk/Tupfile.lua @@ -1,6 +1,10 @@ if tup.getconfig("NO_FASM") ~= "" or tup.getconfig("NO_MSVC") ~= "" then return end HELPERDIR = (tup.getconfig("HELPERDIR") == "") and "../../.." or tup.getconfig("HELPERDIR") 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.foreach_rule("memcmp.asm", "fasm %f %o", "%B.obj") ) diff --git a/programs/games/fara/trunk/lang.h b/programs/games/fara/trunk/lang.h index ef15793f1..63b506756 100644 --- a/programs/games/fara/trunk/lang.h +++ b/programs/games/fara/trunk/lang.h @@ -1,3 +1,5 @@ #define RUS 1 #define ENG 2 -#define LANG RUS \ No newline at end of file +#ifndef LANG +#define LANG RUS +#endif