mirror of
git://source.winehq.org/git/wine.git
synced 2024-09-16 03:56:43 +00:00
winetest: Create a separate resource file with the SHA1 build id.
This commit is contained in:
parent
f0ea22ba87
commit
ae1afb82d2
1
.gitignore
vendored
1
.gitignore
vendored
|
@ -198,6 +198,7 @@ programs/winedbg/debug.yy.c
|
||||||
programs/winedbg/winedbg.man
|
programs/winedbg/winedbg.man
|
||||||
programs/winetest/*_test.exe
|
programs/winetest/*_test.exe
|
||||||
programs/winetest/*_test.rc
|
programs/winetest/*_test.rc
|
||||||
|
programs/winetest/build.rc
|
||||||
programs/winhlp32/macro.lex.yy.c
|
programs/winhlp32/macro.lex.yy.c
|
||||||
server/wineserver
|
server/wineserver
|
||||||
server/wineserver-installed
|
server/wineserver-installed
|
||||||
|
|
|
@ -7,8 +7,6 @@ APPMODE = -mconsole
|
||||||
IMPORTS = uuid comctl32 version user32 gdi32 advapi32 wsock32 kernel32
|
IMPORTS = uuid comctl32 version user32 gdi32 advapi32 wsock32 kernel32
|
||||||
DELAYIMPORTS = ole32
|
DELAYIMPORTS = ole32
|
||||||
|
|
||||||
EXTRARCFLAGS = -DBUILD_SHA1=\"`GIT_DIR=$(TOPSRCDIR)/.git git rev-parse HEAD 2>/dev/null`\"
|
|
||||||
|
|
||||||
C_SRCS = \
|
C_SRCS = \
|
||||||
gui.c \
|
gui.c \
|
||||||
main.c \
|
main.c \
|
||||||
|
@ -23,7 +21,7 @@ SVG_SRCS = winetest.svg
|
||||||
ALL_TEST_DIRS = @ALL_TEST_DIRS@
|
ALL_TEST_DIRS = @ALL_TEST_DIRS@
|
||||||
|
|
||||||
TESTBINS = $(ALL_TEST_DIRS:%/tests=%_test.exe)
|
TESTBINS = $(ALL_TEST_DIRS:%/tests=%_test.exe)
|
||||||
TESTRCS = $(TESTBINS:.exe=.rc)
|
TESTRCS = build.rc $(TESTBINS:.exe=.rc)
|
||||||
EXTRA_OBJS = $(TESTRCS:.rc=.res)
|
EXTRA_OBJS = $(TESTRCS:.rc=.res)
|
||||||
|
|
||||||
@MAKE_PROG_RULES@
|
@MAKE_PROG_RULES@
|
||||||
|
@ -33,6 +31,9 @@ EXTRA_OBJS = $(TESTRCS:.rc=.res)
|
||||||
clean::
|
clean::
|
||||||
$(RM) winetest-dist.exe $(TESTBINS) $(TESTRCS)
|
$(RM) winetest-dist.exe $(TESTBINS) $(TESTRCS)
|
||||||
|
|
||||||
|
build.rc: dummy
|
||||||
|
build="STRINGTABLE { 1 \"`GIT_DIR=$(TOPSRCDIR)/.git git rev-parse HEAD 2>/dev/null`\" }" && (echo $$build | cmp -s - $@) || echo $$build >$@ || ($(RM) $@ && exit 1)
|
||||||
|
|
||||||
# Rules for building distributable executable
|
# Rules for building distributable executable
|
||||||
|
|
||||||
.PHONY: dist
|
.PHONY: dist
|
||||||
|
|
|
@ -24,13 +24,6 @@
|
||||||
|
|
||||||
#include "resource.h"
|
#include "resource.h"
|
||||||
|
|
||||||
#ifdef BUILD_SHA1
|
|
||||||
STRINGTABLE
|
|
||||||
BEGIN
|
|
||||||
IDS_BUILD_ID BUILD_SHA1
|
|
||||||
END
|
|
||||||
#endif
|
|
||||||
|
|
||||||
IDD_TAG DIALOG 0, 0, 150, 65
|
IDD_TAG DIALOG 0, 0, 150, 65
|
||||||
STYLE WS_POPUP | WS_CAPTION | WS_SYSMENU
|
STYLE WS_POPUP | WS_CAPTION | WS_SYSMENU
|
||||||
CAPTION "No tag supplied"
|
CAPTION "No tag supplied"
|
||||||
|
|
|
@ -76,6 +76,7 @@ my @ignores = (
|
||||||
"include/stamp-h",
|
"include/stamp-h",
|
||||||
"programs/winetest/*_test.exe",
|
"programs/winetest/*_test.exe",
|
||||||
"programs/winetest/*_test.rc",
|
"programs/winetest/*_test.rc",
|
||||||
|
"programs/winetest/build.rc",
|
||||||
);
|
);
|
||||||
|
|
||||||
# Source files and their resulting target to ignore
|
# Source files and their resulting target to ignore
|
||||||
|
|
Loading…
Reference in a new issue