Commit graph

2939 commits

Author SHA1 Message Date
Alexandre Julliard
42b0a3b917 configure: Enable printf format warnings for 64-bit PE builds. 2022-12-09 17:52:25 +01:00
Alexandre Julliard
79650e403b configure: Only require frame pointer on the MSVCRT side. 2022-12-09 17:52:25 +01:00
Alexandre Julliard
4091758b78 configure: Simplify checks for functions that require an external library. 2022-12-09 17:52:25 +01:00
Hans Leidekker
de026dbd8e wofutil: New dll. 2022-12-08 18:41:25 +01:00
Jacek Caban
6a3c382df0 configure: Use -Wl,-WX for clang configure checks in MSVC mode.
LLD by default emits only a warning for unknown arguments. This makes
it pass -Wl,--disable-stdcall-fixup check, which is in fact an invalid
option (and disabled by default anyway), causing warnings spam during
the build.
2022-12-06 17:04:50 +01:00
Alexandre Julliard
bef0969722 ntdll: Move the .so module initialization to winecrt0.
Use new ELF tag ids to avoid breaking backwards compatibility.
2022-12-04 22:00:43 +01:00
Alexandre Julliard
92520c6a1a configure: Remove obsolete AL/al.h check. 2022-12-02 11:04:46 +01:00
Brendan Shanks
9207927d95 configure: Remove SystemConfiguration header check (always present on macOS). 2022-12-02 11:04:46 +01:00
Brendan Shanks
c39e229163 configure: Remove Security.framework check (always present on macOS). 2022-12-02 11:04:46 +01:00
Brendan Shanks
6706784c33 configure: Remove Metal.framework check (present in all supported macOS SDKs). 2022-12-02 11:04:46 +01:00
Brendan Shanks
9645beb5c0 configure: Remove check for IOKit (always present on macOS). 2022-12-02 11:04:46 +01:00
Brendan Shanks
ab8103e0e3 configure: Remove check for the HID Manager (always present on macOS). 2022-12-02 11:04:45 +01:00
Brendan Shanks
c8f9ee0bf0 configure: Remove DiskArbitration.framework check (always present on macOS). 2022-12-02 11:04:45 +01:00
Brendan Shanks
8b415f8bb5 configure: Remove CoreAudio.h check (always present on macOS). 2022-12-02 11:04:45 +01:00
Brendan Shanks
40baab6444 configure: Remove Carbon.framework check (always present on macOS). 2022-12-02 11:04:45 +01:00
Brendan Shanks
650b6a9fc4 configure: Remove ApplicationServices.framework check (always present on macOS). 2022-12-02 11:04:45 +01:00
Brendan Shanks
87eb0a544a configure: Always enable Mac driver on macOS. 2022-12-02 11:04:45 +01:00
Jacek Caban
eaae51b11c configure: Use -fuse-ld=lld also for compilation targets.
This is used by clang to distinguish between MSVC and windows-itanium
targets. We override default option (usually meant for native builds)
to make sure that we use the right target.
2022-11-28 21:01:55 +01:00
Paul Gofman
25c52eb764 xinputuap.dll: Add new dll.
Based on a patch by Yusuf Khan <yusisamerican@gmail.com>.

Required for Halo Infinite.
2022-11-22 18:27:31 +01:00
Alexandre Julliard
5884e98fbe configure: Don't rename the loader to wine64 for multi-arch builds. 2022-11-22 18:27:30 +01:00
Piotr Caban
b7d7b23a61 winprint: Add stub dll. 2022-11-21 18:03:53 +01:00
Mohamad Al-Jaf
e0aca838c8 windows.media: Add stub DLL. 2022-11-21 13:00:32 +01:00
Zebediah Figura
c7a97b5d5d configure: Override PKG_CONFIG_LIBDIR instead of PKG_CONFIG_PATH for 32-bit builds on 64-bit hosts.
This allows 32-bit packages to be found when the user has specified
PKG_CONFIG_PATH for some other reason.

This also mirrors the way e.g. i686-linux-gnu-pkg-config is implemented on
Debian, and possibly other distributions as well.

This also prevents 64-bit .pc files from being found. This was originally
intended as a benefit [1], but can contribute to misdetection of headers which
are not actually multiarch (e.g. GStreamer, although at the time that [1] was
written that was a preëxisting problem). In general a distribution which
provides .pc files for one architecture should be expected to provide them for
any architecture that it actually provides libraries for; even if that was not
true of Debian in 2017, it is now. I moreover assert it is better to fail to
find a present library than to incorrectly find the wrong one.

Note that we can't easily use i686-linux-gnu-pkg-config, as would otherwise be
preferable, for reasons also described in [1].

[1] https://www.winehq.org/pipermail/wine-devel/2017-June/118002.html
2022-11-18 12:13:45 +01:00
Brendan Shanks
63bf2677ed configure: On macOS, build the loader targeting 10.7 when preloader is used.
Building the loader targeting 10.7 (to generate an LC_UNIXTHREAD binary)
seems to fix an issue in the Mac driver with 10.13 and earlier where
window layers wouldn't update correctly.

Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=52354
2022-11-17 10:23:51 +01:00
Zhiyi Zhang
b6818e2c20 explorer/tests: Add taskbar tests. 2022-11-17 10:00:24 +01:00
Alexandre Julliard
266c97107b configure: Skip the rest of the PE checks if the cross-compiler isn't detected.
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=53923
2022-11-15 21:21:27 +01:00
Hans Leidekker
d08d6f5104 wldap32: Use the bundled liblber and libldap. 2022-11-15 21:21:27 +01:00
Hans Leidekker
02e52db7aa libs: Import code from upstream openldap 2.5.13.
Minimal set of files to compile libldap and liblber client libraries.
2022-11-15 21:21:27 +01:00
Erich E. Hoover
71afae901f ntdll: Add support for FreeBSD style extended attributes.
Signed-off-by: Joel Holdsworth <joel@airwebreathe.org.uk>
2022-11-14 13:17:31 +01:00
Alexandre Julliard
463af41f9c configure: Don't use LDFLAGS to initialize PE flags.
Essentially reapply c7bd6865e7 which
was lost in b1f59bc679.
2022-11-14 13:13:01 +01:00
Alexandre Julliard
45eca854c4 openal32: Remove dll.
It's not part of Windows, so applications have to ship the native
version anyway.
2022-11-09 21:23:41 +01:00
Mohamad Al-Jaf
21ae94d437 certutil: Add stub program.
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=53086
2022-11-07 21:16:10 +01:00
Mohamad Al-Jaf
82e8d6036f setx: Add stub program.
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=53755
2022-11-07 21:16:10 +01:00
Paul Gofman
dde251a008 windows.gaming.ui.gamebar: Add stub DLL. 2022-11-04 19:23:56 +01:00
Alexandre Julliard
b1f59bc679 makefiles: Add support for multiple PE architectures. 2022-11-01 10:29:49 +01:00
Alexandre Julliard
37910bebfd configure: Remove no longer needed check for dlltool. 2022-10-31 20:41:44 +01:00
Alexandre Julliard
efa6b9f647 d2d1: Use a gcc pragma instead of a compiler flag for -fexcess-precision.
This will be needed to support building multiple architectures from
the same tree.
2022-10-14 18:03:25 +02:00
Erich E. Hoover
1cd1a28670 ntdll: Implement retrieving DOS attributes in [fd_]get_file_info().
Co-authored-by: Joel Holdsworth <joel@airwebreathe.org.uk>
Signed-off-by: Joel Holdsworth <joel@airwebreathe.org.uk>
2022-10-10 12:23:14 +02:00
Nikolay Sivov
09cb9cd1c6 cryptowinrt: Add a stub module.
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
2022-09-20 09:28:35 +02:00
Nikolay Sivov
0f25fadb14 threadpoolwinrt: Add initial implementation of RunAsync.
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
2022-09-20 09:26:11 +02:00
Nikolay Sivov
511be2e86d threadpoolwinrt: Add a stub module.
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
2022-09-20 09:26:08 +02:00
Shaun Ren
6d2a9af43b msvcrt: Fix strncmp return value.
Some programs, such as Final Fantasy IV (3D remake), expect strncmp
to return exactly +/-1 when the strings are not equal.

Signed-off-by: Shaun Ren <sren@codeweavers.com>
2022-09-19 20:12:32 +02:00
Julian Klemann
b03c2d959e windows.devices.enumeration/tests: Add test for Stopped DeviceWatcher event.
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=53328
2022-09-14 22:38:35 +02:00
Alexandre Julliard
8b7baa1128 configure: Use --disable-stdcall-fixup for all PE builds. 2022-09-12 12:46:25 +02:00
Piotr Caban
852bbe6d54 compstui: Add CommonPropertySheetUI tests. 2022-08-17 19:23:12 +02:00
Nikolay Sivov
ed7762c1fa mfsrcsnk/wave: Add a sink stub.
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
2022-08-15 18:14:04 +02:00
Nikolay Sivov
73d6ca6e1e mfsrcsnk: Add a stub dll.
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
2022-08-15 18:14:01 +02:00
Martin Storsjö
59b5b79c0c configure: Downgrade -Wincompatible-function-pointer-types to a warning on ARM.
Clang 16 is defaulting -Wincompatible-function-pointer-types to
an error instead of a warning. This isn't an issue for most of Wine,
but the error shows up in a lot of cases if doing a non-PE build for
ARM (32 bit, 64 has no such issues), in particular around the integration
of libxml2 and faudio.

The root cause of the issue is that some functions are specified with
e.g. __attribute__((pcs("aapcs-vfp"))) - which is equal to the
default calling convention when compiling with -mfloat-abi=hard - but
Clang's warning doesn't treat such function pointers as equal. (This
could maybe be considered a bug or limitation in Clang though.)

There's also some smaller amount of cases where our attributes
actually do conflict, where we mix __attribute__((pcs("aapcs"))), i.e.
arm softfloat calling convention, with the default calling convention
(which is set to hardfloat), but they drown in the noise from the
other ones.

Therefore, on arm, try to downgrade this diagnostic back to a warning,
not an error - while keeping the warnings visible.

Signed-off-by: Martin Storsjö <martin@martin.st>
2022-08-15 18:13:23 +02:00
Zebediah Figura
c94be0460c wined3d: Redirect vkd3d log output to the Unix stderr. 2022-07-22 19:58:09 +02:00
Zhiyi Zhang
5739db59d4 atl: Avoid NULL pointer reference in AtlComModuleGetClassObject().
Signed-off-by: Zhiyi Zhang <zzhang@codeweavers.com>
2022-07-07 19:10:02 +02:00