winehq.org
Sign In
Sign Up
Sign In
Sign Up
Manage this list
×
Keyboard Shortcuts
Thread View
j
: Next unread message
k
: Previous unread message
j a
: Jump to all threads
j l
: Jump to MailingList overview
2025
February
January
2024
December
November
October
September
August
July
June
May
April
March
February
January
2023
December
November
October
September
August
July
June
May
April
March
February
January
2022
December
November
October
September
August
July
June
May
April
March
February
January
2021
December
November
October
September
August
July
June
May
April
March
February
January
2020
December
November
October
September
August
July
June
May
April
March
February
January
2019
December
November
October
September
August
July
June
May
April
March
February
January
2018
December
November
October
September
August
July
June
May
April
March
February
January
2017
December
November
October
September
August
July
June
May
April
March
February
January
2016
December
November
October
September
August
July
June
May
April
March
February
January
2015
December
November
October
September
August
July
June
May
April
March
February
January
2014
December
November
October
September
August
July
June
May
April
March
February
January
2013
December
November
October
September
August
July
June
May
April
March
February
January
2012
December
November
October
September
August
July
June
May
April
March
February
January
2011
December
November
October
September
August
July
June
May
April
March
February
January
2010
December
November
October
September
August
July
June
May
April
March
February
January
2009
December
November
October
September
August
July
June
May
April
March
February
January
2008
December
November
October
September
August
July
June
May
April
March
February
January
2007
December
November
October
September
August
July
June
May
April
March
February
January
2006
December
November
October
September
August
July
June
May
April
March
February
January
2005
December
November
October
September
August
July
June
May
April
March
February
January
2004
December
November
October
September
August
July
June
May
April
March
February
January
2003
December
November
October
September
August
July
June
May
April
March
February
January
2002
December
November
October
September
August
July
June
May
April
March
February
January
2001
December
November
October
September
August
July
June
May
April
March
February
List overview
wine-commits
March 2010
----- 2025 -----
February 2025
January 2025
----- 2024 -----
December 2024
November 2024
October 2024
September 2024
August 2024
July 2024
June 2024
May 2024
April 2024
March 2024
February 2024
January 2024
----- 2023 -----
December 2023
November 2023
October 2023
September 2023
August 2023
July 2023
June 2023
May 2023
April 2023
March 2023
February 2023
January 2023
----- 2022 -----
December 2022
November 2022
October 2022
September 2022
August 2022
July 2022
June 2022
May 2022
April 2022
March 2022
February 2022
January 2022
----- 2021 -----
December 2021
November 2021
October 2021
September 2021
August 2021
July 2021
June 2021
May 2021
April 2021
March 2021
February 2021
January 2021
----- 2020 -----
December 2020
November 2020
October 2020
September 2020
August 2020
July 2020
June 2020
May 2020
April 2020
March 2020
February 2020
January 2020
----- 2019 -----
December 2019
November 2019
October 2019
September 2019
August 2019
July 2019
June 2019
May 2019
April 2019
March 2019
February 2019
January 2019
----- 2018 -----
December 2018
November 2018
October 2018
September 2018
August 2018
July 2018
June 2018
May 2018
April 2018
March 2018
February 2018
January 2018
----- 2017 -----
December 2017
November 2017
October 2017
September 2017
August 2017
July 2017
June 2017
May 2017
April 2017
March 2017
February 2017
January 2017
----- 2016 -----
December 2016
November 2016
October 2016
September 2016
August 2016
July 2016
June 2016
May 2016
April 2016
March 2016
February 2016
January 2016
----- 2015 -----
December 2015
November 2015
October 2015
September 2015
August 2015
July 2015
June 2015
May 2015
April 2015
March 2015
February 2015
January 2015
----- 2014 -----
December 2014
November 2014
October 2014
September 2014
August 2014
July 2014
June 2014
May 2014
April 2014
March 2014
February 2014
January 2014
----- 2013 -----
December 2013
November 2013
October 2013
September 2013
August 2013
July 2013
June 2013
May 2013
April 2013
March 2013
February 2013
January 2013
----- 2012 -----
December 2012
November 2012
October 2012
September 2012
August 2012
July 2012
June 2012
May 2012
April 2012
March 2012
February 2012
January 2012
----- 2011 -----
December 2011
November 2011
October 2011
September 2011
August 2011
July 2011
June 2011
May 2011
April 2011
March 2011
February 2011
January 2011
----- 2010 -----
December 2010
November 2010
October 2010
September 2010
August 2010
July 2010
June 2010
May 2010
April 2010
March 2010
February 2010
January 2010
----- 2009 -----
December 2009
November 2009
October 2009
September 2009
August 2009
July 2009
June 2009
May 2009
April 2009
March 2009
February 2009
January 2009
----- 2008 -----
December 2008
November 2008
October 2008
September 2008
August 2008
July 2008
June 2008
May 2008
April 2008
March 2008
February 2008
January 2008
----- 2007 -----
December 2007
November 2007
October 2007
September 2007
August 2007
July 2007
June 2007
May 2007
April 2007
March 2007
February 2007
January 2007
----- 2006 -----
December 2006
November 2006
October 2006
September 2006
August 2006
July 2006
June 2006
May 2006
April 2006
March 2006
February 2006
January 2006
----- 2005 -----
December 2005
November 2005
October 2005
September 2005
August 2005
July 2005
June 2005
May 2005
April 2005
March 2005
February 2005
January 2005
----- 2004 -----
December 2004
November 2004
October 2004
September 2004
August 2004
July 2004
June 2004
May 2004
April 2004
March 2004
February 2004
January 2004
----- 2003 -----
December 2003
November 2003
October 2003
September 2003
August 2003
July 2003
June 2003
May 2003
April 2003
March 2003
February 2003
January 2003
----- 2002 -----
December 2002
November 2002
October 2002
September 2002
August 2002
July 2002
June 2002
May 2002
April 2002
March 2002
February 2002
January 2002
----- 2001 -----
December 2001
November 2001
October 2001
September 2001
August 2001
July 2001
June 2001
May 2001
April 2001
March 2001
February 2001
wine-commits@winehq.org
3 participants
919 discussions
Start a n
N
ew thread
Alexandre Julliard : makefiles: Output all the documentation rules explicitly for each module.
by Alexandre Julliard
25 Mar '10
25 Mar '10
Module: wine Branch: master Commit: 60a05ad2d9389f43567259fa2156e3707c35573a URL:
http://source.winehq.org/git/wine.git/?a=commit;h=60a05ad2d9389f43567259fa2…
Author: Alexandre Julliard <julliard(a)winehq.org> Date: Thu Mar 25 12:05:44 2010 +0100 makefiles: Output all the documentation rules explicitly for each module. --- Makefile.in | 28 ---------------------------- aclocal.m4 | 8 +++----- configure | 10 +++------- dlls/Makedll.rules.in | 10 ++++------ documentation/Makefile.in | 19 +++---------------- 5 files changed, 13 insertions(+), 62 deletions(-) diff --git a/Makefile.in b/Makefile.in index 535f251..7a3bd80 100644 --- a/Makefile.in +++ b/Makefile.in @@ -28,7 +28,6 @@ LIBEXT = @LIBEXT@ MODULE = none ALL_DIRS = @ALL_DIRS@ -ALL_DLL_DIRS = @ALL_DLL_DIRS@ ALL_TOP_DIRS = @ALL_TOP_DIRS@ # Sub-directories to run make all into @@ -123,33 +122,6 @@ uninstall:: $(INSTALLSUBDIRS:%=%/__uninstall__) dummy .PHONY: $(INSTALLSUBDIRS:%=%/__install__) $(INSTALLSUBDIRS:%=%/__uninstall__) \ $(INSTALLSUBDIRS:%=%/__install-lib__) $(INSTALLSUBDIRS:%=%/__install-dev__) -# Rules for auto documentation - -DOCSUBDIRS = $(ALL_DLL_DIRS) - -$(DOCSUBDIRS:%=%/__man__): dummy - @cd `dirname $@` && $(MAKE) man - -$(DOCSUBDIRS:%=%/__doc_html__): dummy - @cd `dirname $@` && $(MAKE) doc-html - -$(DOCSUBDIRS:%=%/__doc_sgml__): dummy - @cd `dirname $@` && $(MAKE) doc-sgml - -$(DOCSUBDIRS:%=%/__doc_xml__): dummy - @cd `dirname $@` && $(MAKE) doc-xml - -man: $(DOCSUBDIRS:%=%/__man__) -doc-html: $(DOCSUBDIRS:%=%/__doc_html__) -doc-sgml: $(DOCSUBDIRS:%=%/__doc_sgml__) -doc-xml: $(DOCSUBDIRS:%=%/__doc_xml__) - -manpages htmlpages sgmlpages xmlpages: dummy - @cd documentation && $(MAKE) $@ - -.PHONY: man doc-html doc-sgml doc-xml manpages htmlpages sgmlpages xmlpages \ - $(DOCSUBDIRS:%=%/__man__) $(DOCSUBDIRS:%=%/__doc_html__) $(DOCSUBDIRS:%=%/__doc_sgml__) $(DOCSUBDIRS:%=%/__doc_xml__) - # Dependencies between directories # dependencies needed to build any dll or program diff --git a/aclocal.m4 b/aclocal.m4 index 3807ff8..253f1a4 100644 --- a/aclocal.m4 +++ b/aclocal.m4 @@ -148,7 +148,6 @@ AC_SUBST(ALL_MAKERULES,"") AC_SUBST(ALL_SYMLINKS,"") AC_SUBST(ALL_DIRS,"") AC_SUBST(ALL_TOP_DIRS,"") -AC_SUBST(ALL_DLL_DIRS,"") AC_SUBST(ALL_TEST_BINARIES,"") AC_SUBST(ALL_PROGRAM_BIN_INSTALL_DIRS,"") @@ -215,16 +214,15 @@ dlls/$ac_dir/Makefile dlls/$ac_dir/__depend__: dlls/$ac_dir/Makefile.in config.s AS_VAR_IF([$ac_enable],[no], dnl enable_win16 is special in that it disables import libs too [test "$ac_enable" != enable_win16 || return 0], - [wine_fn_append_file ALL_DLL_DIRS dlls/$ac_dir - wine_fn_append_rule ALL_MAKEFILE_DEPENDS \ + [wine_fn_append_rule ALL_MAKEFILE_DEPENDS \ "all: dlls/$ac_dir dlls/$ac_dir: dlls/$ac_dir/Makefile __builddeps__ install:: dlls/$ac_dir/Makefile __builddeps__ @cd dlls/$ac_dir && \$(MAKE) install install-lib:: dlls/$ac_dir/Makefile __builddeps__ @cd dlls/$ac_dir && \$(MAKE) install-lib -uninstall:: dlls/$ac_dir/Makefile - @cd dlls/$ac_dir && \$(MAKE) uninstall"]) +uninstall manpages htmlpages sgmlpages xmlpages:: dlls/$ac_dir/Makefile + @cd dlls/$ac_dir && \$(MAKE) \$[@]"]) if test -n "$ac_implibsrc" then diff --git a/configure b/configure index f771fa9..ed41bb5 100755 --- a/configure +++ b/configure @@ -598,7 +598,6 @@ ac_subst_vars='LTLIBOBJS LIBOBJS ALL_PROGRAM_BIN_INSTALL_DIRS ALL_TEST_BINARIES -ALL_DLL_DIRS ALL_TOP_DIRS ALL_DIRS ALL_SYMLINKS @@ -13861,8 +13860,6 @@ ALL_DIRS="" ALL_TOP_DIRS="" -ALL_DLL_DIRS="" - ALL_TEST_BINARIES="" ALL_PROGRAM_BIN_INSTALL_DIRS="" @@ -13937,16 +13934,15 @@ dlls/$ac_dir/Makefile dlls/$ac_dir/__depend__: dlls/$ac_dir/Makefile.in config.s if test "x$as_val" = x""no; then : test "$ac_enable" != enable_win16 || return 0 else - wine_fn_append_file ALL_DLL_DIRS dlls/$ac_dir - wine_fn_append_rule ALL_MAKEFILE_DEPENDS \ + wine_fn_append_rule ALL_MAKEFILE_DEPENDS \ "all: dlls/$ac_dir dlls/$ac_dir: dlls/$ac_dir/Makefile __builddeps__ install:: dlls/$ac_dir/Makefile __builddeps__ @cd dlls/$ac_dir && \$(MAKE) install install-lib:: dlls/$ac_dir/Makefile __builddeps__ @cd dlls/$ac_dir && \$(MAKE) install-lib -uninstall:: dlls/$ac_dir/Makefile - @cd dlls/$ac_dir && \$(MAKE) uninstall" +uninstall manpages htmlpages sgmlpages xmlpages:: dlls/$ac_dir/Makefile + @cd dlls/$ac_dir && \$(MAKE) \$@" fi if test -n "$ac_implibsrc" diff --git a/dlls/Makedll.rules.in b/dlls/Makedll.rules.in index 2269659..fb989bd 100644 --- a/dlls/Makedll.rules.in +++ b/dlls/Makedll.rules.in @@ -52,20 +52,18 @@ $(IMPORTLIB:%=lib%.cross.a): $(MAINSPEC) $(IMPLIB_CROSSOBJS) # Rules for auto documentation -man: $(C_SRCS) dummy +manpages:: $(C_SRCS) dummy $(C2MAN) -o $(TOPOBJDIR)/documentation/man$(api_manext) -R$(TOPOBJDIR) -C$(SRCDIR) -S$(api_manext) $(INCLUDES) $(MAINSPEC:%=-w %) $(C_SRCS) -doc-html: $(C_SRCS) dummy +htmlpages:: $(C_SRCS) dummy $(C2MAN) -o $(TOPOBJDIR)/documentation/html -R$(TOPOBJDIR) -C$(SRCDIR) $(INCLUDES) -Th $(MAINSPEC:%=-w %) $(C_SRCS) -doc-sgml: $(C_SRCS) dummy +sgmlpages:: $(C_SRCS) dummy $(C2MAN) -o $(TOPOBJDIR)/documentation/api-guide -R$(TOPOBJDIR) -C$(SRCDIR) $(INCLUDES) -Ts $(MAINSPEC:%=-w %) $(C_SRCS) -doc-xml: $(C_SRCS) dummy +xmlpages:: $(C_SRCS) dummy $(C2MAN) -o $(TOPOBJDIR)/documentation/api-guide-xml -R$(TOPOBJDIR) -C$(SRCDIR) $(INCLUDES) -Tx $(MAINSPEC:%=-w %) $(C_SRCS) -.PHONY: man doc-html doc-sgml doc-xml - # Rules for installation .PHONY: install_static_implib_def install_static_implib_a diff --git a/documentation/Makefile.in b/documentation/Makefile.in index 7453927..332fefb 100644 --- a/documentation/Makefile.in +++ b/documentation/Makefile.in @@ -4,25 +4,12 @@ SRCDIR = @srcdir@ VPATH = @srcdir@ MODULE = none -INSTALLDIRS = man$(api_manext) html api-guide api-guide-xml $(DESTDIR)$(mandir)/man$(api_manext) +INSTALLDIRS = $(DESTDIR)$(mandir)/man$(api_manext) @MAKE_RULES@ -manpages: man$(api_manext) dummy - @cd $(TOPOBJDIR) && $(MAKE) man - -htmlpages: html dummy - @cd $(TOPOBJDIR) && $(MAKE) doc-html - -sgmlpages: api-guide dummy - @cd $(TOPOBJDIR) && $(MAKE) doc-sgml - -xmlpages: api-guide-xml dummy - @cd $(TOPOBJDIR) && $(MAKE) doc-xml - -.PHONY: manpages htmlpages sgmlpages xmlpages install-man - -install-man:: manpages $(DESTDIR)$(mandir)/man$(api_manext) +install-man:: $(DESTDIR)$(mandir)/man$(api_manext) + @cd $(TOPOBJDIR) && $(MAKE) manpages for i in man$(api_manext)/*.$(api_manext); do $(INSTALL_DATA) $$i $(DESTDIR)$(mandir)/$$i; done clean::
1
0
0
0
Alexandre Julliard : makefiles: Output all the tool install rules explicitly for each module.
by Alexandre Julliard
25 Mar '10
25 Mar '10
Module: wine Branch: master Commit: 6dbe7a038884d375f284f52101c93d94e3808c46 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=6dbe7a038884d375f284f5210…
Author: Alexandre Julliard <julliard(a)winehq.org> Date: Thu Mar 25 11:51:24 2010 +0100 makefiles: Output all the tool install rules explicitly for each module. --- Makefile.in | 14 ++------------ aclocal.m4 | 23 ++++++++++++++++++++--- configure | 24 +++++++++++++++++++----- 3 files changed, 41 insertions(+), 20 deletions(-) diff --git a/Makefile.in b/Makefile.in index 743919c..535f251 100644 --- a/Makefile.in +++ b/Makefile.in @@ -29,19 +29,16 @@ MODULE = none ALL_DIRS = @ALL_DIRS@ ALL_DLL_DIRS = @ALL_DLL_DIRS@ -ALL_TOOL_DIRS = @ALL_TOOL_DIRS@ ALL_TOP_DIRS = @ALL_TOP_DIRS@ # Sub-directories to run make all into BUILDSUBDIRS = \ libs/wine \ - $(ALL_TOOL_DIRS) \ $(ALL_TOP_DIRS) # Sub-directories to run make install/uninstall into INSTALLSUBDIRS = \ libs/wine \ - $(ALL_TOOL_DIRS) \ $(ALL_TOP_DIRS) # Sub-directories that don't have a makefile @@ -156,14 +153,14 @@ manpages htmlpages sgmlpages xmlpages: dummy # Dependencies between directories # dependencies needed to build any dll or program -__tooldeps__: libs/port libs/wine libs/wpp $(ALL_TOOL_DIRS) +__tooldeps__: libs/port libs/wine libs/wpp __builddeps__ __buildcrossdeps__: __tooldeps__ include .PHONY: __tooldeps__ __builddeps__ __buildcrossdeps__ loader server: libs/port libs/wine tools fonts: tools include: tools/widl -libs/wine $(ALL_TOOL_DIRS): libs/port +libs/wine: libs/port tools/wmc tools/wrc: tools tools tools/wmc tools/wrc: libs/wine tools/widl tools/wmc tools/wrc: libs/wpp @@ -173,13 +170,6 @@ include/__install__ include/__install-dev__: include libs/wine/__install__ libs/wine/__install-lib__ libs/wine/__install-dev__: libs/wine loader/__install__ loader/__install-lib__: libs/port libs/wine tools server/__install__ server/__install-lib__: libs/port libs/wine tools -tools/__install__ tools/__install-lib__ tools/__install-dev__: tools -tools/widl/__install__ tools/widl/__install-dev__: tools/widl -tools/winebuild/__install__ tools/winebuild/__install-dev__: tools/winebuild -tools/winedump/__install__ tools/winedump/__install-dev__: tools/winedump -tools/winegcc/__install__ tools/winegcc/__install-dev__: tools/winegcc -tools/wmc/__install__ tools/wmc/__install-dev__: tools/wmc -tools/wrc/__install__ tools/wrc/__install-dev__: tools/wrc tools/__depend__: $(MAKEDEP) $(MAKEDEP): include/config.h tools/Makefile diff --git a/aclocal.m4 b/aclocal.m4 index 128c813..3807ff8 100644 --- a/aclocal.m4 +++ b/aclocal.m4 @@ -149,7 +149,6 @@ AC_SUBST(ALL_SYMLINKS,"") AC_SUBST(ALL_DIRS,"") AC_SUBST(ALL_TOP_DIRS,"") AC_SUBST(ALL_DLL_DIRS,"") -AC_SUBST(ALL_TOOL_DIRS,"") AC_SUBST(ALL_TEST_BINARIES,"") AC_SUBST(ALL_PROGRAM_BIN_INSTALL_DIRS,"") @@ -328,10 +327,28 @@ wine_fn_config_tool () fi wine_fn_append_file ALL_DIRS $ac_dir wine_fn_append_rule ALL_MAKEFILE_DEPENDS \ -"$ac_dir/__clean__ $ac_dir/__install__ $ac_dir/__install-dev__ $ac_dir/__install-lib__ $ac_dir/__uninstall__ $ac_dir: $ac_dir/Makefile +"$ac_dir/__clean__: $ac_dir/Makefile $ac_dir/Makefile $ac_dir/__depend__: $ac_dir/Makefile.in config.status $ac_deps @./config.status --file $ac_dir/Makefile && cd $ac_dir && \$(MAKE) depend" - AS_VAR_IF([enable_tools],[no],,[wine_fn_append_file ALL_TOOL_DIRS $ac_dir]) + + AS_VAR_IF([enable_tools],[no],,[case $ac_dir in + dnl tools directory has both install-lib and install-dev + tools) wine_fn_append_rule ALL_MAKEFILE_DEPENDS \ +"install:: $ac_dir + @cd $ac_dir && \$(MAKE) install +install-lib:: $ac_dir + @cd $ac_dir && \$(MAKE) install-lib +install-dev:: $ac_dir + @cd $ac_dir && \$(MAKE) install-dev" ;; + *) wine_fn_append_rule ALL_MAKEFILE_DEPENDS \ +"install install-dev:: $ac_dir + @cd $ac_dir && \$(MAKE) install" ;; + esac + wine_fn_append_rule ALL_MAKEFILE_DEPENDS \ +"uninstall:: $ac_dir/Makefile + @cd $ac_dir && \$(MAKE) uninstall +all __tooldeps__: $ac_dir +$ac_dir: $ac_dir/Makefile libs/port"]) }]) dnl **** Define helper function to append a file to a makefile file list **** diff --git a/configure b/configure index 3d6f4f6..f771fa9 100755 --- a/configure +++ b/configure @@ -598,7 +598,6 @@ ac_subst_vars='LTLIBOBJS LIBOBJS ALL_PROGRAM_BIN_INSTALL_DIRS ALL_TEST_BINARIES -ALL_TOOL_DIRS ALL_DLL_DIRS ALL_TOP_DIRS ALL_DIRS @@ -13864,8 +13863,6 @@ ALL_TOP_DIRS="" ALL_DLL_DIRS="" -ALL_TOOL_DIRS="" - ALL_TEST_BINARIES="" ALL_PROGRAM_BIN_INSTALL_DIRS="" @@ -14061,13 +14058,30 @@ wine_fn_config_tool () fi wine_fn_append_file ALL_DIRS $ac_dir wine_fn_append_rule ALL_MAKEFILE_DEPENDS \ -"$ac_dir/__clean__ $ac_dir/__install__ $ac_dir/__install-dev__ $ac_dir/__install-lib__ $ac_dir/__uninstall__ $ac_dir: $ac_dir/Makefile +"$ac_dir/__clean__: $ac_dir/Makefile $ac_dir/Makefile $ac_dir/__depend__: $ac_dir/Makefile.in config.status $ac_deps @./config.status --file $ac_dir/Makefile && cd $ac_dir && \$(MAKE) depend" + if test "x$enable_tools" = x""no; then : else - wine_fn_append_file ALL_TOOL_DIRS $ac_dir + case $ac_dir in + tools) wine_fn_append_rule ALL_MAKEFILE_DEPENDS \ +"install:: $ac_dir + @cd $ac_dir && \$(MAKE) install +install-lib:: $ac_dir + @cd $ac_dir && \$(MAKE) install-lib +install-dev:: $ac_dir + @cd $ac_dir && \$(MAKE) install-dev" ;; + *) wine_fn_append_rule ALL_MAKEFILE_DEPENDS \ +"install install-dev:: $ac_dir + @cd $ac_dir && \$(MAKE) install" ;; + esac + wine_fn_append_rule ALL_MAKEFILE_DEPENDS \ +"uninstall:: $ac_dir/Makefile + @cd $ac_dir && \$(MAKE) uninstall +all __tooldeps__: $ac_dir +$ac_dir: $ac_dir/Makefile libs/port" fi } ac_config_links="$ac_config_links dlls/wineps.drv/generic.ppd:dlls/wineps.drv/generic.ppd"
1
0
0
0
Alexandre Julliard : makefiles: Output all the dll install rules explicitly for each module.
by Alexandre Julliard
25 Mar '10
25 Mar '10
Module: wine Branch: master Commit: 82b743ffad556a737257eaad89eb3759205a7ca6 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=82b743ffad556a737257eaad8…
Author: Alexandre Julliard <julliard(a)winehq.org> Date: Thu Mar 25 11:15:32 2010 +0100 makefiles: Output all the dll install rules explicitly for each module. --- Makefile.in | 6 ++---- aclocal.m4 | 23 ++++++++++++++++++----- configure | 21 +++++++++++++++++---- 3 files changed, 37 insertions(+), 13 deletions(-) diff --git a/Makefile.in b/Makefile.in index c8baf6d..743919c 100644 --- a/Makefile.in +++ b/Makefile.in @@ -36,15 +36,13 @@ ALL_TOP_DIRS = @ALL_TOP_DIRS@ BUILDSUBDIRS = \ libs/wine \ $(ALL_TOOL_DIRS) \ - $(ALL_TOP_DIRS) \ - $(ALL_DLL_DIRS) + $(ALL_TOP_DIRS) # Sub-directories to run make install/uninstall into INSTALLSUBDIRS = \ libs/wine \ $(ALL_TOOL_DIRS) \ - $(ALL_TOP_DIRS) \ - $(ALL_DLL_DIRS) + $(ALL_TOP_DIRS) # Sub-directories that don't have a makefile EXTRASUBDIRS = dlls libs diff --git a/aclocal.m4 b/aclocal.m4 index 7a86834..128c813 100644 --- a/aclocal.m4 +++ b/aclocal.m4 @@ -209,14 +209,23 @@ wine_fn_config_dll () wine_fn_append_file ALL_DIRS dlls/$ac_dir wine_fn_append_rule ALL_MAKEFILE_DEPENDS \ -"dlls/$ac_dir dlls/$ac_dir/__install__ dlls/$ac_dir/__install-lib__ dlls/$ac_dir/__install-dev__: __builddeps__ dlls/$ac_dir/Makefile -dlls/$ac_dir/__clean__ dlls/$ac_dir/__uninstall__ dlls/$ac_dir: dlls/$ac_dir/Makefile +"dlls/$ac_dir/__clean__: dlls/$ac_dir/Makefile dlls/$ac_dir/Makefile dlls/$ac_dir/__depend__: dlls/$ac_dir/Makefile.in config.status dlls/Makedll.rules \$(MAKEDEP) @./config.status --file dlls/$ac_dir/Makefile && cd dlls/$ac_dir && \$(MAKE) depend" + AS_VAR_IF([$ac_enable],[no], dnl enable_win16 is special in that it disables import libs too [test "$ac_enable" != enable_win16 || return 0], - [wine_fn_append_file ALL_DLL_DIRS dlls/$ac_dir]) + [wine_fn_append_file ALL_DLL_DIRS dlls/$ac_dir + wine_fn_append_rule ALL_MAKEFILE_DEPENDS \ +"all: dlls/$ac_dir +dlls/$ac_dir: dlls/$ac_dir/Makefile __builddeps__ +install:: dlls/$ac_dir/Makefile __builddeps__ + @cd dlls/$ac_dir && \$(MAKE) install +install-lib:: dlls/$ac_dir/Makefile __builddeps__ + @cd dlls/$ac_dir && \$(MAKE) install-lib +uninstall:: dlls/$ac_dir/Makefile + @cd dlls/$ac_dir && \$(MAKE) uninstall"]) if test -n "$ac_implibsrc" then @@ -227,14 +236,18 @@ $ac_file.$IMPLIBEXT $ac_file.$STATIC_IMPLIBEXT $ac_file.cross.a: $ac_deps $ac_file.def: dlls/$ac_dir/$ac_dir.spec dlls/$ac_dir/Makefile @cd dlls/$ac_dir && \$(MAKE) \`basename \$[@]\` $ac_file.$STATIC_IMPLIBEXT $ac_file.cross.a: dlls/$ac_dir/Makefile dummy - @cd dlls/$ac_dir && \$(MAKE) \`basename \$[@]\`" + @cd dlls/$ac_dir && \$(MAKE) \`basename \$[@]\` +install-dev:: dlls/$ac_dir/Makefile __builddeps__ + @cd dlls/$ac_dir && \$(MAKE) install-dev" elif test -n "$ac_implib" then wine_fn_append_rule ALL_MAKEFILE_DEPENDS \ "__builddeps__: $ac_file.$IMPLIBEXT __buildcrossdeps__: $ac_file.cross.a $ac_file.$IMPLIBEXT $ac_file.cross.a: dlls/$ac_dir/$ac_dir.spec dlls/$ac_dir/Makefile $ac_deps - @cd dlls/$ac_dir && \$(MAKE) \`basename \$[@]\`" + @cd dlls/$ac_dir && \$(MAKE) \`basename \$[@]\` +install-dev:: dlls/$ac_dir/Makefile __builddeps__ + @cd dlls/$ac_dir && \$(MAKE) install-dev" if test "$ac_dir" != "$ac_implib" then diff --git a/configure b/configure index 15a589e..3d6f4f6 100755 --- a/configure +++ b/configure @@ -13932,15 +13932,24 @@ wine_fn_config_dll () wine_fn_append_file ALL_DIRS dlls/$ac_dir wine_fn_append_rule ALL_MAKEFILE_DEPENDS \ -"dlls/$ac_dir dlls/$ac_dir/__install__ dlls/$ac_dir/__install-lib__ dlls/$ac_dir/__install-dev__: __builddeps__ dlls/$ac_dir/Makefile -dlls/$ac_dir/__clean__ dlls/$ac_dir/__uninstall__ dlls/$ac_dir: dlls/$ac_dir/Makefile +"dlls/$ac_dir/__clean__: dlls/$ac_dir/Makefile dlls/$ac_dir/Makefile dlls/$ac_dir/__depend__: dlls/$ac_dir/Makefile.in config.status dlls/Makedll.rules \$(MAKEDEP) @./config.status --file dlls/$ac_dir/Makefile && cd dlls/$ac_dir && \$(MAKE) depend" + eval as_val=\$$ac_enable if test "x$as_val" = x""no; then : test "$ac_enable" != enable_win16 || return 0 else wine_fn_append_file ALL_DLL_DIRS dlls/$ac_dir + wine_fn_append_rule ALL_MAKEFILE_DEPENDS \ +"all: dlls/$ac_dir +dlls/$ac_dir: dlls/$ac_dir/Makefile __builddeps__ +install:: dlls/$ac_dir/Makefile __builddeps__ + @cd dlls/$ac_dir && \$(MAKE) install +install-lib:: dlls/$ac_dir/Makefile __builddeps__ + @cd dlls/$ac_dir && \$(MAKE) install-lib +uninstall:: dlls/$ac_dir/Makefile + @cd dlls/$ac_dir && \$(MAKE) uninstall" fi if test -n "$ac_implibsrc" @@ -13952,14 +13961,18 @@ $ac_file.$IMPLIBEXT $ac_file.$STATIC_IMPLIBEXT $ac_file.cross.a: $ac_deps $ac_file.def: dlls/$ac_dir/$ac_dir.spec dlls/$ac_dir/Makefile @cd dlls/$ac_dir && \$(MAKE) \`basename \$@\` $ac_file.$STATIC_IMPLIBEXT $ac_file.cross.a: dlls/$ac_dir/Makefile dummy - @cd dlls/$ac_dir && \$(MAKE) \`basename \$@\`" + @cd dlls/$ac_dir && \$(MAKE) \`basename \$@\` +install-dev:: dlls/$ac_dir/Makefile __builddeps__ + @cd dlls/$ac_dir && \$(MAKE) install-dev" elif test -n "$ac_implib" then wine_fn_append_rule ALL_MAKEFILE_DEPENDS \ "__builddeps__: $ac_file.$IMPLIBEXT __buildcrossdeps__: $ac_file.cross.a $ac_file.$IMPLIBEXT $ac_file.cross.a: dlls/$ac_dir/$ac_dir.spec dlls/$ac_dir/Makefile $ac_deps - @cd dlls/$ac_dir && \$(MAKE) \`basename \$@\`" + @cd dlls/$ac_dir && \$(MAKE) \`basename \$@\` +install-dev:: dlls/$ac_dir/Makefile __builddeps__ + @cd dlls/$ac_dir && \$(MAKE) install-dev" if test "$ac_dir" != "$ac_implib" then
1
0
0
0
Alexandre Julliard : makefiles: Output all the static library rules explicitly for each module.
by Alexandre Julliard
25 Mar '10
25 Mar '10
Module: wine Branch: master Commit: c2c3c21078e80c6542d71b2c2c3a01082c765178 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=c2c3c21078e80c6542d71b2c2…
Author: Alexandre Julliard <julliard(a)winehq.org> Date: Thu Mar 25 11:13:07 2010 +0100 makefiles: Output all the static library rules explicitly for each module. --- Makefile.in | 3 --- aclocal.m4 | 16 +++++++++------- configure | 18 +++++++++--------- 3 files changed, 18 insertions(+), 19 deletions(-) diff --git a/Makefile.in b/Makefile.in index b3dbd5e..c8baf6d 100644 --- a/Makefile.in +++ b/Makefile.in @@ -29,7 +29,6 @@ MODULE = none ALL_DIRS = @ALL_DIRS@ ALL_DLL_DIRS = @ALL_DLL_DIRS@ -ALL_STATICLIB_DIRS = @ALL_STATICLIB_DIRS@ ALL_TOOL_DIRS = @ALL_TOOL_DIRS@ ALL_TOP_DIRS = @ALL_TOP_DIRS@ @@ -38,7 +37,6 @@ BUILDSUBDIRS = \ libs/wine \ $(ALL_TOOL_DIRS) \ $(ALL_TOP_DIRS) \ - $(ALL_STATICLIB_DIRS) \ $(ALL_DLL_DIRS) # Sub-directories to run make install/uninstall into @@ -46,7 +44,6 @@ INSTALLSUBDIRS = \ libs/wine \ $(ALL_TOOL_DIRS) \ $(ALL_TOP_DIRS) \ - $(ALL_STATICLIB_DIRS) \ $(ALL_DLL_DIRS) # Sub-directories that don't have a makefile diff --git a/aclocal.m4 b/aclocal.m4 index 2ba382f..7a86834 100644 --- a/aclocal.m4 +++ b/aclocal.m4 @@ -150,7 +150,6 @@ AC_SUBST(ALL_DIRS,"") AC_SUBST(ALL_TOP_DIRS,"") AC_SUBST(ALL_DLL_DIRS,"") AC_SUBST(ALL_TOOL_DIRS,"") -AC_SUBST(ALL_STATICLIB_DIRS,"") AC_SUBST(ALL_TEST_BINARIES,"") AC_SUBST(ALL_PROGRAM_BIN_INSTALL_DIRS,"") @@ -184,16 +183,19 @@ wine_fn_config_lib () ac_name=$[1] ac_dir=dlls/$ac_name wine_fn_append_file ALL_DIRS $ac_dir - wine_fn_append_file ALL_STATICLIB_DIRS $ac_dir wine_fn_append_rule ALL_MAKEFILE_DEPENDS \ -"$ac_dir/__install__ $ac_dir/__install-dev__ __builddeps__: $ac_dir +"all __builddeps__: $ac_dir __buildcrossdeps__: $ac_dir/lib$ac_name.cross.a -$ac_dir $ac_dir/lib$ac_name.cross.a: tools/widl tools/winebuild tools/winegcc include -$ac_dir/lib$ac_name.cross.a: $ac_dir/Makefile dummy +$ac_dir $ac_dir/lib$ac_name.cross.a: $ac_dir/Makefile tools/widl tools/winebuild tools/winegcc include +$ac_dir/lib$ac_name.cross.a: dummy @cd $ac_dir && \$(MAKE) lib$ac_name.cross.a -$ac_dir/__clean__ $ac_dir/__install-lib__ $ac_dir/__uninstall__ $ac_dir: $ac_dir/Makefile +$ac_dir/__clean__: $ac_dir/Makefile $ac_dir/Makefile $ac_dir/__depend__: $ac_dir/Makefile.in config.status dlls/Makeimplib.rules \$(MAKEDEP) - @./config.status --file $ac_dir/Makefile && cd $ac_dir && \$(MAKE) depend" + @./config.status --file $ac_dir/Makefile && cd $ac_dir && \$(MAKE) depend +install install-dev:: $ac_dir + @cd $ac_dir && \$(MAKE) install +uninstall:: $ac_dir/Makefile + @cd $ac_dir && \$(MAKE) uninstall" } wine_fn_config_dll () diff --git a/configure b/configure index be8bd2c..15a589e 100755 --- a/configure +++ b/configure @@ -598,7 +598,6 @@ ac_subst_vars='LTLIBOBJS LIBOBJS ALL_PROGRAM_BIN_INSTALL_DIRS ALL_TEST_BINARIES -ALL_STATICLIB_DIRS ALL_TOOL_DIRS ALL_DLL_DIRS ALL_TOP_DIRS @@ -13867,8 +13866,6 @@ ALL_DLL_DIRS="" ALL_TOOL_DIRS="" -ALL_STATICLIB_DIRS="" - ALL_TEST_BINARIES="" ALL_PROGRAM_BIN_INSTALL_DIRS="" @@ -13909,16 +13906,19 @@ wine_fn_config_lib () ac_name=$1 ac_dir=dlls/$ac_name wine_fn_append_file ALL_DIRS $ac_dir - wine_fn_append_file ALL_STATICLIB_DIRS $ac_dir wine_fn_append_rule ALL_MAKEFILE_DEPENDS \ -"$ac_dir/__install__ $ac_dir/__install-dev__ __builddeps__: $ac_dir +"all __builddeps__: $ac_dir __buildcrossdeps__: $ac_dir/lib$ac_name.cross.a -$ac_dir $ac_dir/lib$ac_name.cross.a: tools/widl tools/winebuild tools/winegcc include -$ac_dir/lib$ac_name.cross.a: $ac_dir/Makefile dummy +$ac_dir $ac_dir/lib$ac_name.cross.a: $ac_dir/Makefile tools/widl tools/winebuild tools/winegcc include +$ac_dir/lib$ac_name.cross.a: dummy @cd $ac_dir && \$(MAKE) lib$ac_name.cross.a -$ac_dir/__clean__ $ac_dir/__install-lib__ $ac_dir/__uninstall__ $ac_dir: $ac_dir/Makefile +$ac_dir/__clean__: $ac_dir/Makefile $ac_dir/Makefile $ac_dir/__depend__: $ac_dir/Makefile.in config.status dlls/Makeimplib.rules \$(MAKEDEP) - @./config.status --file $ac_dir/Makefile && cd $ac_dir && \$(MAKE) depend" + @./config.status --file $ac_dir/Makefile && cd $ac_dir && \$(MAKE) depend +install install-dev:: $ac_dir + @cd $ac_dir && \$(MAKE) install +uninstall:: $ac_dir/Makefile + @cd $ac_dir && \$(MAKE) uninstall" } wine_fn_config_dll ()
1
0
0
0
Alexandre Julliard : makefiles: Output all the program rules explicitly for each module.
by Alexandre Julliard
25 Mar '10
25 Mar '10
Module: wine Branch: master Commit: d7b387d376b4460214a9378359bb8a1255118634 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=d7b387d376b4460214a937835…
Author: Alexandre Julliard <julliard(a)winehq.org> Date: Thu Mar 25 11:11:34 2010 +0100 makefiles: Output all the program rules explicitly for each module. --- Makefile.in | 14 +++++--------- aclocal.m4 | 24 ++++++++++++++---------- configure | 28 ++++++++++++++-------------- 3 files changed, 33 insertions(+), 33 deletions(-) diff --git a/Makefile.in b/Makefile.in index bce8b39..b3dbd5e 100644 --- a/Makefile.in +++ b/Makefile.in @@ -29,8 +29,6 @@ MODULE = none ALL_DIRS = @ALL_DIRS@ ALL_DLL_DIRS = @ALL_DLL_DIRS@ -ALL_INSTALL_DIRS = @ALL_INSTALL_DIRS@ -ALL_PROGRAM_DIRS = @ALL_PROGRAM_DIRS@ ALL_STATICLIB_DIRS = @ALL_STATICLIB_DIRS@ ALL_TOOL_DIRS = @ALL_TOOL_DIRS@ ALL_TOP_DIRS = @ALL_TOP_DIRS@ @@ -41,8 +39,7 @@ BUILDSUBDIRS = \ $(ALL_TOOL_DIRS) \ $(ALL_TOP_DIRS) \ $(ALL_STATICLIB_DIRS) \ - $(ALL_DLL_DIRS) \ - $(ALL_PROGRAM_DIRS) + $(ALL_DLL_DIRS) # Sub-directories to run make install/uninstall into INSTALLSUBDIRS = \ @@ -50,8 +47,7 @@ INSTALLSUBDIRS = \ $(ALL_TOOL_DIRS) \ $(ALL_TOP_DIRS) \ $(ALL_STATICLIB_DIRS) \ - $(ALL_DLL_DIRS) \ - $(ALL_INSTALL_DIRS) + $(ALL_DLL_DIRS) # Sub-directories that don't have a makefile EXTRASUBDIRS = dlls libs @@ -135,9 +131,6 @@ uninstall:: $(INSTALLSUBDIRS:%=%/__uninstall__) dummy .PHONY: $(INSTALLSUBDIRS:%=%/__install__) $(INSTALLSUBDIRS:%=%/__uninstall__) \ $(INSTALLSUBDIRS:%=%/__install-lib__) $(INSTALLSUBDIRS:%=%/__install-dev__) -uninstall:: - -rmdir $(DESTDIR)$(datadir)/wine $(DESTDIR)$(fakedlldir) $(DESTDIR)$(dlldir) - # Rules for auto documentation DOCSUBDIRS = $(ALL_DLL_DIRS) @@ -214,3 +207,6 @@ tags ctags: .MAKEFILEDEPS: @ALL_MAKEFILE_DEPENDS@ + +uninstall:: + -rmdir $(DESTDIR)$(datadir)/wine $(DESTDIR)$(fakedlldir) $(DESTDIR)$(dlldir) diff --git a/aclocal.m4 b/aclocal.m4 index 183a81d..2ba382f 100644 --- a/aclocal.m4 +++ b/aclocal.m4 @@ -151,9 +151,7 @@ AC_SUBST(ALL_TOP_DIRS,"") AC_SUBST(ALL_DLL_DIRS,"") AC_SUBST(ALL_TOOL_DIRS,"") AC_SUBST(ALL_STATICLIB_DIRS,"") -AC_SUBST(ALL_INSTALL_DIRS,"") AC_SUBST(ALL_TEST_BINARIES,"") -AC_SUBST(ALL_PROGRAM_DIRS,"") AC_SUBST(ALL_PROGRAM_BIN_INSTALL_DIRS,"") wine_fn_append_file () @@ -258,16 +256,22 @@ wine_fn_config_program () ac_install=$[3] wine_fn_append_file ALL_DIRS programs/$ac_dir wine_fn_append_rule ALL_MAKEFILE_DEPENDS \ -"programs/$ac_dir programs/$ac_dir/__install__ programs/$ac_dir/__install-lib__: __builddeps__ programs/$ac_dir/Makefile -programs/$ac_dir/__clean__ programs/$ac_dir/__install-dev__ programs/$ac_dir/__uninstall__ programs/$ac_dir: programs/$ac_dir/Makefile +"programs/$ac_dir/__clean__: programs/$ac_dir/Makefile programs/$ac_dir/Makefile programs/$ac_dir/__depend__: programs/$ac_dir/Makefile.in config.status programs/Makeprog.rules \$(MAKEDEP) @./config.status --file programs/$ac_dir/Makefile && cd programs/$ac_dir && \$(MAKE) depend" - AS_VAR_IF([$ac_enable],[no],,[wine_fn_append_file ALL_PROGRAM_DIRS programs/$ac_dir - case $ac_install in - installbin) wine_fn_append_file ALL_INSTALL_DIRS programs/$ac_dir - wine_fn_append_file ALL_PROGRAM_BIN_INSTALL_DIRS programs/$ac_dir ;; - install) wine_fn_append_file ALL_INSTALL_DIRS programs/$ac_dir ;; - esac]) + + AS_VAR_IF([$ac_enable],[no],,[wine_fn_append_rule ALL_MAKEFILE_DEPENDS \ +"all: programs/$ac_dir +programs/$ac_dir: programs/$ac_dir/Makefile __builddeps__" + if test -n "$ac_install" + then + wine_fn_append_rule ALL_MAKEFILE_DEPENDS \ +"install install-lib:: programs/$ac_dir/Makefile __builddeps__ + @cd programs/$ac_dir && \$(MAKE) install +uninstall:: programs/$ac_dir/Makefile + @cd programs/$ac_dir && \$(MAKE) uninstall" + test "$ac_install" != installbin || wine_fn_append_file ALL_PROGRAM_BIN_INSTALL_DIRS programs/$ac_dir + fi]) } wine_fn_config_test () diff --git a/configure b/configure index 6dae004..be8bd2c 100755 --- a/configure +++ b/configure @@ -597,9 +597,7 @@ ac_includes_default="\ ac_subst_vars='LTLIBOBJS LIBOBJS ALL_PROGRAM_BIN_INSTALL_DIRS -ALL_PROGRAM_DIRS ALL_TEST_BINARIES -ALL_INSTALL_DIRS ALL_STATICLIB_DIRS ALL_TOOL_DIRS ALL_DLL_DIRS @@ -13871,12 +13869,8 @@ ALL_TOOL_DIRS="" ALL_STATICLIB_DIRS="" -ALL_INSTALL_DIRS="" - ALL_TEST_BINARIES="" -ALL_PROGRAM_DIRS="" - ALL_PROGRAM_BIN_INSTALL_DIRS="" @@ -13989,20 +13983,26 @@ wine_fn_config_program () ac_install=$3 wine_fn_append_file ALL_DIRS programs/$ac_dir wine_fn_append_rule ALL_MAKEFILE_DEPENDS \ -"programs/$ac_dir programs/$ac_dir/__install__ programs/$ac_dir/__install-lib__: __builddeps__ programs/$ac_dir/Makefile -programs/$ac_dir/__clean__ programs/$ac_dir/__install-dev__ programs/$ac_dir/__uninstall__ programs/$ac_dir: programs/$ac_dir/Makefile +"programs/$ac_dir/__clean__: programs/$ac_dir/Makefile programs/$ac_dir/Makefile programs/$ac_dir/__depend__: programs/$ac_dir/Makefile.in config.status programs/Makeprog.rules \$(MAKEDEP) @./config.status --file programs/$ac_dir/Makefile && cd programs/$ac_dir && \$(MAKE) depend" + eval as_val=\$$ac_enable if test "x$as_val" = x""no; then : else - wine_fn_append_file ALL_PROGRAM_DIRS programs/$ac_dir - case $ac_install in - installbin) wine_fn_append_file ALL_INSTALL_DIRS programs/$ac_dir - wine_fn_append_file ALL_PROGRAM_BIN_INSTALL_DIRS programs/$ac_dir ;; - install) wine_fn_append_file ALL_INSTALL_DIRS programs/$ac_dir ;; - esac + wine_fn_append_rule ALL_MAKEFILE_DEPENDS \ +"all: programs/$ac_dir +programs/$ac_dir: programs/$ac_dir/Makefile __builddeps__" + if test -n "$ac_install" + then + wine_fn_append_rule ALL_MAKEFILE_DEPENDS \ +"install install-lib:: programs/$ac_dir/Makefile __builddeps__ + @cd programs/$ac_dir && \$(MAKE) install +uninstall:: programs/$ac_dir/Makefile + @cd programs/$ac_dir && \$(MAKE) uninstall" + test "$ac_install" != installbin || wine_fn_append_file ALL_PROGRAM_BIN_INSTALL_DIRS programs/$ac_dir + fi fi }
1
0
0
0
Alexandre Julliard : makefiles: Output all the test rules explicitly for each module.
by Alexandre Julliard
25 Mar '10
25 Mar '10
Module: wine Branch: master Commit: 44cff7e9ecbd5c26cdc1f9765802c3bfbba12694 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=44cff7e9ecbd5c26cdc1f9765…
Author: Alexandre Julliard <julliard(a)winehq.org> Date: Thu Mar 25 11:06:37 2010 +0100 makefiles: Output all the test rules explicitly for each module. --- Makefile.in | 21 +-------------------- aclocal.m4 | 16 +++++++++++----- configure | 18 +++++++++++------- 3 files changed, 23 insertions(+), 32 deletions(-) diff --git a/Makefile.in b/Makefile.in index 4fd69e1..bce8b39 100644 --- a/Makefile.in +++ b/Makefile.in @@ -32,7 +32,6 @@ ALL_DLL_DIRS = @ALL_DLL_DIRS@ ALL_INSTALL_DIRS = @ALL_INSTALL_DIRS@ ALL_PROGRAM_DIRS = @ALL_PROGRAM_DIRS@ ALL_STATICLIB_DIRS = @ALL_STATICLIB_DIRS@ -ALL_TEST_DIRS = @ALL_TEST_DIRS@ ALL_TOOL_DIRS = @ALL_TOOL_DIRS@ ALL_TOP_DIRS = @ALL_TOP_DIRS@ @@ -43,8 +42,7 @@ BUILDSUBDIRS = \ $(ALL_TOP_DIRS) \ $(ALL_STATICLIB_DIRS) \ $(ALL_DLL_DIRS) \ - $(ALL_PROGRAM_DIRS) \ - $(ALL_TEST_DIRS) + $(ALL_PROGRAM_DIRS) # Sub-directories to run make install/uninstall into INSTALLSUBDIRS = \ @@ -140,22 +138,6 @@ uninstall:: $(INSTALLSUBDIRS:%=%/__uninstall__) dummy uninstall:: -rmdir $(DESTDIR)$(datadir)/wine $(DESTDIR)$(fakedlldir) $(DESTDIR)$(dlldir) -# Rules for testing - -$(ALL_TEST_DIRS:%=%/__test__): dummy - @cd `dirname $@` && $(MAKE) test - -$(ALL_TEST_DIRS:%=%/__crosstest__): dummy - @cd `dirname $@` && $(MAKE) crosstest - -check test:: $(ALL_TEST_DIRS:%=%/__test__) -crosstest:: $(ALL_TEST_DIRS:%=%/__crosstest__) - -testclean:: - $(RM) $(ALL_TEST_DIRS:%=%/*.ok) - -.PHONY: check test testclean crosstest $(ALL_TEST_DIRS:%=%/__test__) $(ALL_TEST_DIRS:%=%/__crosstest__) - # Rules for auto documentation DOCSUBDIRS = $(ALL_DLL_DIRS) @@ -193,7 +175,6 @@ __builddeps__ __buildcrossdeps__: __tooldeps__ include loader server: libs/port libs/wine tools fonts: tools include: tools/widl -programs/winetest: $(ALL_TEST_DIRS) libs/wine $(ALL_TOOL_DIRS): libs/port tools/wmc tools/wrc: tools tools tools/wmc tools/wrc: libs/wine diff --git a/aclocal.m4 b/aclocal.m4 index c5521da..183a81d 100644 --- a/aclocal.m4 +++ b/aclocal.m4 @@ -152,7 +152,6 @@ AC_SUBST(ALL_DLL_DIRS,"") AC_SUBST(ALL_TOOL_DIRS,"") AC_SUBST(ALL_STATICLIB_DIRS,"") AC_SUBST(ALL_INSTALL_DIRS,"") -AC_SUBST(ALL_TEST_DIRS,"") AC_SUBST(ALL_TEST_BINARIES,"") AC_SUBST(ALL_PROGRAM_DIRS,"") AC_SUBST(ALL_PROGRAM_BIN_INSTALL_DIRS,"") @@ -284,12 +283,19 @@ $ac_name.rc: $ac_name.res: $ac_name.rc $ac_name.exe" wine_fn_append_file ALL_DIRS $ac_dir wine_fn_append_rule ALL_MAKEFILE_DEPENDS \ -"$ac_dir: __builddeps__ -$ac_dir/__crosstest__: __buildcrossdeps__ -$ac_dir/__clean__ $ac_dir/__crosstest__ $ac_dir: $ac_dir/Makefile +"$ac_dir/__clean__: $ac_dir/Makefile $ac_dir/Makefile $ac_dir/__depend__: $ac_dir/Makefile.in config.status Maketest.rules \$(MAKEDEP) @./config.status --file $ac_dir/Makefile && cd $ac_dir && \$(MAKE) depend" - AS_VAR_IF([enable_tests],[no],,[wine_fn_append_file ALL_TEST_DIRS $ac_dir]) + + AS_VAR_IF([enable_tests],[no],,[wine_fn_append_rule ALL_MAKEFILE_DEPENDS \ +"all programs/winetest: $ac_dir +$ac_dir: $ac_dir/Makefile __builddeps__ +crosstest:: $ac_dir/Makefile __buildcrossdeps__ + @cd $ac_dir && \$(MAKE) crosstest +test:: + @cd $ac_dir && \$(MAKE) test +testclean:: + \$(RM) $ac_dir/*.ok"]) } wine_fn_config_tool () diff --git a/configure b/configure index 11bc7b4..6dae004 100755 --- a/configure +++ b/configure @@ -599,7 +599,6 @@ LIBOBJS ALL_PROGRAM_BIN_INSTALL_DIRS ALL_PROGRAM_DIRS ALL_TEST_BINARIES -ALL_TEST_DIRS ALL_INSTALL_DIRS ALL_STATICLIB_DIRS ALL_TOOL_DIRS @@ -13874,8 +13873,6 @@ ALL_STATICLIB_DIRS="" ALL_INSTALL_DIRS="" -ALL_TEST_DIRS="" - ALL_TEST_BINARIES="" ALL_PROGRAM_DIRS="" @@ -14022,15 +14019,22 @@ $ac_name.rc: $ac_name.res: $ac_name.rc $ac_name.exe" wine_fn_append_file ALL_DIRS $ac_dir wine_fn_append_rule ALL_MAKEFILE_DEPENDS \ -"$ac_dir: __builddeps__ -$ac_dir/__crosstest__: __buildcrossdeps__ -$ac_dir/__clean__ $ac_dir/__crosstest__ $ac_dir: $ac_dir/Makefile +"$ac_dir/__clean__: $ac_dir/Makefile $ac_dir/Makefile $ac_dir/__depend__: $ac_dir/Makefile.in config.status Maketest.rules \$(MAKEDEP) @./config.status --file $ac_dir/Makefile && cd $ac_dir && \$(MAKE) depend" + if test "x$enable_tests" = x""no; then : else - wine_fn_append_file ALL_TEST_DIRS $ac_dir + wine_fn_append_rule ALL_MAKEFILE_DEPENDS \ +"all programs/winetest: $ac_dir +$ac_dir: $ac_dir/Makefile __builddeps__ +crosstest:: $ac_dir/Makefile __buildcrossdeps__ + @cd $ac_dir && \$(MAKE) crosstest +test:: + @cd $ac_dir && \$(MAKE) test +testclean:: + \$(RM) $ac_dir/*.ok" fi }
1
0
0
0
Alexandre Julliard : makefiles: Output all the import lib dependencies explicitly for each module.
by Alexandre Julliard
25 Mar '10
25 Mar '10
Module: wine Branch: master Commit: e55ff7fea59c1bb77b2816695dbe840cf3a1a705 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=e55ff7fea59c1bb77b2816695…
Author: Alexandre Julliard <julliard(a)winehq.org> Date: Thu Mar 25 11:02:52 2010 +0100 makefiles: Output all the import lib dependencies explicitly for each module. --- Makefile.in | 11 +---------- aclocal.m4 | 23 +++++++++++------------ configure | 27 +++++++++++---------------- 3 files changed, 23 insertions(+), 38 deletions(-) diff --git a/Makefile.in b/Makefile.in index 2768b17..4fd69e1 100644 --- a/Makefile.in +++ b/Makefile.in @@ -183,20 +183,11 @@ manpages htmlpages sgmlpages xmlpages: dummy .PHONY: man doc-html doc-sgml doc-xml manpages htmlpages sgmlpages xmlpages \ $(DOCSUBDIRS:%=%/__man__) $(DOCSUBDIRS:%=%/__doc_html__) $(DOCSUBDIRS:%=%/__doc_sgml__) $(DOCSUBDIRS:%=%/__doc_xml__) -# Rules for import libraries - -STATIC_LIBS = @ALL_STATIC_LIBS@ -IMPORT_LIBS = @ALL_IMPORT_LIBS@ - -implib: $(ALL_STATICLIB_DIRS) $(IMPORT_LIBS) -.PHONY: implib - # Dependencies between directories # dependencies needed to build any dll or program __tooldeps__: libs/port libs/wine libs/wpp $(ALL_TOOL_DIRS) -__builddeps__: __tooldeps__ include $(ALL_STATICLIB_DIRS) $(IMPORT_LIBS) -__buildcrossdeps__: __tooldeps__ include $(STATIC_LIBS:.a=.cross.a) $(IMPORT_LIBS:.def=.cross.a) +__builddeps__ __buildcrossdeps__: __tooldeps__ include .PHONY: __tooldeps__ __builddeps__ __buildcrossdeps__ loader server: libs/port libs/wine tools diff --git a/aclocal.m4 b/aclocal.m4 index 060767a..c5521da 100644 --- a/aclocal.m4 +++ b/aclocal.m4 @@ -151,8 +151,6 @@ AC_SUBST(ALL_TOP_DIRS,"") AC_SUBST(ALL_DLL_DIRS,"") AC_SUBST(ALL_TOOL_DIRS,"") AC_SUBST(ALL_STATICLIB_DIRS,"") -AC_SUBST(ALL_STATIC_LIBS,"") -AC_SUBST(ALL_IMPORT_LIBS,"") AC_SUBST(ALL_INSTALL_DIRS,"") AC_SUBST(ALL_TEST_DIRS,"") AC_SUBST(ALL_TEST_BINARIES,"") @@ -190,9 +188,9 @@ wine_fn_config_lib () ac_dir=dlls/$ac_name wine_fn_append_file ALL_DIRS $ac_dir wine_fn_append_file ALL_STATICLIB_DIRS $ac_dir - wine_fn_append_file ALL_STATIC_LIBS $ac_dir/lib$ac_name.a wine_fn_append_rule ALL_MAKEFILE_DEPENDS \ -"$ac_dir/__install__ $ac_dir/__install-dev__: $ac_dir +"$ac_dir/__install__ $ac_dir/__install-dev__ __builddeps__: $ac_dir +__buildcrossdeps__: $ac_dir/lib$ac_name.cross.a $ac_dir $ac_dir/lib$ac_name.cross.a: tools/widl tools/winebuild tools/winegcc include $ac_dir/lib$ac_name.cross.a: $ac_dir/Makefile dummy @cd $ac_dir && \$(MAKE) lib$ac_name.cross.a @@ -223,27 +221,28 @@ dlls/$ac_dir/Makefile dlls/$ac_dir/__depend__: dlls/$ac_dir/Makefile.in config.s if test -n "$ac_implibsrc" then - wine_fn_append_file ALL_IMPORT_LIBS $ac_file.$IMPLIBEXT - wine_fn_append_file ALL_IMPORT_LIBS $ac_file.$STATIC_IMPLIBEXT wine_fn_append_rule ALL_MAKEFILE_DEPENDS \ -"$ac_file.$IMPLIBEXT $ac_file.$STATIC_IMPLIBEXT $ac_file.cross.a: $ac_deps +"__builddeps__: $ac_file.$IMPLIBEXT $ac_file.$STATIC_IMPLIBEXT +__buildcrossdeps__: $ac_file.cross.a +$ac_file.$IMPLIBEXT $ac_file.$STATIC_IMPLIBEXT $ac_file.cross.a: $ac_deps $ac_file.def: dlls/$ac_dir/$ac_dir.spec dlls/$ac_dir/Makefile @cd dlls/$ac_dir && \$(MAKE) \`basename \$[@]\` $ac_file.$STATIC_IMPLIBEXT $ac_file.cross.a: dlls/$ac_dir/Makefile dummy @cd dlls/$ac_dir && \$(MAKE) \`basename \$[@]\`" elif test -n "$ac_implib" then - wine_fn_append_file ALL_IMPORT_LIBS $ac_file.$IMPLIBEXT wine_fn_append_rule ALL_MAKEFILE_DEPENDS \ -"$ac_file.$IMPLIBEXT $ac_file.cross.a: $ac_deps -$ac_file.$IMPLIBEXT $ac_file.cross.a: dlls/$ac_dir/$ac_dir.spec dlls/$ac_dir/Makefile +"__builddeps__: $ac_file.$IMPLIBEXT +__buildcrossdeps__: $ac_file.cross.a +$ac_file.$IMPLIBEXT $ac_file.cross.a: dlls/$ac_dir/$ac_dir.spec dlls/$ac_dir/Makefile $ac_deps @cd dlls/$ac_dir && \$(MAKE) \`basename \$[@]\`" if test "$ac_dir" != "$ac_implib" then - wine_fn_append_file ALL_IMPORT_LIBS dlls/lib$ac_implib.$IMPLIBEXT wine_fn_append_rule ALL_MAKEFILE_DEPENDS \ -"dlls/lib$ac_implib.$IMPLIBEXT: $ac_file.$IMPLIBEXT +"__builddeps__: dlls/lib$ac_implib.$IMPLIBEXT +__buildcrossdeps__: dlls/lib$ac_implib.cross.a +dlls/lib$ac_implib.$IMPLIBEXT: $ac_file.$IMPLIBEXT \$(RM) \$[@] && \$(LN_S) $ac_dir/lib$ac_implib.$IMPLIBEXT \$[@] dlls/lib$ac_implib.cross.a: $ac_file.cross.a \$(RM) \$[@] && \$(LN_S) $ac_dir/lib$ac_implib.cross.a \$[@] diff --git a/configure b/configure index 5b48965..11bc7b4 100755 --- a/configure +++ b/configure @@ -601,8 +601,6 @@ ALL_PROGRAM_DIRS ALL_TEST_BINARIES ALL_TEST_DIRS ALL_INSTALL_DIRS -ALL_IMPORT_LIBS -ALL_STATIC_LIBS ALL_STATICLIB_DIRS ALL_TOOL_DIRS ALL_DLL_DIRS @@ -13874,10 +13872,6 @@ ALL_TOOL_DIRS="" ALL_STATICLIB_DIRS="" -ALL_STATIC_LIBS="" - -ALL_IMPORT_LIBS="" - ALL_INSTALL_DIRS="" ALL_TEST_DIRS="" @@ -13925,9 +13919,9 @@ wine_fn_config_lib () ac_dir=dlls/$ac_name wine_fn_append_file ALL_DIRS $ac_dir wine_fn_append_file ALL_STATICLIB_DIRS $ac_dir - wine_fn_append_file ALL_STATIC_LIBS $ac_dir/lib$ac_name.a wine_fn_append_rule ALL_MAKEFILE_DEPENDS \ -"$ac_dir/__install__ $ac_dir/__install-dev__: $ac_dir +"$ac_dir/__install__ $ac_dir/__install-dev__ __builddeps__: $ac_dir +__buildcrossdeps__: $ac_dir/lib$ac_name.cross.a $ac_dir $ac_dir/lib$ac_name.cross.a: tools/widl tools/winebuild tools/winegcc include $ac_dir/lib$ac_name.cross.a: $ac_dir/Makefile dummy @cd $ac_dir && \$(MAKE) lib$ac_name.cross.a @@ -13960,27 +13954,28 @@ fi if test -n "$ac_implibsrc" then - wine_fn_append_file ALL_IMPORT_LIBS $ac_file.$IMPLIBEXT - wine_fn_append_file ALL_IMPORT_LIBS $ac_file.$STATIC_IMPLIBEXT wine_fn_append_rule ALL_MAKEFILE_DEPENDS \ -"$ac_file.$IMPLIBEXT $ac_file.$STATIC_IMPLIBEXT $ac_file.cross.a: $ac_deps +"__builddeps__: $ac_file.$IMPLIBEXT $ac_file.$STATIC_IMPLIBEXT +__buildcrossdeps__: $ac_file.cross.a +$ac_file.$IMPLIBEXT $ac_file.$STATIC_IMPLIBEXT $ac_file.cross.a: $ac_deps $ac_file.def: dlls/$ac_dir/$ac_dir.spec dlls/$ac_dir/Makefile @cd dlls/$ac_dir && \$(MAKE) \`basename \$@\` $ac_file.$STATIC_IMPLIBEXT $ac_file.cross.a: dlls/$ac_dir/Makefile dummy @cd dlls/$ac_dir && \$(MAKE) \`basename \$@\`" elif test -n "$ac_implib" then - wine_fn_append_file ALL_IMPORT_LIBS $ac_file.$IMPLIBEXT wine_fn_append_rule ALL_MAKEFILE_DEPENDS \ -"$ac_file.$IMPLIBEXT $ac_file.cross.a: $ac_deps -$ac_file.$IMPLIBEXT $ac_file.cross.a: dlls/$ac_dir/$ac_dir.spec dlls/$ac_dir/Makefile +"__builddeps__: $ac_file.$IMPLIBEXT +__buildcrossdeps__: $ac_file.cross.a +$ac_file.$IMPLIBEXT $ac_file.cross.a: dlls/$ac_dir/$ac_dir.spec dlls/$ac_dir/Makefile $ac_deps @cd dlls/$ac_dir && \$(MAKE) \`basename \$@\`" if test "$ac_dir" != "$ac_implib" then - wine_fn_append_file ALL_IMPORT_LIBS dlls/lib$ac_implib.$IMPLIBEXT wine_fn_append_rule ALL_MAKEFILE_DEPENDS \ -"dlls/lib$ac_implib.$IMPLIBEXT: $ac_file.$IMPLIBEXT +"__builddeps__: dlls/lib$ac_implib.$IMPLIBEXT +__buildcrossdeps__: dlls/lib$ac_implib.cross.a +dlls/lib$ac_implib.$IMPLIBEXT: $ac_file.$IMPLIBEXT \$(RM) \$@ && \$(LN_S) $ac_dir/lib$ac_implib.$IMPLIBEXT \$@ dlls/lib$ac_implib.cross.a: $ac_file.cross.a \$(RM) \$@ && \$(LN_S) $ac_dir/lib$ac_implib.cross.a \$@
1
0
0
0
Sébastien Ramage : user32: End scrollbar tracking if the mouse capture is lost.
by Alexandre Julliard
25 Mar '10
25 Mar '10
Module: wine Branch: master Commit: e7165b3921a38cccf6e6eebbf6d4041423493d5b URL:
http://source.winehq.org/git/wine.git/?a=commit;h=e7165b3921a38cccf6e6eebbf…
Author: Sébastien Ramage <sebastien.ramage(a)gmail.com> Date: Thu Mar 25 09:15:37 2010 +0100 user32: End scrollbar tracking if the mouse capture is lost. --- dlls/user32/scroll.c | 2 +- dlls/user32/tests/scroll.c | 16 +++++++++++++++- 2 files changed, 16 insertions(+), 2 deletions(-) diff --git a/dlls/user32/scroll.c b/dlls/user32/scroll.c index 423dea1..81d5d0b 100644 --- a/dlls/user32/scroll.c +++ b/dlls/user32/scroll.c @@ -1129,7 +1129,7 @@ void SCROLL_TrackScrollBar( HWND hwnd, INT scrollbar, POINT pt ) ReleaseCapture(); break; } - } while (msg.message != WM_LBUTTONUP); + } while (msg.message != WM_LBUTTONUP && GetCapture() == hwnd); } diff --git a/dlls/user32/tests/scroll.c b/dlls/user32/tests/scroll.c index 0695639..e3f6938 100644 --- a/dlls/user32/tests/scroll.c +++ b/dlls/user32/tests/scroll.c @@ -42,12 +42,25 @@ static LRESULT CALLBACK MyWndProc( HWND hWnd, UINT msg, WPARAM wParam, LPARAM lP case WM_DESTROY: PostQuitMessage(0); break; - + case WM_HSCROLL: + case WM_VSCROLL: + /* stop tracking */ + ReleaseCapture(); + return 0; default: return DefWindowProcA(hWnd, msg, wParam, lParam); } return 0; } +static void scrollbar_test_track(void) +{ + /* test that scrollbar tracking is terminated when + * the control looses mouse capture */ + SendMessage( hScroll, WM_LBUTTONDOWN, 0, MAKELPARAM( 1, 1)); + /* a normal return from the sendmessage */ + /* not normal for instance by closing the windws */ + ok( IsWindow( hScroll), "Scrollbar has gone!\n"); +} static void scrollbar_test1(void) { @@ -420,6 +433,7 @@ START_TEST ( scroll ) scrollbar_test2(); scrollbar_test3(); scrollbar_test4(); + scrollbar_test_track(); /* Some test results vary depending of theming being active or not */ hUxtheme = LoadLibraryA("uxtheme.dll");
1
0
0
0
Alexandre Julliard : version: Support loading resources from both 32-bit and 64-bit PE binaries.
by Alexandre Julliard
25 Mar '10
25 Mar '10
Module: wine Branch: master Commit: 81575421a9f4220dbb85d1c6af9645b49da1dd58 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=81575421a9f4220dbb85d1c6a…
Author: Alexandre Julliard <julliard(a)winehq.org> Date: Thu Mar 25 10:54:50 2010 +0100 version: Support loading resources from both 32-bit and 64-bit PE binaries. --- dlls/version/resource.c | 33 ++++++++++++++++++++++++--------- 1 files changed, 24 insertions(+), 9 deletions(-) diff --git a/dlls/version/resource.c b/dlls/version/resource.c index 68cda3f..e27a967 100644 --- a/dlls/version/resource.c +++ b/dlls/version/resource.c @@ -196,7 +196,11 @@ static BOOL find_ne_resource( HFILE lzfd, DWORD *resLen, DWORD *resOff ) */ static BOOL find_pe_resource( HFILE lzfd, DWORD *resLen, DWORD *resOff ) { - IMAGE_NT_HEADERS pehd; + union + { + IMAGE_NT_HEADERS32 nt32; + IMAGE_NT_HEADERS64 nt64; + } pehd; DWORD pehdoffset; PIMAGE_DATA_DIRECTORY resDataDir; PIMAGE_SECTION_HEADER sections; @@ -205,14 +209,27 @@ static BOOL find_pe_resource( HFILE lzfd, DWORD *resLen, DWORD *resOff ) const void *resDir; const IMAGE_RESOURCE_DIRECTORY *resPtr; const IMAGE_RESOURCE_DATA_ENTRY *resData; - int i, nSections; + int i, len, nSections; BOOL ret = FALSE; /* Read in PE header */ pehdoffset = LZSeek( lzfd, 0, SEEK_CUR ); - if ( sizeof(pehd) != LZRead( lzfd, (LPSTR)&pehd, sizeof(pehd) ) ) return 0; + len = LZRead( lzfd, (LPSTR)&pehd, sizeof(pehd) ); + if (len < sizeof(pehd.nt32.FileHeader)) return 0; + if (len < sizeof(pehd)) memset( (char *)&pehd + len, 0, sizeof(pehd) - len ); + + switch (pehd.nt32.OptionalHeader.Magic) + { + case IMAGE_NT_OPTIONAL_HDR32_MAGIC: + resDataDir = pehd.nt32.OptionalHeader.DataDirectory + IMAGE_DIRECTORY_ENTRY_RESOURCE; + break; + case IMAGE_NT_OPTIONAL_HDR64_MAGIC: + resDataDir = pehd.nt64.OptionalHeader.DataDirectory + IMAGE_DIRECTORY_ENTRY_RESOURCE; + break; + default: + return 0; + } - resDataDir = pehd.OptionalHeader.DataDirectory+IMAGE_DIRECTORY_ENTRY_RESOURCE; if ( !resDataDir->Size ) { TRACE("No resources in PE dll\n" ); @@ -220,15 +237,13 @@ static BOOL find_pe_resource( HFILE lzfd, DWORD *resLen, DWORD *resOff ) } /* Read in section table */ - nSections = pehd.FileHeader.NumberOfSections; + nSections = pehd.nt32.FileHeader.NumberOfSections; sections = HeapAlloc( GetProcessHeap(), 0, nSections * sizeof(IMAGE_SECTION_HEADER) ); if ( !sections ) return FALSE; - LZSeek( lzfd, pehdoffset + - sizeof(DWORD) + /* Signature */ - sizeof(IMAGE_FILE_HEADER) + - pehd.FileHeader.SizeOfOptionalHeader, SEEK_SET ); + len = FIELD_OFFSET( IMAGE_NT_HEADERS32, OptionalHeader ) + pehd.nt32.FileHeader.SizeOfOptionalHeader; + LZSeek( lzfd, pehdoffset + len, SEEK_SET ); if ( nSections * sizeof(IMAGE_SECTION_HEADER) != LZRead( lzfd, (LPSTR)sections, nSections * sizeof(IMAGE_SECTION_HEADER) ) )
1
0
0
0
Henri Verbeet : d3d8/tests: Add some message processing to test_wndproc().
by Alexandre Julliard
25 Mar '10
25 Mar '10
Module: wine Branch: master Commit: d11185a8906ac4bf0dc581e54b0f827abe5618f1 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=d11185a8906ac4bf0dc581e54…
Author: Henri Verbeet <hverbeet(a)codeweavers.com> Date: Thu Mar 25 09:32:40 2010 +0100 d3d8/tests: Add some message processing to test_wndproc(). Disabled testing the focus and foreground windows after creating the device for the moment. --- dlls/d3d8/tests/device.c | 29 +++++++++++++++++++++++------ 1 files changed, 23 insertions(+), 6 deletions(-) diff --git a/dlls/d3d8/tests/device.c b/dlls/d3d8/tests/device.c index c0e1985..cd2df9a 100644 --- a/dlls/d3d8/tests/device.c +++ b/dlls/d3d8/tests/device.c @@ -1525,8 +1525,19 @@ static DWORD WINAPI wndproc_thread(void *param) ret = SetEvent(p->window_created); ok(ret, "SetEvent failed, last error %#x.\n", GetLastError()); - res = WaitForSingleObject(p->test_finished, INFINITE); - ok(res == WAIT_OBJECT_0, "Wait failed (%#x), last error %#x.\n", res, GetLastError()); + for (;;) + { + MSG msg; + + while (PeekMessage(&msg, 0, 0, 0, PM_REMOVE)) DispatchMessage(&msg); + res = WaitForSingleObject(p->test_finished, 100); + if (res == WAIT_OBJECT_0) break; + if (res != WAIT_TIMEOUT) + { + ok(0, "Wait failed (%#x), last error %#x.\n", res, GetLastError()); + break; + } + } DestroyWindow(p->dummy_window); @@ -1544,6 +1555,7 @@ static void test_wndproc(void) LONG_PTR proc; ULONG ref; DWORD res, tid; + MSG msg; if (!(d3d8 = pDirect3DCreate8(D3D_SDK_VERSION))) { @@ -1589,6 +1601,8 @@ static void test_wndproc(void) expect_message.window = focus_window; expect_message.message = WM_SETFOCUS; + while (PeekMessage(&msg, 0, 0, 0, PM_REMOVE)) DispatchMessage(&msg); + device = create_device(d3d8, device_window, focus_window, FALSE); if (!device) { @@ -1598,10 +1612,13 @@ static void test_wndproc(void) ok(!expect_message.message, "Expected message %#x for window %p, but didn't receive it.\n", expect_message.message, expect_message.window); - tmp = GetFocus(); - todo_wine ok(tmp == focus_window, "Expected focus %p, got %p.\n", focus_window, tmp); - tmp = GetForegroundWindow(); - todo_wine ok(tmp == focus_window, "Expected foreground window %p, got %p.\n", focus_window, tmp); + if (0) /* Disabled until we can make this work in a reliable way on Wine. */ + { + tmp = GetFocus(); + ok(tmp == focus_window, "Expected focus %p, got %p.\n", focus_window, tmp); + tmp = GetForegroundWindow(); + ok(tmp == focus_window, "Expected foreground window %p, got %p.\n", focus_window, tmp); + } SetForegroundWindow(focus_window); filter_messages = focus_window;
1
0
0
0
← Newer
1
...
22
23
24
25
26
27
28
...
92
Older →
Jump to page:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
Results per page:
10
25
50
100
200