[2/5] d3dcompiler_40: Stub dll.
Matteo Bruni
matteo.mystral at gmail.com
Mon Aug 16 16:30:10 CDT 2010
-------------- next part --------------
From 9bbe448382a16ced6bd78128c36030e0f32092b3 Mon Sep 17 00:00:00 2001
From: Matteo Bruni <matteo.mystral at gmail.com>
Date: Wed, 28 Jul 2010 04:09:13 +0200
Subject: d3dcompiler_40: Stub dll.
---
dlls/d3dcompiler_40/Makefile.in | 12 ++++++++
dlls/d3dcompiler_40/d3dcompiler_40.spec | 12 ++++++++
dlls/d3dcompiler_40/d3dcompiler_40_main.c | 44 +++++++++++++++++++++++++++++
dlls/d3dcompiler_40/version.rc | 27 +++++++++++++++++
4 files changed, 95 insertions(+), 0 deletions(-)
create mode 100644 dlls/d3dcompiler_40/Makefile.in
create mode 100644 dlls/d3dcompiler_40/d3dcompiler_40.spec
create mode 100644 dlls/d3dcompiler_40/d3dcompiler_40_main.c
create mode 100644 dlls/d3dcompiler_40/version.rc
diff --git a/dlls/d3dcompiler_40/Makefile.in b/dlls/d3dcompiler_40/Makefile.in
new file mode 100644
index 0000000..4fa8e16
--- /dev/null
+++ b/dlls/d3dcompiler_40/Makefile.in
@@ -0,0 +1,12 @@
+TOPSRCDIR = @top_srcdir@
+TOPOBJDIR = ../..
+SRCDIR = @srcdir@
+VPATH = @srcdir@
+MODULE = d3dcompiler_40.dll
+
+C_SRCS = \
+ d3dcompiler_40_main.c
+
+RC_SRCS = version.rc
+
+ at MAKE_DLL_RULES@
diff --git a/dlls/d3dcompiler_40/d3dcompiler_40.spec b/dlls/d3dcompiler_40/d3dcompiler_40.spec
new file mode 100644
index 0000000..858600e
--- /dev/null
+++ b/dlls/d3dcompiler_40/d3dcompiler_40.spec
@@ -0,0 +1,12 @@
+@ stub DebugSetMute
+@ stdcall D3DCompile(ptr long str ptr ptr str str long long ptr ptr) d3dcompiler_43.D3DCompile
+@ stdcall D3DDisassemble10Effect(ptr long ptr) d3dcompiler_43.D3DDisassemble10Effect
+@ stdcall D3DDisassemble(ptr long long ptr ptr) d3dcompiler_43.D3DDisassemble
+@ stdcall D3DGetDebugInfo(ptr long ptr) d3dcompiler_43.D3DGetDebugInfo
+@ stdcall D3DGetInputAndOutputSignatureBlob(ptr long ptr) d3dcompiler_43.D3DGetInputAndOutputSignatureBlob
+@ stdcall D3DGetInputSignatureBlob(ptr long ptr) d3dcompiler_43.D3DGetInputSignatureBlob
+@ stdcall D3DGetOutputSignatureBlob(ptr long ptr) d3dcompiler_43.D3DGetOutputSignatureBlob
+@ stdcall D3DPreprocess(ptr long str ptr ptr ptr ptr) d3dcompiler_43.D3DPreprocess
+@ stdcall D3DReflect(ptr long ptr ptr) d3dcompiler_43.D3DReflect
+@ stub D3DReturnFailure1
+@ stdcall D3DStripShader(ptr long long ptr) d3dcompiler_43.D3DStripShader
diff --git a/dlls/d3dcompiler_40/d3dcompiler_40_main.c b/dlls/d3dcompiler_40/d3dcompiler_40_main.c
new file mode 100644
index 0000000..c4745ee
--- /dev/null
+++ b/dlls/d3dcompiler_40/d3dcompiler_40_main.c
@@ -0,0 +1,44 @@
+/*
+ * Direct3D shader compiler main file
+ *
+ * Copyright 2010 Matteo Bruni for CodeWeavers
+ *
+ * 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 "wine/port.h"
+
+#include <stdarg.h>
+
+#include "windef.h"
+#include "winbase.h"
+
+BOOL WINAPI DllMain(HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpvReserved)
+{
+ switch (fdwReason)
+ {
+ case DLL_WINE_PREATTACH:
+ return FALSE; /* prefer native version */
+ case DLL_PROCESS_ATTACH:
+ DisableThreadLibraryCalls(hinstDLL);
+ break;
+ case DLL_PROCESS_DETACH:
+ break;
+ }
+
+ return TRUE;
+}
diff --git a/dlls/d3dcompiler_40/version.rc b/dlls/d3dcompiler_40/version.rc
new file mode 100644
index 0000000..8ddf001
--- /dev/null
+++ b/dlls/d3dcompiler_40/version.rc
@@ -0,0 +1,27 @@
+/*
+ * Copyright 2010 Matteo Bruni for CodeWeavers
+ *
+ * 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 D3DCompiler"
+#define WINE_FILENAME_STR "d3dcompiler_40.dll"
+#define WINE_FILEVERSION 9,24,950,2656
+#define WINE_FILEVERSION_STR "9.24.950.2656"
+#define WINE_PRODUCTVERSION 9,24,950,2656
+#define WINE_PRODUCTVERSION_STR "9.24.950.2656"
+
+#include "wine/wine_common_ver.rc"
--
1.7.1
More information about the wine-patches
mailing list