d3dcompiler_39: Stub dll.
authorMatteo Bruni <matteo.mystral@gmail.com>
Wed, 28 Jul 2010 02:31:18 +0000 (04:31 +0200)
committerAlexandre Julliard <julliard@winehq.org>
Tue, 17 Aug 2010 10:40:45 +0000 (12:40 +0200)
configure
configure.ac
dlls/d3dcompiler_39/Makefile.in [new file with mode: 0644]
dlls/d3dcompiler_39/d3dcompiler_39.spec [new file with mode: 0644]
dlls/d3dcompiler_39/d3dcompiler_39_main.c [new file with mode: 0644]
dlls/d3dcompiler_39/version.rc [new file with mode: 0644]

index 76b6f4da18879edaf130dc7f0f664172d5d101eb..8c84dcceba6c4b28f96d49e11878afa119f1c9ea 100755 (executable)
--- a/configure
+++ b/configure
@@ -14453,6 +14453,7 @@ wine_fn_config_dll d3d8 enable_d3d8 d3d8
 wine_fn_config_test dlls/d3d8/tests d3d8_test
 wine_fn_config_dll d3d9 enable_d3d9 d3d9
 wine_fn_config_test dlls/d3d9/tests d3d9_test
+wine_fn_config_dll d3dcompiler_39 enable_d3dcompiler_39
 wine_fn_config_dll d3dcompiler_40 enable_d3dcompiler_40
 wine_fn_config_dll d3dcompiler_41 enable_d3dcompiler_41
 wine_fn_config_dll d3dcompiler_42 enable_d3dcompiler_42
index 6a3032449cbcc53baec0ff7133d074f69950b394..b789f06bc0ff957cdff304dd7ccbb7a4def7c6e5 100644 (file)
@@ -2292,6 +2292,7 @@ WINE_CONFIG_DLL(d3d8,,[d3d8])
 WINE_CONFIG_TEST(dlls/d3d8/tests)
 WINE_CONFIG_DLL(d3d9,,[d3d9])
 WINE_CONFIG_TEST(dlls/d3d9/tests)
+WINE_CONFIG_DLL(d3dcompiler_39)
 WINE_CONFIG_DLL(d3dcompiler_40)
 WINE_CONFIG_DLL(d3dcompiler_41)
 WINE_CONFIG_DLL(d3dcompiler_42)
diff --git a/dlls/d3dcompiler_39/Makefile.in b/dlls/d3dcompiler_39/Makefile.in
new file mode 100644 (file)
index 0000000..789c550
--- /dev/null
@@ -0,0 +1,12 @@
+TOPSRCDIR = @top_srcdir@
+TOPOBJDIR = ../..
+SRCDIR    = @srcdir@
+VPATH     = @srcdir@
+MODULE    = d3dcompiler_39.dll
+
+C_SRCS = \
+       d3dcompiler_39_main.c
+
+RC_SRCS = version.rc
+
+@MAKE_DLL_RULES@
diff --git a/dlls/d3dcompiler_39/d3dcompiler_39.spec b/dlls/d3dcompiler_39/d3dcompiler_39.spec
new file mode 100644 (file)
index 0000000..9214bc1
--- /dev/null
@@ -0,0 +1,11 @@
+@ stdcall D3DCompileFromMemory(ptr long str ptr ptr str str long long ptr ptr) d3dcompiler_43.D3DCompile
+@ stdcall D3DDisassembleCode(ptr long long ptr ptr) d3dcompiler_43.D3DDisassemble
+@ stdcall D3DDisassembleEffect(ptr long ptr) d3dcompiler_43.D3DDisassemble10Effect
+@ stdcall D3DGetCodeDebugInfo(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 D3DPreprocessFromMemory(ptr long str ptr ptr ptr ptr) d3dcompiler_43.D3DPreprocess
+@ stdcall D3DReflectCode(ptr long ptr ptr) d3dcompiler_43.D3DReflect
+@ stub D3DReturnFailure1
+@ stub DebugSetMute
diff --git a/dlls/d3dcompiler_39/d3dcompiler_39_main.c b/dlls/d3dcompiler_39/d3dcompiler_39_main.c
new file mode 100644 (file)
index 0000000..c4745ee
--- /dev/null
@@ -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_39/version.rc b/dlls/d3dcompiler_39/version.rc
new file mode 100644 (file)
index 0000000..0a229b2
--- /dev/null
@@ -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_39.dll"
+#define WINE_FILEVERSION 9,24,949,2307
+#define WINE_FILEVERSION_STR "9.24.949.2307"
+#define WINE_PRODUCTVERSION 9,24,949,2307
+#define WINE_PRODUCTVERSION_STR "9.24.949.2307"
+
+#include "wine/wine_common_ver.rc"