mirror of
https://github.com/brain-hackers/brainlilo
synced 2024-12-22 20:20:04 +09:00
Merge pull request #12 from brain-hackers/feat-version
feat: show version
This commit is contained in:
commit
f3b955417f
@ -4,6 +4,12 @@
|
|||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <windows.h>
|
#include <windows.h>
|
||||||
|
|
||||||
|
#if defined(VERSION_MAJOR) && defined(VERSION_MINOR) && defined(VERSION_PATCH)
|
||||||
|
#define CONFIG_VERSION TEXT(VERSION_MAJOR) L"." TEXT(VERSION_MINOR) L"." TEXT(VERSION_PATCH)
|
||||||
|
#else
|
||||||
|
#define CONFIG_VERSION L"unspecified"
|
||||||
|
#endif
|
||||||
|
|
||||||
#define FSNOTIFY_POWER_OFF 1
|
#define FSNOTIFY_POWER_OFF 1
|
||||||
#define FSNOTIFY_POWER_ON 0
|
#define FSNOTIFY_POWER_ON 0
|
||||||
|
|
||||||
@ -194,6 +200,8 @@ static bool doLinux()
|
|||||||
HANDLE hUBoot;
|
HANDLE hUBoot;
|
||||||
DWORD wReadSize;
|
DWORD wReadSize;
|
||||||
|
|
||||||
|
outputDebugMessage(L"BrainLILO: Version " CONFIG_VERSION);
|
||||||
|
|
||||||
iVersion.open("\\NAND\\version.txt");
|
iVersion.open("\\NAND\\version.txt");
|
||||||
while (getline(iVersion, line))
|
while (getline(iVersion, line))
|
||||||
{
|
{
|
||||||
|
1
Makefile
1
Makefile
@ -27,6 +27,7 @@ DLLFLAGS=-DEV_PLATFORM_WIN32 -DUNICODE -D_UNICODE -DEV_UNSAFE_SWPRINTF -mwin32 \
|
|||||||
|
|
||||||
DRVFLAGS= -DEV_PLATFORM_WIN32 -DUNICODE -D_UNICODE -DEV_UNSAFE_SWPRINTF -mwin32 \
|
DRVFLAGS= -DEV_PLATFORM_WIN32 -DUNICODE -D_UNICODE -DEV_UNSAFE_SWPRINTF -mwin32 \
|
||||||
-O2 -mcpu=arm926ej-s -D_WIN32_WCE=0x600 -D_LARGEFILE_SOURCE=1 -D_LARGEFILE64_SOURCE=1 \
|
-O2 -mcpu=arm926ej-s -D_WIN32_WCE=0x600 -D_LARGEFILE_SOURCE=1 -D_LARGEFILE64_SOURCE=1 \
|
||||||
|
-DVERSION_MAJOR=\"$(VERSION_MAJOR)\" -DVERSION_MINOR=\"$(VERSION_MINOR)\" -DVERSION_PATCH=\"$(VERSION_PATCH)\" \
|
||||||
-D_FILE_OFFSET_BITS=64 -DNDEBUG -Wall -static \
|
-D_FILE_OFFSET_BITS=64 -DNDEBUG -Wall -static \
|
||||||
-Wl,--image-base,0x100000,--allow-multiple-definition \
|
-Wl,--image-base,0x100000,--allow-multiple-definition \
|
||||||
-lcoredll -shared
|
-lcoredll -shared
|
||||||
|
Loading…
Reference in New Issue
Block a user