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
|
del *.o
|
||||||
fasm asm_code.asm start.o
|
fasm asm_code.asm start.o
|
||||||
|
echo #define LANG_ENG 1 > lang.h
|
||||||
gcc -c z80/z80.c
|
gcc -c z80/z80.c
|
||||||
gcc -c system/kolibri.c
|
gcc -c system/kolibri.c
|
||||||
gcc -c system/stdlib.c
|
gcc -c system/stdlib.c
|
|
@ -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/kolibri.h"
|
||||||
#include "system/stdlib.h"
|
#include "system/stdlib.h"
|
||||||
#include "system/string.h"
|
#include "system/string.h"
|
||||||
|
|
|
@ -18,18 +18,14 @@
|
||||||
|
|
||||||
///=============================
|
///=============================
|
||||||
|
|
||||||
#define LANG_EN
|
#if LANG_RUS
|
||||||
|
|
||||||
#ifdef LANG_RU
|
|
||||||
char BTN_OK[]={"OK"};
|
char BTN_OK[]={"OK"};
|
||||||
char BTN_CANCEL[]={"Žâ¬¥ "};
|
char BTN_CANCEL[]={"Žâ¬¥ "};
|
||||||
char BTN_ABORT[]={"<EFBFBD>४à â¨âì"};
|
char BTN_ABORT[]={"<EFBFBD>४à â¨âì"};
|
||||||
char BTN_RETRY[]={"<EFBFBD>®¢â®à¨âì"};
|
char BTN_RETRY[]={"<EFBFBD>®¢â®à¨âì"};
|
||||||
char BTN_INGNORE[]={"ˆ£®à¨à®¢ âì"};
|
char BTN_INGNORE[]={"ˆ£®à¨à®¢ âì"};
|
||||||
char BTN_NO[]={"<EFBFBD>¥â"};
|
char BTN_NO[]={"<EFBFBD>¥â"};
|
||||||
#endif
|
#else
|
||||||
|
|
||||||
#ifdef LANG_EN
|
|
||||||
char BTN_OK[]={"OK"};
|
char BTN_OK[]={"OK"};
|
||||||
char BTN_CANCEL[]={"Cancel"};
|
char BTN_CANCEL[]={"Cancel"};
|
||||||
char BTN_ABORT[]={"Abort"};
|
char BTN_ABORT[]={"Abort"};
|
||||||
|
|
Loading…
Reference in New Issue