[6/10] d3dcompiler_38.dll: Add stub dll.

Matijn Woudt tijnema at gmail.com
Wed Apr 14 17:05:45 CDT 2010


-------------- next part --------------
From 4b1e430483e7d821eba92519bc9694d188c0477c Mon Sep 17 00:00:00 2001
From: Matijn Woudt <tijnema at gmail.com>
Date: Wed, 14 Apr 2010 23:48:54 +0200
Subject: d3dcompiler_38: Add stub dll.

---
 dlls/d3dcompiler_38/Makefile.in           |   13 ++++++++
 dlls/d3dcompiler_38/d3dcompiler_38.spec   |   11 ++++++
 dlls/d3dcompiler_38/d3dcompiler_38_main.c |   48 +++++++++++++++++++++++++++++
 dlls/d3dcompiler_38/version.rc            |   26 +++++++++++++++
 4 files changed, 98 insertions(+), 0 deletions(-)
 create mode 100644 dlls/d3dcompiler_38/Makefile.in
 create mode 100644 dlls/d3dcompiler_38/d3dcompiler_38.spec
 create mode 100644 dlls/d3dcompiler_38/d3dcompiler_38_main.c
 create mode 100644 dlls/d3dcompiler_38/version.rc

diff --git a/dlls/d3dcompiler_38/Makefile.in b/dlls/d3dcompiler_38/Makefile.in
new file mode 100644
index 0000000..c141894
--- /dev/null
+++ b/dlls/d3dcompiler_38/Makefile.in
@@ -0,0 +1,13 @@
+TOPSRCDIR = @top_srcdir@
+TOPOBJDIR = ../..
+SRCDIR    = @srcdir@
+VPATH     = @srcdir@
+MODULE    = d3dcompiler_38.dll
+IMPORTS   = kernel32
+
+C_SRCS = \
+	d3dcompiler_38_main.c
+
+RC_SRCS = version.rc
+
+ at MAKE_DLL_RULES@
diff --git a/dlls/d3dcompiler_38/d3dcompiler_38.spec b/dlls/d3dcompiler_38/d3dcompiler_38.spec
new file mode 100644
index 0000000..5946417
--- /dev/null
+++ b/dlls/d3dcompiler_38/d3dcompiler_38.spec
@@ -0,0 +1,11 @@
+@ stub D3DCompileFromMemory
+@ stub D3DDisassembleCode
+@ stub D3DDisassembleEffect
+@ stub D3DGetCodeDebugInfo
+@ stub D3DGetInputAndOutputSignatureBlob
+@ stub D3DGetInputSignatureBlob
+@ stub D3DGetOutputSignatureBlob
+@ stub D3DPreprocessFromMemory
+@ stub D3DReflectCode
+@ stub D3DReturnFailure1
+@ stub DebugSetMute
diff --git a/dlls/d3dcompiler_38/d3dcompiler_38_main.c b/dlls/d3dcompiler_38/d3dcompiler_38_main.c
new file mode 100644
index 0000000..b30cacd
--- /dev/null
+++ b/dlls/d3dcompiler_38/d3dcompiler_38_main.c
@@ -0,0 +1,48 @@
+/*
+ * Direct3D Compiler
+ *
+ * Copyright (C) 2010 Matijn Woudt
+ *
+ * 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"
+#include "wingdi.h"
+#include "winuser.h"
+
+/***********************************************************************
+ * DllMain.
+ */
+BOOL WINAPI DllMain(HINSTANCE inst, DWORD reason, LPVOID reserved)
+{
+    switch(reason)
+    {
+    case DLL_WINE_PREATTACH:
+        return FALSE; /* prefer native version */
+    case DLL_PROCESS_ATTACH:
+        DisableThreadLibraryCalls(inst);
+        break;
+    case DLL_PROCESS_DETACH:
+        break;
+    }
+    return TRUE;
+}
diff --git a/dlls/d3dcompiler_38/version.rc b/dlls/d3dcompiler_38/version.rc
new file mode 100644
index 0000000..213df90
--- /dev/null
+++ b/dlls/d3dcompiler_38/version.rc
@@ -0,0 +1,26 @@
+/*
+ * Copyright 2010 Matijn Woudt
+ *
+ * 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 D3D Compiler"
+#define WINE_FILENAME_STR "d3dcompiler.dll"
+#define WINE_FILEVERSION 9,23,949,2378
+#define WINE_FILEVERSION_STR "9.23.949.2378"
+#define WINE_PRODUCTVERSION 9,23,949,2378
+#define WINE_PRODUCTVERSION_STR "9.23.949.2378"
+
+#include "wine/wine_common_ver.rc"
-- 
1.6.3.3


More information about the wine-patches mailing list