[1/7] Prepare d3d10's place set it's version information

Kovács András andras at csevego.net
Tue Jun 12 17:12:22 CDT 2007


[1/7] Prepare d3d10's place set it's version information
-- 
----------------------------
Kovács András (andras)
NetClub Vezető Rendszergazda
Lamarr
csevego.net
andras at csevego.net
----------------------------
-------------- next part --------------
From 24852a02244b5978d95298e7c039a1aab94cae0d Mon Sep 17 00:00:00 2001
From: =?utf-8?q?Andr=C3=A1s_Kov=C3=A1cs?= <andras at debian.sth.sze.hu>
Date: Tue, 12 Jun 2007 23:05:02 +0200
Subject: [PATCH] Prepare d3d10's place & set it's version information

---
 Makefile.in             |    2 +
 configure.ac            |    1 +
 dlls/Makefile.in        |    5 ++++
 dlls/d3d10/Makefile.in  |   17 ++++++++++++++++
 dlls/d3d10/d3d10.spec   |   32 +++++++++++++++++++++++++++++++
 dlls/d3d10/d3d10_main.c |   48 +++++++++++++++++++++++++++++++++++++++++++++++
 dlls/d3d10/version.rc   |   26 +++++++++++++++++++++++++
 7 files changed, 131 insertions(+), 0 deletions(-)

diff --git a/Makefile.in b/Makefile.in
index fbf9268..a149971 100644
--- a/Makefile.in
+++ b/Makefile.in
@@ -192,6 +192,7 @@ ALL_MAKEFILES = \
 	dlls/d3d8/Makefile \
 	dlls/d3d8/tests/Makefile \
 	dlls/d3d9/Makefile \
+	dlls/d3d10/Makefile \
 	dlls/d3d9/tests/Makefile \
 	dlls/d3dim/Makefile \
 	dlls/d3drm/Makefile \
@@ -546,6 +547,7 @@ dlls/d3d8/Makefile: dlls/d3d8/Makefile.in dlls/Makedll.rules
 dlls/d3d8/tests/Makefile: dlls/d3d8/tests/Makefile.in dlls/Maketest.rules
 dlls/d3d9/Makefile: dlls/d3d9/Makefile.in dlls/Makedll.rules
 dlls/d3d9/tests/Makefile: dlls/d3d9/tests/Makefile.in dlls/Maketest.rules
+dlls/d3d10/Makefile: dlls/d3d10/Makefile.in dlls/Makedll.rules
 dlls/d3dim/Makefile: dlls/d3dim/Makefile.in dlls/Makedll.rules
 dlls/d3drm/Makefile: dlls/d3drm/Makefile.in dlls/Makedll.rules
 dlls/d3drm/tests/Makefile: dlls/d3drm/tests/Makefile.in dlls/Maketest.rules
diff --git a/configure.ac b/configure.ac
index 72359fe..9f77d69 100644
--- a/configure.ac
+++ b/configure.ac
@@ -1476,6 +1476,7 @@ AC_CONFIG_FILES([dlls/d3d8/Makefile])
 AC_CONFIG_FILES([dlls/d3d8/tests/Makefile])
 AC_CONFIG_FILES([dlls/d3d9/Makefile])
 AC_CONFIG_FILES([dlls/d3d9/tests/Makefile])
+AC_CONFIG_FILES([dlls/d3d10/Makefile])
 AC_CONFIG_FILES([dlls/d3dim/Makefile])
 AC_CONFIG_FILES([dlls/d3drm/Makefile])
 AC_CONFIG_FILES([dlls/d3drm/tests/Makefile])
diff --git a/dlls/Makefile.in b/dlls/Makefile.in
index 9a56e3b..1658012 100644
--- a/dlls/Makefile.in
+++ b/dlls/Makefile.in
@@ -42,6 +42,7 @@ BASEDIRS = \
 	ctl3d32 \
 	d3d8 \
 	d3d9 \
+	d3d10 \
 	d3dim \
 	d3drm \
 	d3dx8 \
@@ -485,6 +486,7 @@ IMPORT_LIBS = \
 	ctl3d32/libctl3d32.$(IMPLIBEXT) \
 	d3d8/libd3d8.$(IMPLIBEXT) \
 	d3d9/libd3d9.$(IMPLIBEXT) \
+	d3d10/libd3d10.$(IMPLIBEXT) \
 	d3dim/libd3dim.$(IMPLIBEXT) \
 	d3drm/libd3drm.$(IMPLIBEXT) \
 	d3dx8/libd3dx8.$(IMPLIBEXT) \
@@ -653,6 +655,9 @@ d3d8/libd3d8.$(IMPLIBEXT): d3d8/d3d8.spec $(WINEBUILD)
 
 d3d9/libd3d9.$(IMPLIBEXT): d3d9/d3d9.spec $(WINEBUILD)
 	@cd d3d9 && $(MAKE) libd3d9.$(IMPLIBEXT)
+        
+d3d10/libd3d10.$(IMPLIBEXT): d3d10/d3d10.spec $(WINEBUILD)
+	@cd d3d10 && $(MAKE) libd3d10.$(IMPLIBEXT)
 
 d3dim/libd3dim.$(IMPLIBEXT): d3dim/d3dim.spec $(WINEBUILD)
 	@cd d3dim && $(MAKE) libd3dim.$(IMPLIBEXT)
diff --git a/dlls/d3d10/Makefile.in b/dlls/d3d10/Makefile.in
new file mode 100644
index 0000000..30f2b7a
--- /dev/null
+++ b/dlls/d3d10/Makefile.in
@@ -0,0 +1,17 @@
+TOPSRCDIR = @top_srcdir@
+TOPOBJDIR = ../..
+SRCDIR    = @srcdir@
+VPATH     = @srcdir@
+MODULE    = d3d10.dll
+IMPORTLIB = libd3d10.$(IMPLIBEXT)
+IMPORTS   = wined3d user32 gdi32 kernel32
+EXTRALIBS = -ldxguid -luuid
+
+C_SRCS = \
+	d3d10_main.c
+
+RC_SRCS = version.rc
+
+ at MAKE_DLL_RULES@
+
+ at DEPENDENCIES@  # everything below this line is overwritten by make depend
diff --git a/dlls/d3d10/d3d10.spec b/dlls/d3d10/d3d10.spec
new file mode 100644
index 0000000..221d19f
--- /dev/null
+++ b/dlls/d3d10/d3d10.spec
@@ -0,0 +1,32 @@
+@ stub D3D10CreateBlob
+@ stub D3D10CreateDevice
+@ stub D3D10CreateDeviceAndSwapChain
+
+@ stub D3D10CompileShader
+@ stub D3D10DisassembleShader
+@ stub D3D10GetGeometryShaderProfile
+@ stub D3D10GetInputAndOutputSignatureBlob
+@ stub D3D10GetInputSignatureBlob
+@ stub D3D10GetOutputSignatureBlob
+@ stub D3D10GetPixelShaderProfile
+@ stub D3D10GetShaderDebugInfo
+@ stub D3D10GetVertexShaderProfile
+@ stub D3D10PreprocessShader
+@ stub D3D10ReflectShader
+
+@ stub D3D10CompileEffectFromMemory
+@ stub D3D10CreateEffectFromMemory
+@ stub D3D10CreateEffectPoolFromMemory
+@ stub D3D10CreateStateBlock
+@ stub D3D10DisassembleEffect
+@ stub D3D10StateBlockMaskDifference
+@ stub D3D10StateBlockMaskDisableAll
+@ stub D3D10StateBlockMaskDisableCapture
+@ stub D3D10StateBlockMaskEnableAll
+@ stub D3D10StateBlockMaskEnableCapture
+@ stub D3D10StateBlockMaskGetSetting
+@ stub D3D10StateBlockMaskIntersect
+@ stub D3D10StateBlockMaskUnion
+
+@ stub D3D10GetVersion
+@ stub D3D10RegisterLayers
diff --git a/dlls/d3d10/d3d10_main.c b/dlls/d3d10/d3d10_main.c
new file mode 100644
index 0000000..333eac4
--- /dev/null
+++ b/dlls/d3d10/d3d10_main.c
@@ -0,0 +1,48 @@
+/*
+ * Direct3D 10
+ *
+ * Copyright 2007 Andras Kovacs
+ *
+ * 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
+ *
+ */
+
+#include "config.h"
+#include <stdarg.h>
+#include "initguid.h"
+
+#include "windef.h"
+#include "winbase.h"
+#include "winuser.h"
+#include "wine/debug.h"
+
+
+WINE_DEFAULT_DEBUG_CHANNEL(d3d10);
+
+
+/* At process attach */
+BOOL WINAPI DllMain(HINSTANCE hInstDLL, DWORD fdwReason, LPVOID lpv)
+{
+    TRACE("fdwReason=%d\n", fdwReason);
+    switch(fdwReason)
+    {
+    case DLL_WINE_PREATTACH:
+        return FALSE;  /* prefer native version */
+    case DLL_PROCESS_ATTACH:
+        DisableThreadLibraryCalls( hInstDLL );
+        break;
+    }
+    return TRUE;
+}
diff --git a/dlls/d3d10/version.rc b/dlls/d3d10/version.rc
new file mode 100644
index 0000000..4811325
--- /dev/null
+++ b/dlls/d3d10/version.rc
@@ -0,0 +1,26 @@
+/*
+ * Copyright 2007 Andras Kovacs
+ *
+ * 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 Direct3D"
+#define WINE_FILENAME_STR "d3d10.dll"
+#define WINE_FILEVERSION 6,0,6000,16386
+#define WINE_FILEVERSION_STR "6.0.6000.16386"
+#define WINE_PRODUCTVERSION 6,0,6000,16386
+#define WINE_PRODUCTVERSION_STR "6.0.6000.16386"
+
+#include "wine/wine_common_ver.rc"
-- 
1.4.4.4



More information about the wine-patches mailing list