xaudio2: Use the preprocessor to modify definitions in xaudio2.idl and xaudio2fx...
commit14c44d0b0a2fc0ead5bc75615864ff850a44c4d5
authorZebediah Figura <zfigura@codeweavers.com>
Mon, 24 Apr 2023 21:59:08 +0000 (24 16:59 -0500)
committerAlexandre Julliard <julliard@winehq.org>
Wed, 7 Jun 2023 20:48:27 +0000 (7 22:48 +0200)
tree3d4d925fe71c90b777269ffe3e8ce4b588460ef6
parentc80285ffb125071d599eec05751bec917672a8d4
xaudio2: Use the preprocessor to modify definitions in xaudio2.idl and xaudio2fx.idl.

Instead of including the IDLs directly, define a local IDL that #includes them,
with XAUDIO2_VER defined, and include that generated header.

Get rid of compat.c, and use XAUDIO2_VER to modify the code in the other source
files.

Build the tests for both xaudio2_7 and xaudio2_8 using PARENTSRC, and use
XAUDIO2_VER to select between them. This mirrors the approach taken for
d3dcompiler, and makes it easier to test more xaudio2 versions in the future.
28 files changed:
configure
configure.ac
dlls/xapofx1_1/Makefile.in
dlls/xapofx1_2/Makefile.in
dlls/xapofx1_3/Makefile.in
dlls/xapofx1_4/Makefile.in
dlls/xapofx1_5/Makefile.in
dlls/xaudio2_0/Makefile.in
dlls/xaudio2_1/Makefile.in
dlls/xaudio2_2/Makefile.in
dlls/xaudio2_3/Makefile.in
dlls/xaudio2_4/Makefile.in
dlls/xaudio2_5/Makefile.in
dlls/xaudio2_6/Makefile.in
dlls/xaudio2_7/Makefile.in
dlls/xaudio2_7/compat.c [deleted file]
dlls/xaudio2_7/tests/Makefile.in
dlls/xaudio2_7/tests/xaudio2.c
dlls/xaudio2_7/tests/xaudio_classes.idl [new file with mode: 0644]
dlls/xaudio2_7/xapo.c
dlls/xaudio2_7/xaudio_classes.idl
dlls/xaudio2_7/xaudio_dll.c
dlls/xaudio2_7/xaudio_private.h
dlls/xaudio2_8/Makefile.in
dlls/xaudio2_8/tests/Makefile.in [new file with mode: 0644]
dlls/xaudio2_9/Makefile.in
include/xaudio2.idl
include/xaudio2fx.idl