Prepare d3d10's place, set it's version information (try 3)

Kovács András andras at csevego.net
Mon Apr 23 17:14:24 CDT 2007


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 2ddc7d3337a89a231cb7544238ea374c2bfdb229 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, 24 Apr 2007 00:12:41 +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    |   37 +++++++++++++++++++++++++++++++++++++
 dlls/d3d10/d3d10_private.h |   38 ++++++++++++++++++++++++++++++++++++++
 dlls/d3d10/version.rc      |   26 ++++++++++++++++++++++++++
 8 files changed, 158 insertions(+), 0 deletions(-)

diff --git a/Makefile.in b/Makefile.in
index bd31162..c54ffa9 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 \
@@ -537,6 +538,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 1ea3ad2..5e8a91d 100644
--- a/configure.ac
+++ b/configure.ac
@@ -1520,6 +1520,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 1a07abf..3ebb528 100644
--- a/dlls/Makefile.in
+++ b/dlls/Makefile.in
@@ -42,6 +42,7 @@ BASEDIRS = \
 	ctl3d32 \
 	d3d8 \
 	d3d9 \
+	d3d10 \
 	d3dim \
 	d3drm \
 	d3dx8 \
@@ -478,6 +479,7 @@ IMPORT_LIBS = \
 	ctl3d32/libctl3d32.$(IMPLIBEXT) \
 	d3d8/libd3d8.$(IMPLIBEXT) \
 	d3d9/libd3d9.$(IMPLIBEXT) \
+	d3d10/libd3d10.$(IMPLIBEXT) \
 	d3dim/libd3dim.$(IMPLIBEXT) \
 	d3drm/libd3drm.$(IMPLIBEXT) \
 	d3dx8/libd3dx8.$(IMPLIBEXT) \
@@ -643,6 +645,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..54076ab
--- /dev/null
+++ b/dlls/d3d10/d3d10_main.c
@@ -0,0 +1,37 @@
+/*
+ * 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 "initguid.h"
+#include "d3d10_private.h"
+
+WINE_DEFAULT_DEBUG_CHANNEL(d3d10);
+
+
+/* At process attach */
+BOOL WINAPI DllMain(HINSTANCE hInstDLL, DWORD fdwReason, LPVOID lpv)
+{
+    TRACE("fdwReason=%d\n", fdwReason);
+    if (fdwReason == DLL_PROCESS_ATTACH)
+        DisableThreadLibraryCalls(hInstDLL);
+
+    return TRUE;
+}
diff --git a/dlls/d3d10/d3d10_private.h b/dlls/d3d10/d3d10_private.h
new file mode 100644
index 0000000..5a053df
--- /dev/null
+++ b/dlls/d3d10/d3d10_private.h
@@ -0,0 +1,38 @@
+/*
+ * Direct3D 10 private include file
+ *
+ * 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
+ */
+
+#ifndef __WINE_D3D10_PRIVATE_H
+#define __WINE_D3D10_PRIVATE_H
+
+#include <stdarg.h>
+
+#define NONAMELESSUNION
+#define NONAMELESSSTRUCT
+#define COBJMACROS
+#include "windef.h"
+#include "winbase.h"
+#include "wingdi.h"
+#include "winuser.h"
+#include "wine/debug.h"
+#include "wine/unicode.h"
+
+#include "wine/wined3d_interface.h"
+
+#endif /* __WINE_D3D10_PRIVATE_H */
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