From c769a29aef3fb40e2d24d4ecaae68b429517cdd6 Mon Sep 17 00:00:00 2001 From: Alistair Leslie-Hughes Date: Thu, 16 Jun 2016 08:02:58 +0000 Subject: [PATCH] d3dcompiler_37: Share source with d3dcompiler_43. Signed-off-by: Alistair Leslie-Hughes Signed-off-by: Matteo Bruni Signed-off-by: Alexandre Julliard --- dlls/d3dcompiler_37/Makefile.in | 20 ++++++++++- dlls/d3dcompiler_37/d3dcompiler_37.spec | 18 +++++----- dlls/d3dcompiler_37/d3dcompiler_37_main.c | 42 ----------------------- tools/make_specfiles | 1 - 4 files changed, 28 insertions(+), 53 deletions(-) delete mode 100644 dlls/d3dcompiler_37/d3dcompiler_37_main.c diff --git a/dlls/d3dcompiler_37/Makefile.in b/dlls/d3dcompiler_37/Makefile.in index 42a9b320997..4fb97c4fafa 100644 --- a/dlls/d3dcompiler_37/Makefile.in +++ b/dlls/d3dcompiler_37/Makefile.in @@ -1,6 +1,24 @@ MODULE = d3dcompiler_37.dll +IMPORTS = dxguid uuid +EXTRALIBS = -lwpp +EXTRADEFS = -DD3D_COMPILER_VERSION=37 +PARENTSRC = ../d3dcompiler_43 C_SRCS = \ - d3dcompiler_37_main.c + asmparser.c \ + blob.c \ + bytecodewriter.c \ + compiler.c \ + main.c \ + reflection.c \ + utils.c + +LEX_SRCS = \ + asmshader.l \ + hlsl.l + +BISON_SRCS = \ + asmshader.y \ + hlsl.y RC_SRCS = version.rc diff --git a/dlls/d3dcompiler_37/d3dcompiler_37.spec b/dlls/d3dcompiler_37/d3dcompiler_37.spec index 5e20e1a8173..907ca7370fb 100644 --- a/dlls/d3dcompiler_37/d3dcompiler_37.spec +++ b/dlls/d3dcompiler_37/d3dcompiler_37.spec @@ -1,10 +1,10 @@ -@ 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 +@ stdcall D3DCompileFromMemory(ptr long str ptr ptr str str long long ptr ptr) D3DCompile +@ stdcall D3DDisassembleCode(ptr long long ptr ptr) D3DDisassemble +@ stub D3DDisassembleEffect(ptr long ptr) +@ stdcall D3DGetCodeDebugInfo(ptr long ptr) D3DGetDebugInfo +@ stdcall D3DGetInputAndOutputSignatureBlob(ptr long ptr) +@ stdcall D3DGetInputSignatureBlob(ptr long ptr) +@ stdcall D3DGetOutputSignatureBlob(ptr long ptr) +@ stdcall D3DPreprocessFromMemory(ptr long str ptr ptr ptr ptr) D3DPreprocess +@ stdcall D3DReflectCode(ptr long ptr ptr) D3DReflect @ stub DebugSetMute diff --git a/dlls/d3dcompiler_37/d3dcompiler_37_main.c b/dlls/d3dcompiler_37/d3dcompiler_37_main.c deleted file mode 100644 index 4453ead0031..00000000000 --- a/dlls/d3dcompiler_37/d3dcompiler_37_main.c +++ /dev/null @@ -1,42 +0,0 @@ -/* - * 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 - -#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; - } - - return TRUE; -} diff --git a/tools/make_specfiles b/tools/make_specfiles index 8a0b3fb6b69..6c8ff208a3f 100755 --- a/tools/make_specfiles +++ b/tools/make_specfiles @@ -111,7 +111,6 @@ my @dll_groups = "d3dcompiler_43", "d3dcompiler_47", "d3dcompiler_46", - "d3dcompiler_37", "d3dcompiler_36", "d3dcompiler_35", "d3dcompiler_34",