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
Andrew Eikum : mshtml: Fix typo determining if channel is HTTP.
by Alexandre Julliard
22 Mar '10
22 Mar '10
Module: wine Branch: master Commit: 341ba18d75d94fb846f6f46d03bfd2e8131da6c5 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=341ba18d75d94fb846f6f46d0…
Author: Andrew Eikum <aeikum(a)codeweavers.com> Date: Fri Mar 19 15:57:26 2010 -0500 mshtml: Fix typo determining if channel is HTTP. --- dlls/mshtml/nsio.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/dlls/mshtml/nsio.c b/dlls/mshtml/nsio.c index 88a4e55..4610bbc 100644 --- a/dlls/mshtml/nsio.c +++ b/dlls/mshtml/nsio.c @@ -307,7 +307,7 @@ static void set_uri_window(nsWineURI *This, HTMLWindow *window) static inline BOOL is_http_channel(nsChannel *This) { - return This->url_scheme == URL_SCHEME_HTTP || This->url_scheme == URL_SCHEME_HTTP; + return This->url_scheme == URL_SCHEME_HTTP || This->url_scheme == URL_SCHEME_HTTPS; } #define NSCHANNEL_THIS(iface) DEFINE_THIS(nsChannel, HttpChannel, iface)
1
0
0
0
Vincent Povirk : windowscodecs: Make the IWICPalette implementation thread-safe.
by Alexandre Julliard
22 Mar '10
22 Mar '10
Module: wine Branch: master Commit: 8255df56984a7178a7a703b838bf3cf7ca17a1cd URL:
http://source.winehq.org/git/wine.git/?a=commit;h=8255df56984a7178a7a703b83…
Author: Vincent Povirk <vincent(a)codeweavers.com> Date: Fri Mar 19 13:17:29 2010 -0500 windowscodecs: Make the IWICPalette implementation thread-safe. --- dlls/windowscodecs/palette.c | 21 +++++++++++++++++++++ 1 files changed, 21 insertions(+), 0 deletions(-) diff --git a/dlls/windowscodecs/palette.c b/dlls/windowscodecs/palette.c index 842d3b5..40ab190 100644 --- a/dlls/windowscodecs/palette.c +++ b/dlls/windowscodecs/palette.c @@ -40,6 +40,7 @@ typedef struct { UINT count; WICColor *colors; WICBitmapPaletteType type; + CRITICAL_SECTION lock; /* must be held when count, colors, or type is accessed */ } PaletteImpl; static HRESULT WINAPI PaletteImpl_QueryInterface(IWICPalette *iface, REFIID iid, @@ -83,6 +84,8 @@ static ULONG WINAPI PaletteImpl_Release(IWICPalette *iface) if (ref == 0) { + This->lock.DebugInfo->Spare[0] = 0; + DeleteCriticalSection(&This->lock); HeapFree(GetProcessHeap(), 0, This->colors); HeapFree(GetProcessHeap(), 0, This); } @@ -117,10 +120,12 @@ static HRESULT WINAPI PaletteImpl_InitializeCustom(IWICPalette *iface, memcpy(new_colors, pColors, sizeof(WICColor) * colorCount); } + EnterCriticalSection(&This->lock); HeapFree(GetProcessHeap(), 0, This->colors); This->colors = new_colors; This->count = colorCount; This->type = WICBitmapPaletteTypeCustom; + LeaveCriticalSection(&This->lock); return S_OK; } @@ -148,7 +153,9 @@ static HRESULT WINAPI PaletteImpl_GetType(IWICPalette *iface, if (!pePaletteType) return E_INVALIDARG; + EnterCriticalSection(&This->lock); *pePaletteType = This->type; + LeaveCriticalSection(&This->lock); return S_OK; } @@ -161,7 +168,9 @@ static HRESULT WINAPI PaletteImpl_GetColorCount(IWICPalette *iface, UINT *pcCoun if (!pcCount) return E_INVALIDARG; + EnterCriticalSection(&This->lock); *pcCount = This->count; + LeaveCriticalSection(&This->lock); return S_OK; } @@ -175,12 +184,16 @@ static HRESULT WINAPI PaletteImpl_GetColors(IWICPalette *iface, UINT colorCount, if (!pColors || !pcActualColors) return E_INVALIDARG; + EnterCriticalSection(&This->lock); + if (This->count < colorCount) colorCount = This->count; memcpy(pColors, This->colors, sizeof(WICColor) * colorCount); *pcActualColors = colorCount; + LeaveCriticalSection(&This->lock); + return S_OK; } @@ -192,10 +205,12 @@ static HRESULT WINAPI PaletteImpl_IsBlackWhite(IWICPalette *iface, BOOL *pfIsBla if (!pfIsBlackWhite) return E_INVALIDARG; + EnterCriticalSection(&This->lock); if (This->type == WICBitmapPaletteTypeFixedBW) *pfIsBlackWhite = TRUE; else *pfIsBlackWhite = FALSE; + LeaveCriticalSection(&This->lock); return S_OK; } @@ -208,6 +223,7 @@ static HRESULT WINAPI PaletteImpl_IsGrayscale(IWICPalette *iface, BOOL *pfIsGray if (!pfIsGrayscale) return E_INVALIDARG; + EnterCriticalSection(&This->lock); switch(This->type) { case WICBitmapPaletteTypeFixedBW: @@ -219,6 +235,7 @@ static HRESULT WINAPI PaletteImpl_IsGrayscale(IWICPalette *iface, BOOL *pfIsGray default: *pfIsGrayscale = FALSE; } + LeaveCriticalSection(&This->lock); return S_OK; } @@ -234,12 +251,14 @@ static HRESULT WINAPI PaletteImpl_HasAlpha(IWICPalette *iface, BOOL *pfHasAlpha) *pfHasAlpha = FALSE; + EnterCriticalSection(&This->lock); for (i=0; i<This->count; i++) if ((This->colors[i]&0xff000000) != 0xff000000) { *pfHasAlpha = TRUE; break; } + LeaveCriticalSection(&This->lock); return S_OK; } @@ -272,6 +291,8 @@ HRESULT PaletteImpl_Create(IWICPalette **palette) This->count = 0; This->colors = NULL; This->type = WICBitmapPaletteTypeCustom; + InitializeCriticalSection(&This->lock); + This->lock.DebugInfo->Spare[0] = (DWORD_PTR)(__FILE__ ": PaletteImpl.lock"); *palette = (IWICPalette*)This;
1
0
0
0
Vincent Povirk : include: Add definition for IWICBitmapClipper.
by Alexandre Julliard
22 Mar '10
22 Mar '10
Module: wine Branch: master Commit: 79662e2aa4a779ee0c749379779915c1ff909d5a URL:
http://source.winehq.org/git/wine.git/?a=commit;h=79662e2aa4a779ee0c7493797…
Author: Vincent Povirk <vincent(a)codeweavers.com> Date: Fri Mar 19 13:06:57 2010 -0500 include: Add definition for IWICBitmapClipper. --- include/wincodec.idl | 12 +++++++++++- 1 files changed, 11 insertions(+), 1 deletions(-) diff --git a/include/wincodec.idl b/include/wincodec.idl index 1bcb2cd..b1fb41a 100644 --- a/include/wincodec.idl +++ b/include/wincodec.idl @@ -178,7 +178,6 @@ cpp_quote("#define WINCODEC_ERR_UNSUPPORTEDOPERATION 0x88982f81") cpp_quote("#define WINCODEC_ERR_INSUFFICIENTBUFFER 0x88982f8c") interface IWICPalette; -interface IWICBitmapClipper; interface IWICBitmapFlipRotator; interface IWICColorContext; interface IWICColorTransform; @@ -645,6 +644,17 @@ interface IWICBitmapScaler : IWICBitmapSource [in] WICBitmapInterpolationMode mode); } +[ + object, + uuid(e4fbcf03-223d-4e81-9333-d635556dd1b5) +] +interface IWICBitmapClipper : IWICBitmapSource +{ + HRESULT Initialize( + [in] IWICBitmapSource *pISource, + [in] const WICRect *prc); +} + cpp_quote("DEFINE_GUID(CLSID_WICImagingFactory, 0xcacaf262,0x9370,0x4615,0xa1,0x3b,0x9f,0x55,0x39,0xda,0x4c,0x0a);") [
1
0
0
0
Vincent Povirk : oleaut32: Allow named args to be combined with positional args in fnInvoke.
by Alexandre Julliard
22 Mar '10
22 Mar '10
Module: wine Branch: master Commit: 8ff7238adeff518fced37159a4b5a17b9551f4dc URL:
http://source.winehq.org/git/wine.git/?a=commit;h=8ff7238adeff518fced37159a…
Author: Vincent Povirk <vincent(a)codeweavers.com> Date: Fri Mar 19 11:53:26 2010 -0500 oleaut32: Allow named args to be combined with positional args in fnInvoke. --- dlls/oleaut32/tests/tmarshal.c | 26 ++++++++++++++++++++++++++ dlls/oleaut32/tests/tmarshal.idl | 3 +++ dlls/oleaut32/tests/tmarshal_dispids.h | 1 + dlls/oleaut32/typelib.c | 8 +++++--- 4 files changed, 35 insertions(+), 3 deletions(-) diff --git a/dlls/oleaut32/tests/tmarshal.c b/dlls/oleaut32/tests/tmarshal.c index 64b6633..f7df82f 100644 --- a/dlls/oleaut32/tests/tmarshal.c +++ b/dlls/oleaut32/tests/tmarshal.c @@ -603,6 +603,15 @@ static HRESULT WINAPI Widget_put_prop_opt_arg( return S_OK; } +static HRESULT WINAPI Widget_put_prop_req_arg( + IWidget* iface, INT req, INT i) +{ + trace("put_prop_req_arg(%08x, %08x)\n", req, i); + ok(req == 0x5678, "got req=%08x\n", req); + ok(i == 0x1234, "got i=%08x\n", i); + return S_OK; +} + static const struct IWidgetVtbl Widget_VTable = { Widget_QueryInterface, @@ -637,6 +646,7 @@ static const struct IWidgetVtbl Widget_VTable = Widget_get_prop_uint, Widget_ByRefUInt, Widget_put_prop_opt_arg, + Widget_put_prop_req_arg, }; static HRESULT WINAPI StaticWidget_QueryInterface(IStaticWidget *iface, REFIID riid, void **ppvObject) @@ -1410,6 +1420,22 @@ static void test_typelibmarshal(void) ok_ole_success(hr, ITypeInfo_Invoke); VariantClear(&varresult); + /* test propput with required argument. */ + VariantInit(&vararg[0]); + VariantInit(&vararg[1]); + V_VT(&vararg[0]) = VT_I4; + V_I4(&vararg[0]) = 0x1234; + V_VT(&vararg[1]) = VT_I4; + V_I4(&vararg[1]) = 0x5678; + dispparams.cNamedArgs = 1; + dispparams.rgdispidNamedArgs = &dispidNamed; + dispparams.cArgs = 2; + dispparams.rgvarg = vararg; + VariantInit(&varresult); + hr = IDispatch_Invoke(pDispatch, DISPID_TM_PROP_REQ_ARG, &IID_NULL, 0x40c, DISPATCH_PROPERTYPUT, &dispparams, &varresult, &excepinfo, NULL); + ok_ole_success(hr, ITypeInfo_Invoke); + VariantClear(&varresult); + IDispatch_Release(pDispatch); IWidget_Release(pWidget); diff --git a/dlls/oleaut32/tests/tmarshal.idl b/dlls/oleaut32/tests/tmarshal.idl index 077fb59..7616789 100644 --- a/dlls/oleaut32/tests/tmarshal.idl +++ b/dlls/oleaut32/tests/tmarshal.idl @@ -143,6 +143,9 @@ library TestTypelib [id(DISPID_TM_PROP_OPT_ARG), propput] HRESULT prop_opt_arg([in,optional] INT opt, [in] INT i); + + [id(DISPID_TM_PROP_REQ_ARG), propput] + HRESULT prop_req_arg([in] INT req, [in] INT i); } [ diff --git a/dlls/oleaut32/tests/tmarshal_dispids.h b/dlls/oleaut32/tests/tmarshal_dispids.h index a4f467e..376162b 100644 --- a/dlls/oleaut32/tests/tmarshal_dispids.h +++ b/dlls/oleaut32/tests/tmarshal_dispids.h @@ -39,6 +39,7 @@ #define DISPID_TM_PROP_UINT 20 #define DISPID_TM_BYREF_UINT 21 #define DISPID_TM_PROP_OPT_ARG 22 +#define DISPID_TM_PROP_REQ_ARG 23 #define DISPID_NOA_BSTRRET 1 #define DISPID_NOA_ERROR 2 diff --git a/dlls/oleaut32/typelib.c b/dlls/oleaut32/typelib.c index b09f7ab..c1fa321 100644 --- a/dlls/oleaut32/typelib.c +++ b/dlls/oleaut32/typelib.c @@ -6102,10 +6102,11 @@ static HRESULT WINAPI ITypeInfo_fnInvoke( continue; } + src_arg = NULL; + if (cNamedArgs) { USHORT j; - src_arg = NULL; for (j = 0; j < cNamedArgs; j++) if (rgdispidNamedArgs[j] == i || (i == func_desc->cParams-1 && rgdispidNamedArgs[j] == DISPID_PROPERTYPUT)) { @@ -6113,9 +6114,10 @@ static HRESULT WINAPI ITypeInfo_fnInvoke( break; } } - else + + if (!src_arg && vargs_converted + cNamedArgs < pDispParams->cArgs) { - src_arg = vargs_converted < pDispParams->cArgs ? &pDispParams->rgvarg[pDispParams->cArgs - 1 - vargs_converted] : NULL; + src_arg = &pDispParams->rgvarg[pDispParams->cArgs - 1 - vargs_converted]; vargs_converted++; }
1
0
0
0
Alexandre Julliard : winex11: Don' t make the owner window managed if its popup isn't.
by Alexandre Julliard
22 Mar '10
22 Mar '10
Module: wine Branch: master Commit: b6ef8a5944e36daabb30c0b14dd77d707093cec5 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=b6ef8a5944e36daabb30c0b14…
Author: Alexandre Julliard <julliard(a)winehq.org> Date: Sat Mar 20 20:16:42 2010 +0100 winex11: Don't make the owner window managed if its popup isn't. --- dlls/winex11.drv/window.c | 6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) diff --git a/dlls/winex11.drv/window.c b/dlls/winex11.drv/window.c index 46f677b..09820d3 100644 --- a/dlls/winex11.drv/window.c +++ b/dlls/winex11.drv/window.c @@ -997,7 +997,7 @@ static void set_initial_wm_hints( Display *display, struct x11drv_win_data *data * * Retrieve an owner's window, creating it if necessary. */ -static Window get_owner_whole_window( HWND owner ) +static Window get_owner_whole_window( HWND owner, BOOL force_managed ) { struct x11drv_win_data *data; @@ -1009,7 +1009,7 @@ static Window get_owner_whole_window( HWND owner ) !(data = X11DRV_create_win_data( owner ))) return (Window)GetPropA( owner, whole_window_prop ); } - else if (!data->managed) /* make it managed */ + else if (!data->managed && force_managed) /* make it managed */ { SetWindowPos( owner, 0, 0, 0, 0, 0, SWP_NOACTIVATE | SWP_NOZORDER | SWP_NOSIZE | SWP_NOMOVE | @@ -1045,7 +1045,7 @@ static void set_wm_hints( Display *display, struct x11drv_win_data *data ) style = GetWindowLongW( data->hwnd, GWL_STYLE ); ex_style = GetWindowLongW( data->hwnd, GWL_EXSTYLE ); owner = get_window_owner( data->hwnd ); - if ((owner_win = get_owner_whole_window( owner ))) group_leader = owner_win; + if ((owner_win = get_owner_whole_window( owner, data->managed ))) group_leader = owner_win; } wine_tsx11_lock();
1
0
0
0
Alexandre Julliard : makefiles: Generate all the top-level make rules inside the corresponding shell function .
by Alexandre Julliard
22 Mar '10
22 Mar '10
Module: wine Branch: master Commit: 03642414a84a14d9cd0efe143b2de9cf35a693a2 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=03642414a84a14d9cd0efe143…
Author: Alexandre Julliard <julliard(a)winehq.org> Date: Sat Mar 20 15:24:22 2010 +0100 makefiles: Generate all the top-level make rules inside the corresponding shell function. --- aclocal.m4 | 26 +++++++++---------- configure | 68 ++++++++++++++++++------------------------------- configure.ac | 20 +++++++------- tools/make_makefiles | 9 ++---- 4 files changed, 50 insertions(+), 73 deletions(-) Diff:
http://source.winehq.org/git/wine.git/?a=commitdiff;h=03642414a84a14d9cd0ef…
1
0
0
0
Alexandre Julliard : makefiles: Define the variables that are used by aclocal macros in aclocal too.
by Alexandre Julliard
22 Mar '10
22 Mar '10
Module: wine Branch: master Commit: 7d8311551261ad648e371a01c3470bde72efc163 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=7d8311551261ad648e371a01c…
Author: Alexandre Julliard <julliard(a)winehq.org> Date: Sat Mar 20 15:07:45 2010 +0100 makefiles: Define the variables that are used by aclocal macros in aclocal too. --- aclocal.m4 | 24 +++++++++++++++++++++--- configure | 18 +++++++++--------- configure.ac | 18 ------------------ 3 files changed, 30 insertions(+), 30 deletions(-) diff --git a/aclocal.m4 b/aclocal.m4 index ac03af2..328a345 100644 --- a/aclocal.m4 +++ b/aclocal.m4 @@ -140,7 +140,25 @@ dnl dnl Usage: AC_REQUIRE([WINE_CONFIG_HELPERS]) dnl AC_DEFUN([WINE_CONFIG_HELPERS], -[wine_fn_append_file () +[AC_SUBST(ALL_MAKEFILE_DEPENDS,["# Makefile dependencies"]) +AC_SUBST(ALL_WINETEST_DEPENDS,["# Test binaries"]) + +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_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,"") +AC_SUBST(ALL_PROGRAM_DIRS,"") +AC_SUBST(ALL_PROGRAM_BIN_INSTALL_DIRS,"") + +wine_fn_append_file () { AS_VAR_APPEND($[1]," \\$as_nl $[2]") } @@ -318,8 +336,8 @@ dnl **** Create a make rules file from config.status **** dnl dnl Usage: WINE_CONFIG_MAKERULES(file,var,deps) dnl -AC_DEFUN([WINE_CONFIG_MAKERULES], -[WINE_APPEND_FILE(ALL_MAKERULES,[$1]) +AC_DEFUN([WINE_CONFIG_MAKERULES],[AC_REQUIRE([WINE_CONFIG_HELPERS])dnl +WINE_APPEND_FILE(ALL_MAKERULES,[$1]) WINE_APPEND_RULE(ALL_MAKEFILE_DEPENDS,[$1: m4_ifval([$3],[$1.in $3],[$1.in]) config.status]) $2=$1 AC_SUBST_FILE([$2])dnl diff --git a/configure b/configure index 1ee7db2..346ec70 100755 --- a/configure +++ b/configure @@ -608,10 +608,10 @@ ALL_TOOL_DIRS ALL_DLL_DIRS ALL_TOP_DIRS ALL_DIRS -ALL_WINETEST_DEPENDS -ALL_MAKEFILE_DEPENDS ALL_SYMLINKS ALL_MAKERULES +ALL_WINETEST_DEPENDS +ALL_MAKEFILE_DEPENDS LDAPLIBS LIBPOLL LIBDL @@ -13778,15 +13778,20 @@ fi ;; esac -ALL_MAKERULES="" -ALL_SYMLINKS="" + +ac_config_commands="$ac_config_commands include/stamp-h" + ALL_MAKEFILE_DEPENDS="# Makefile dependencies" ALL_WINETEST_DEPENDS="# Test binaries" +ALL_MAKERULES="" + +ALL_SYMLINKS="" + ALL_DIRS="" ALL_TOP_DIRS="" @@ -13812,11 +13817,6 @@ ALL_PROGRAM_DIRS="" ALL_PROGRAM_BIN_INSTALL_DIRS="" - - -ac_config_commands="$ac_config_commands include/stamp-h" - - wine_fn_append_file () { as_fn_append $1 " \\$as_nl $2" diff --git a/configure.ac b/configure.ac index 55edefc..a22b984 100644 --- a/configure.ac +++ b/configure.ac @@ -2118,24 +2118,6 @@ esac dnl **** Generate output files **** -AC_SUBST(ALL_MAKERULES,"") -AC_SUBST(ALL_SYMLINKS,"") -AC_SUBST(ALL_MAKEFILE_DEPENDS,["# Makefile dependencies"]) -AC_SUBST(ALL_WINETEST_DEPENDS,["# Test binaries"]) - -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_STATIC_LIBS,"") -AC_SUBST(ALL_IMPORT_LIBS,"") -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,"") - AH_TOP([#define __WINE_CONFIG_H]) AC_CONFIG_COMMANDS([include/stamp-h], [echo timestamp > include/stamp-h])
1
0
0
0
Alexandre Julliard : makefiles: Add a configure macro for tools directories .
by Alexandre Julliard
22 Mar '10
22 Mar '10
Module: wine Branch: master Commit: d81a8f8d47731db79d3d2936cb8b15c97f6fe964 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=d81a8f8d47731db79d3d2936c…
Author: Alexandre Julliard <julliard(a)winehq.org> Date: Sat Mar 20 15:02:56 2010 +0100 makefiles: Add a configure macro for tools directories. --- aclocal.m4 | 24 +++++++++++++++++++++ configure | 55 ++++++++++++++++++++++++------------------------- configure.ac | 14 ++++++------ tools/make_makefiles | 3 +- 4 files changed, 60 insertions(+), 36 deletions(-) diff --git a/aclocal.m4 b/aclocal.m4 index f9c0b38..ac03af2 100644 --- a/aclocal.m4 +++ b/aclocal.m4 @@ -268,6 +268,23 @@ $ac_dir/__clean__ $ac_dir/__crosstest__ $ac_dir: $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]) +} + +wine_fn_config_tool () +{ + ac_dir=$[1] + ac_deps="Make.rules" + if test "$ac_dir" != tools + then + dnl makedep is in tools so tools makefile cannot depend on it + ac_deps="$ac_deps \$(MAKEDEP)" + 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/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]) }]) dnl **** Define helper function to append a file to a makefile file list **** @@ -360,6 +377,13 @@ dnl AC_DEFUN([WINE_CONFIG_LIB],[AC_REQUIRE([WINE_CONFIG_HELPERS])dnl wine_fn_config_lib $1]) +dnl **** Create a tool makefile from config.status **** +dnl +dnl Usage: WINE_CONFIG_TOOL(name) +dnl +AC_DEFUN([WINE_CONFIG_TOOL],[AC_REQUIRE([WINE_CONFIG_HELPERS])dnl +wine_fn_config_tool $1]) + dnl **** Add a message to the list displayed at the end **** dnl dnl Usage: WINE_NOTICE(notice) diff --git a/configure b/configure index 8cfccff..1ee7db2 100755 --- a/configure +++ b/configure @@ -13957,6 +13957,26 @@ else wine_fn_append_file ALL_TEST_DIRS $ac_dir fi } + +wine_fn_config_tool () +{ + ac_dir=$1 + ac_deps="Make.rules" + if test "$ac_dir" != tools + then + ac_deps="$ac_deps \$(MAKEDEP)" + 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/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 +fi +} ac_config_links="$ac_config_links dlls/wineps.drv/generic.ppd:dlls/wineps.drv/generic.ppd" test "$srcdir" = "." || wine_fn_append_file ALL_SYMLINKS "dlls/wineps.drv/generic.ppd" ac_config_links="$ac_config_links fonts/marlett.ttf:fonts/marlett.ttf" @@ -14569,27 +14589,13 @@ wine_fn_config_program xcopy enable_xcopy install wine_fn_config_makefile server "Make.rules \$(MAKEDEP)" test "x$enable_server" != xno && wine_fn_append_file ALL_TOP_DIRS "server" -wine_fn_config_makefile tools Make.rules -test "x$enable_tools" != xno && wine_fn_append_file ALL_TOOL_DIRS "tools" - -wine_fn_config_makefile tools/widl "Make.rules \$(MAKEDEP)" -test "x$enable_tools" != xno && wine_fn_append_file ALL_TOOL_DIRS "tools/widl" - -wine_fn_config_makefile tools/winebuild "Make.rules \$(MAKEDEP)" -test "x$enable_tools" != xno && wine_fn_append_file ALL_TOOL_DIRS "tools/winebuild" - -wine_fn_config_makefile tools/winedump "Make.rules \$(MAKEDEP)" -test "x$enable_tools" != xno && wine_fn_append_file ALL_TOOL_DIRS "tools/winedump" - -wine_fn_config_makefile tools/winegcc "Make.rules \$(MAKEDEP)" -test "x$enable_tools" != xno && wine_fn_append_file ALL_TOOL_DIRS "tools/winegcc" - -wine_fn_config_makefile tools/wmc "Make.rules \$(MAKEDEP)" -test "x$enable_tools" != xno && wine_fn_append_file ALL_TOOL_DIRS "tools/wmc" - -wine_fn_config_makefile tools/wrc "Make.rules \$(MAKEDEP)" -test "x$enable_tools" != xno && wine_fn_append_file ALL_TOOL_DIRS "tools/wrc" - +wine_fn_config_tool tools +wine_fn_config_tool tools/widl +wine_fn_config_tool tools/winebuild +wine_fn_config_tool tools/winedump +wine_fn_config_tool tools/winegcc +wine_fn_config_tool tools/wmc +wine_fn_config_tool tools/wrc test -n "$DLLEXT" || ALL_PROGRAM_BIN_INSTALL_DIRS="" @@ -15314,13 +15320,6 @@ do "loader/Makefile") CONFIG_FILES="$CONFIG_FILES loader/Makefile" ;; "programs/Makefile") CONFIG_FILES="$CONFIG_FILES programs/Makefile" ;; "server/Makefile") CONFIG_FILES="$CONFIG_FILES server/Makefile" ;; - "tools/Makefile") CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;; - "tools/widl/Makefile") CONFIG_FILES="$CONFIG_FILES tools/widl/Makefile" ;; - "tools/winebuild/Makefile") CONFIG_FILES="$CONFIG_FILES tools/winebuild/Makefile" ;; - "tools/winedump/Makefile") CONFIG_FILES="$CONFIG_FILES tools/winedump/Makefile" ;; - "tools/winegcc/Makefile") CONFIG_FILES="$CONFIG_FILES tools/winegcc/Makefile" ;; - "tools/wmc/Makefile") CONFIG_FILES="$CONFIG_FILES tools/wmc/Makefile" ;; - "tools/wrc/Makefile") CONFIG_FILES="$CONFIG_FILES tools/wrc/Makefile" ;; *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;; esac diff --git a/configure.ac b/configure.ac index 4ec7363..55edefc 100644 --- a/configure.ac +++ b/configure.ac @@ -2700,13 +2700,13 @@ WINE_CONFIG_PROGRAM(wordpad,install) WINE_CONFIG_PROGRAM(write,install) WINE_CONFIG_PROGRAM(xcopy,install) WINE_CONFIG_MAKEFILE([server/Makefile],[Make.rules],[ALL_TOP_DIRS]) -WINE_CONFIG_MAKEFILE([tools/Makefile],[Make.rules],[ALL_TOOL_DIRS],enable_tools) -WINE_CONFIG_MAKEFILE([tools/widl/Makefile],[Make.rules],[ALL_TOOL_DIRS],enable_tools) -WINE_CONFIG_MAKEFILE([tools/winebuild/Makefile],[Make.rules],[ALL_TOOL_DIRS],enable_tools) -WINE_CONFIG_MAKEFILE([tools/winedump/Makefile],[Make.rules],[ALL_TOOL_DIRS],enable_tools) -WINE_CONFIG_MAKEFILE([tools/winegcc/Makefile],[Make.rules],[ALL_TOOL_DIRS],enable_tools) -WINE_CONFIG_MAKEFILE([tools/wmc/Makefile],[Make.rules],[ALL_TOOL_DIRS],enable_tools) -WINE_CONFIG_MAKEFILE([tools/wrc/Makefile],[Make.rules],[ALL_TOOL_DIRS],enable_tools) +WINE_CONFIG_TOOL(tools) +WINE_CONFIG_TOOL(tools/widl) +WINE_CONFIG_TOOL(tools/winebuild) +WINE_CONFIG_TOOL(tools/winedump) +WINE_CONFIG_TOOL(tools/winegcc) +WINE_CONFIG_TOOL(tools/wmc) +WINE_CONFIG_TOOL(tools/wrc) dnl End of auto-generated output commands dnl Don't install in bin dir for Windows build diff --git a/tools/make_makefiles b/tools/make_makefiles index ed2278e..33fcbc0 100755 --- a/tools/make_makefiles +++ b/tools/make_makefiles @@ -392,7 +392,8 @@ sub update_makefiles(@) } elsif ($file =~ /^tools.*\/Makefile$/) { - push @lines, "WINE_CONFIG_MAKEFILE([$file],[$rules],[ALL_TOOL_DIRS],enable_tools)\n"; + (my $name = $file) =~ s/^(.*)\/Makefile/$1/; + push @lines, "WINE_CONFIG_TOOL($name)\n"; } elsif ($file =~ /^[^\/]*\/Makefile$/) {
1
0
0
0
Alexandre Julliard : makefiles: Generate all the program rules inside the corresponding shell function.
by Alexandre Julliard
22 Mar '10
22 Mar '10
Module: wine Branch: master Commit: d394e0420f5437cc502e47387c768402e0d5df14 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=d394e0420f5437cc502e47387…
Author: Alexandre Julliard <julliard(a)winehq.org> Date: Sat Mar 20 14:53:39 2010 +0100 makefiles: Generate all the program rules inside the corresponding shell function. --- aclocal.m4 | 21 +++- configure | 355 +++++++++++--------------------------------------- configure.ac | 112 ++++++++-------- tools/make_makefiles | 8 +- 4 files changed, 151 insertions(+), 345 deletions(-) Diff:
http://source.winehq.org/git/wine.git/?a=commitdiff;h=d394e0420f5437cc502e4…
1
0
0
0
Alexandre Julliard : makefiles: Generate all the dll rules inside the corresponding shell function.
by Alexandre Julliard
22 Mar '10
22 Mar '10
Module: wine Branch: master Commit: 5cdd84158c7d6a9dd392dfc6c438e57ebdc42f30 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=5cdd84158c7d6a9dd392dfc6c…
Author: Alexandre Julliard <julliard(a)winehq.org> Date: Sat Mar 20 14:52:44 2010 +0100 makefiles: Generate all the dll rules inside the corresponding shell function. --- aclocal.m4 | 29 +- configure | 2321 ++++++++++-------------------------------------------------- 2 files changed, 396 insertions(+), 1954 deletions(-) Diff:
http://source.winehq.org/git/wine.git/?a=commitdiff;h=5cdd84158c7d6a9dd392d…
1
0
0
0
← Newer
1
...
37
38
39
40
41
42
43
...
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