e80: multi-language build
git-svn-id: svn://kolibrios.org@1854 a494cfbc-eb01-0410-851d-a64ba20cac60
This commit is contained in:
parent
9d7a2a4dad
commit
09548370da
@ -1,5 +1,6 @@
|
||||
del *.o
|
||||
fasm asm_code.asm start.o
|
||||
echo #define LANG_ENG 1 > lang.h
|
||||
gcc -c z80/z80.c
|
||||
gcc -c system/kolibri.c
|
||||
gcc -c system/stdlib.c
|
12
programs/emulator/e80/trunk/compile_rus.bat
Normal file
12
programs/emulator/e80/trunk/compile_rus.bat
Normal file
@ -0,0 +1,12 @@
|
||||
del *.o
|
||||
fasm asm_code.asm start.o
|
||||
echo #define LANG_RUS 1 > lang.h
|
||||
gcc -c z80/z80.c
|
||||
gcc -c system/kolibri.c
|
||||
gcc -c system/stdlib.c
|
||||
gcc -c system/string.c
|
||||
gcc -c e80.c
|
||||
ld -nostdlib -T kolibri.ld -o e80.kex start.o kolibri.o stdlib.o string.o z80.o e80.o
|
||||
objcopy e80.kex -O binary
|
||||
kpack e80.kex
|
||||
pause
|
@ -1,4 +1,9 @@
|
||||
|
||||
#ifndef AUTOBUILD
|
||||
// autobuild does not create lang.h, but defines LANG_{RUS,ENG} directly
|
||||
#include "lang.h"
|
||||
#endif
|
||||
|
||||
#include "system/kolibri.h"
|
||||
#include "system/stdlib.h"
|
||||
#include "system/string.h"
|
||||
|
@ -18,18 +18,14 @@
|
||||
|
||||
///=============================
|
||||
|
||||
#define LANG_EN
|
||||
|
||||
#ifdef LANG_RU
|
||||
#if LANG_RUS
|
||||
char BTN_OK[]={"OK"};
|
||||
char BTN_CANCEL[]={"Žâ¬¥ "};
|
||||
char BTN_ABORT[]={"<EFBFBD>४à â¨âì"};
|
||||
char BTN_RETRY[]={"<EFBFBD>®¢â®à¨âì"};
|
||||
char BTN_INGNORE[]={"ˆ£®à¨à®¢ âì"};
|
||||
char BTN_NO[]={"<EFBFBD>¥â"};
|
||||
#endif
|
||||
|
||||
#ifdef LANG_EN
|
||||
#else
|
||||
char BTN_OK[]={"OK"};
|
||||
char BTN_CANCEL[]={"Cancel"};
|
||||
char BTN_ABORT[]={"Abort"};
|
||||
|
Loading…
Reference in New Issue
Block a user