Commit 9188bd64 authored by Alexandre Julliard's avatar Alexandre Julliard

winetest: Include the build info also in the standard build.

parent 740e4ffb
...@@ -258,6 +258,7 @@ programs/winedbg/debug.yy.c ...@@ -258,6 +258,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.nfo
programs/winetest/build.rc programs/winetest/build.rc
programs/winhlp32/macro.lex.yy.c programs/winhlp32/macro.lex.yy.c
programs/wscript/ihost.h programs/wscript/ihost.h
......
...@@ -24,13 +24,16 @@ EXTRA_OBJS = $(TESTRCS:.rc=.res) ...@@ -24,13 +24,16 @@ EXTRA_OBJS = $(TESTRCS:.rc=.res)
@MAKE_PROG_RULES@ @MAKE_PROG_RULES@
@ALL_WINETEST_DEPENDS@
clean:: clean::
$(RM) winetest-dist.exe $(TESTBINS) $(TESTRCS) $(RM) build.nfo winetest-dist.exe $(TESTBINS) $(TESTRCS)
build.rc: dummy 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) build="BUILD_INFO STRINGRES build.nfo STRINGTABLE { 1 \"`GIT_DIR=$(TOPSRCDIR)/.git git rev-parse HEAD 2>/dev/null`\" }" && (echo $$build | cmp -s - $@) || echo $$build >$@ || ($(RM) $@ && exit 1)
build.nfo:
-$(CC) -v 2>$@
build.res: build.nfo
# Rules for building distributable executable # Rules for building distributable executable
...@@ -38,8 +41,8 @@ build.rc: dummy ...@@ -38,8 +41,8 @@ build.rc: dummy
dist: winetest-dist.exe$(DLLEXT) dist: winetest-dist.exe$(DLLEXT)
winetest-dist.exe winetest-dist.exe.so: $(OBJS) dist.res Makefile.in winetest-dist.exe$(DLLEXT): winetest.exe$(DLLEXT)
$(WINEGCC) $(APPMODE) $(OBJS) dist.res -o $@ -L$(DLLDIR) $(DELAYIMPORTS:%=-Wb,-d%) $(ALL_LIBS) cp winetest.exe$(DLLEXT) $@
-upx -9 -qqq $@ -upx -9 -qqq $@
dist.res: build.nfo @ALL_WINETEST_DEPENDS@
/*
* Resources for the binary we distribute to testers
*
* Copyright 2004 Ferenc Wagner
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
*/
/* @makedep: build.nfo */
BUILD_INFO STRINGRES "build.nfo"
...@@ -96,6 +96,7 @@ my @ignores = ( ...@@ -96,6 +96,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.nfo",
"programs/winetest/build.rc", "programs/winetest/build.rc",
"tools/makedep", "tools/makedep",
); );
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment