wine-staging/patches/dxdiag-new-dlls/0010-dxapi.sys-add-stub-dll.patch
2021-03-19 14:27:44 +11:00

89 lines
2.9 KiB
Diff

From 338fc447537dd45e07a3c2d9ef8069af910c936f Mon Sep 17 00:00:00 2001
From: Austin English <austinenglish@gmail.com>
Date: Tue, 13 Oct 2020 04:42:03 -0500
Subject: [PATCH] dxapi.sys: add stub dll
Signed-off-by: Austin English <austinenglish@gmail.com>
---
configure.ac | 1 +
dlls/dxapi.sys/Makefile.in | 6 ++++++
dlls/dxapi.sys/dxapi.sys.spec | 7 +++++++
dlls/dxapi.sys/version.rc | 26 ++++++++++++++++++++++++++
4 files changed, 40 insertions(+)
create mode 100644 dlls/dxapi.sys/Makefile.in
create mode 100644 dlls/dxapi.sys/dxapi.sys.spec
create mode 100644 dlls/dxapi.sys/version.rc
diff --git a/configure.ac b/configure.ac
index d3cb3ed1fd6..86d6912b4e0 100644
--- a/configure.ac
+++ b/configure.ac
@@ -3274,6 +3274,7 @@ WINE_CONFIG_MAKEFILE(dlls/dwmapi/tests)
WINE_CONFIG_MAKEFILE(dlls/dwrite)
WINE_CONFIG_MAKEFILE(dlls/dwrite/tests)
WINE_CONFIG_MAKEFILE(dlls/dx8vb)
+WINE_CONFIG_MAKEFILE(dlls/dxapi.sys)
WINE_CONFIG_MAKEFILE(dlls/dxdiagn)
WINE_CONFIG_MAKEFILE(dlls/dxdiagn/tests)
WINE_CONFIG_MAKEFILE(dlls/dxerr8)
diff --git a/dlls/dxapi.sys/Makefile.in b/dlls/dxapi.sys/Makefile.in
new file mode 100644
index 00000000000..43259f950b5
--- /dev/null
+++ b/dlls/dxapi.sys/Makefile.in
@@ -0,0 +1,6 @@
+MODULE = dxapi.sys
+
+EXTRADLLFLAGS = -Wb,--prefer-native
+
+
+RC_SRCS = version.rc
diff --git a/dlls/dxapi.sys/dxapi.sys.spec b/dlls/dxapi.sys/dxapi.sys.spec
new file mode 100644
index 00000000000..05748b5fe59
--- /dev/null
+++ b/dlls/dxapi.sys/dxapi.sys.spec
@@ -0,0 +1,7 @@
+@ stub _DxApi@20
+@ stub _DxApiGetVersion@0
+@ stub _DxApiInitialize@32
+@ stub _DxAutoflipUpdate@20
+@ stub _DxEnableIRQ@8
+@ stub _DxLoseObject@8
+@ stub _DxUpdateCapture@12
diff --git a/dlls/dxapi.sys/version.rc b/dlls/dxapi.sys/version.rc
new file mode 100644
index 00000000000..7ecd1565052
--- /dev/null
+++ b/dlls/dxapi.sys/version.rc
@@ -0,0 +1,26 @@
+/*
+ * Copyright 2020 Austin English
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 2.1 of the License, or (at your option) any later version.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
+ */
+
+#define WINE_FILEDESCRIPTION_STR "Wine dxapi.sys"
+#define WINE_FILENAME_STR "dxapi.sys"
+#define WINE_FILEVERSION 5,0,2180,1
+#define WINE_FILEVERSION_STR "5.0.2180.1"
+#define WINE_PRODUCTVERSION 5,0,2180,1
+#define WINE_PRODUCTVERSION_STR "5.0.2180.1"
+
+#include "wine/wine_common_ver.rc"
--
2.30.1