Alexandre Julliard : winetest: Include the build info also in the standard build.
Alexandre Julliard
julliard at winehq.org
Mon Aug 23 10:50:13 CDT 2010
Module: wine
Branch: master
Commit: 9188bd647bf979d0ec90436e1b270e21bf756324
URL: http://source.winehq.org/git/wine.git/?a=commit;h=9188bd647bf979d0ec90436e1b270e21bf756324
Author: Alexandre Julliard <julliard at winehq.org>
Date: Sat Aug 21 17:19:48 2010 +0200
winetest: Include the build info also in the standard build.
---
.gitignore | 1 +
programs/winetest/Makefile.in | 17 ++++++++++-------
programs/winetest/dist.rc | 22 ----------------------
tools/make_makefiles | 1 +
4 files changed, 12 insertions(+), 29 deletions(-)
diff --git a/.gitignore b/.gitignore
index 4e0346f..16a436b 100644
--- a/.gitignore
+++ b/.gitignore
@@ -258,6 +258,7 @@ programs/winedbg/debug.yy.c
programs/winedbg/winedbg.man
programs/winetest/*_test.exe
programs/winetest/*_test.rc
+programs/winetest/build.nfo
programs/winetest/build.rc
programs/winhlp32/macro.lex.yy.c
programs/wscript/ihost.h
diff --git a/programs/winetest/Makefile.in b/programs/winetest/Makefile.in
index ab11876..11f720d 100644
--- a/programs/winetest/Makefile.in
+++ b/programs/winetest/Makefile.in
@@ -24,13 +24,16 @@ EXTRA_OBJS = $(TESTRCS:.rc=.res)
@MAKE_PROG_RULES@
- at ALL_WINETEST_DEPENDS@
-
clean::
- $(RM) winetest-dist.exe $(TESTBINS) $(TESTRCS)
+ $(RM) build.nfo 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)
+ 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
@@ -38,8 +41,8 @@ build.rc: dummy
dist: winetest-dist.exe$(DLLEXT)
-winetest-dist.exe winetest-dist.exe.so: $(OBJS) dist.res Makefile.in
- $(WINEGCC) $(APPMODE) $(OBJS) dist.res -o $@ -L$(DLLDIR) $(DELAYIMPORTS:%=-Wb,-d%) $(ALL_LIBS)
+winetest-dist.exe$(DLLEXT): winetest.exe$(DLLEXT)
+ cp winetest.exe$(DLLEXT) $@
-upx -9 -qqq $@
-dist.res: build.nfo
+ at ALL_WINETEST_DEPENDS@
diff --git a/programs/winetest/dist.rc b/programs/winetest/dist.rc
deleted file mode 100644
index 6e3ac6c..0000000
--- a/programs/winetest/dist.rc
+++ /dev/null
@@ -1,22 +0,0 @@
-/*
- * 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"
diff --git a/tools/make_makefiles b/tools/make_makefiles
index 83d7836..bc52c49 100755
--- a/tools/make_makefiles
+++ b/tools/make_makefiles
@@ -96,6 +96,7 @@ my @ignores = (
"include/stamp-h",
"programs/winetest/*_test.exe",
"programs/winetest/*_test.rc",
+ "programs/winetest/build.nfo",
"programs/winetest/build.rc",
"tools/makedep",
);
More information about the wine-cvs
mailing list