1
0
Fork 0
forked from len0rd/rockbox

Added version number to the fwpatcher build

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@7220 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Linus Nielsen Feltzing 2005-07-22 09:58:47 +00:00
parent e9c0e83154
commit ab540cc153
2 changed files with 8 additions and 2 deletions

View file

@ -21,8 +21,12 @@ CC = $(PREFIX)gcc
UNICODE = -DUNICODE -D_UNICODE
ifndef VERSION
VERSION=$(shell date +%y%m%d-%H%M)
endif
#values for crosscompiling on linux
CFLAGS = -I. -Os -s -fomit-frame-pointer
CFLAGS = -DAPPSVERSION=\"$(VERSION)\" -I. -Os -s -fomit-frame-pointer
LDFLAGS = -lmingw32 -mwindows -s
#values for compiling on cygwin

View file

@ -39,6 +39,8 @@
#define CTL_NUM 4
TCHAR appsversion[] = TEXT("Rockbox firmware patcher V" APPSVERSION);
struct sumpairs {
char *unpatched;
char *patched;
@ -468,7 +470,7 @@ int WINAPI WinMain(HINSTANCE instance, HINSTANCE prev_instance,
wc.lpszClassName = TEXT("patcher");
RegisterClassEx(&wc);
window = CreateWindowEx(0, TEXT("patcher"), TEXT("Rockbox firmware patcher"),
window = CreateWindowEx(0, TEXT("patcher"), appsversion,
WS_OVERLAPPED | WS_CAPTION | WS_SYSMENU |
WS_MINIMIZEBOX, CW_USEDEFAULT, CW_USEDEFAULT,
WINDOW_WIDTH, WINDOW_HEIGHT, 0, 0, instance, NULL);