Made ddraw and dinput separate dlls.

This commit is contained in:
Alexandre Julliard 2000-03-17 16:58:10 +00:00
parent 12f29b5076
commit ddce652cae
25 changed files with 70 additions and 13 deletions

View File

@ -85,6 +85,8 @@ DLLS = \
comctl32 \ comctl32 \
comdlg32 \ comdlg32 \
dciman32 \ dciman32 \
ddraw \
dinput \
dplayx \ dplayx \
dsound \ dsound \
icmp \ icmp \

4
configure vendored
View File

@ -6185,6 +6185,8 @@ dlls/comctl32/Makefile
dlls/commdlg/Makefile dlls/commdlg/Makefile
dlls/crtdll/Makefile dlls/crtdll/Makefile
dlls/dciman32/Makefile dlls/dciman32/Makefile
dlls/ddraw/Makefile
dlls/dinput/Makefile
dlls/display/Makefile dlls/display/Makefile
dlls/dplayx/Makefile dlls/dplayx/Makefile
dlls/dsound/Makefile dlls/dsound/Makefile
@ -6401,6 +6403,8 @@ dlls/comctl32/Makefile
dlls/commdlg/Makefile dlls/commdlg/Makefile
dlls/crtdll/Makefile dlls/crtdll/Makefile
dlls/dciman32/Makefile dlls/dciman32/Makefile
dlls/ddraw/Makefile
dlls/dinput/Makefile
dlls/display/Makefile dlls/display/Makefile
dlls/dplayx/Makefile dlls/dplayx/Makefile
dlls/dsound/Makefile dlls/dsound/Makefile

View File

@ -947,6 +947,8 @@ dlls/comctl32/Makefile
dlls/commdlg/Makefile dlls/commdlg/Makefile
dlls/crtdll/Makefile dlls/crtdll/Makefile
dlls/dciman32/Makefile dlls/dciman32/Makefile
dlls/ddraw/Makefile
dlls/dinput/Makefile
dlls/display/Makefile dlls/display/Makefile
dlls/dplayx/Makefile dlls/dplayx/Makefile
dlls/dsound/Makefile dlls/dsound/Makefile

View File

@ -8,6 +8,8 @@ DLLFILES = \
comctl32/libcomctl32.@LIBEXT@ \ comctl32/libcomctl32.@LIBEXT@ \
commdlg/libcomdlg32.@LIBEXT@ \ commdlg/libcomdlg32.@LIBEXT@ \
dciman32/libdciman32.@LIBEXT@ \ dciman32/libdciman32.@LIBEXT@ \
ddraw/libddraw.@LIBEXT@ \
dinput/libdinput.@LIBEXT@ \
dplayx/libdplayx.@LIBEXT@ \ dplayx/libdplayx.@LIBEXT@ \
dsound/libdsound.@LIBEXT@ \ dsound/libdsound.@LIBEXT@ \
icmp/libicmp.@LIBEXT@ \ icmp/libicmp.@LIBEXT@ \
@ -94,6 +96,12 @@ libcomdlg32.@LIBEXT@ libcommdlg.@LIBEXT@: commdlg/libcomdlg32.@LIBEXT@
libdciman32.@LIBEXT@: dciman32/libdciman32.@LIBEXT@ libdciman32.@LIBEXT@: dciman32/libdciman32.@LIBEXT@
$(RM) $@ && $(LN_S) dciman32/libdciman32.@LIBEXT@ $@ $(RM) $@ && $(LN_S) dciman32/libdciman32.@LIBEXT@ $@
libddraw.@LIBEXT@: ddraw/libddraw.@LIBEXT@
$(RM) $@ && $(LN_S) ddraw/libddraw.@LIBEXT@ $@
libdinput.@LIBEXT@: dinput/libdinput.@LIBEXT@
$(RM) $@ && $(LN_S) dinput/libdinput.@LIBEXT@ $@
libdplayx.@LIBEXT@ libdplay.@LIBEXT@: dplayx/libdplayx.@LIBEXT@ libdplayx.@LIBEXT@ libdplay.@LIBEXT@: dplayx/libdplayx.@LIBEXT@
$(RM) $@ && $(LN_S) dplayx/libdplayx.@LIBEXT@ $@ $(RM) $@ && $(LN_S) dplayx/libdplayx.@LIBEXT@ $@

3
dlls/ddraw/.cvsignore Normal file
View File

@ -0,0 +1,3 @@
Makefile
ddraw.spec.c
libddraw.so.1.0

23
dlls/ddraw/Makefile.in Normal file
View File

@ -0,0 +1,23 @@
TOPSRCDIR = @top_srcdir@
TOPOBJDIR = ../..
SRCDIR = @srcdir@
VPATH = @srcdir@
MODULE = ddraw
SOVERSION = 1.0
SPEC_SRCS = ddraw.spec
C_SRCS = \
d3dcommon.c \
d3ddevices.c \
d3dexecutebuffer.c \
d3dlight.c \
d3dmaterial.c \
d3dtexture.c \
d3dviewport.c \
ddraw_main.c
@MAKE_DLL_RULES@
### Dependencies:

3
dlls/dinput/.cvsignore Normal file
View File

@ -0,0 +1,3 @@
Makefile
dinput.spec.c
libdinput.so.1.0

16
dlls/dinput/Makefile.in Normal file
View File

@ -0,0 +1,16 @@
TOPSRCDIR = @top_srcdir@
TOPOBJDIR = ../..
SRCDIR = @srcdir@
VPATH = @srcdir@
MODULE = dinput
SOVERSION = 1.0
SPEC_SRCS = dinput.spec
C_SRCS = \
dinput_main.c
@MAKE_DLL_RULES@
### Dependencies:

View File

@ -53,7 +53,7 @@
#include "wingdi.h" #include "wingdi.h"
#include "winuser.h" #include "winuser.h"
DEFAULT_DEBUG_CHANNEL(dinput) DEFAULT_DEBUG_CHANNEL(dinput);
/* Wine mouse driver object instances */ /* Wine mouse driver object instances */
#define WINE_MOUSE_X_AXIS_INSTANCE 0x0001 #define WINE_MOUSE_X_AXIS_INSTANCE 0x0001

View File

@ -8,14 +8,6 @@ MODULE = graphics
C_SRCS = \ C_SRCS = \
bitblt.c \ bitblt.c \
cache.c \ cache.c \
d3dcommon.c \
d3ddevices.c \
d3dexecutebuffer.c \
d3dlight.c \
d3dmaterial.c \
d3dtexture.c \
d3dviewport.c \
ddraw.c \
dispdib.c \ dispdib.c \
driver.c \ driver.c \
env.c \ env.c \

View File

@ -23,6 +23,8 @@ static DDSURFACEDESC sdesc;
static LONG vga_polling,vga_refresh; static LONG vga_polling,vga_refresh;
static HANDLE poll_timer; static HANDLE poll_timer;
static HRESULT WINAPI (*pDirectDrawCreate)(LPGUID,LPDIRECTDRAW *,LPUNKNOWN);
static void VGA_DeinstallTimer(void) static void VGA_DeinstallTimer(void)
{ {
if (poll_timer) { if (poll_timer) {
@ -51,7 +53,12 @@ int VGA_SetMode(unsigned Xres,unsigned Yres,unsigned Depth)
{ {
if (lpddraw) VGA_Exit(); if (lpddraw) VGA_Exit();
if (!lpddraw) { if (!lpddraw) {
DirectDrawCreate(NULL,&lpddraw,NULL); if (!pDirectDrawCreate)
{
HMODULE hmod = LoadLibraryA( "ddraw.dll" );
if (hmod) pDirectDrawCreate = GetProcAddress( hmod, "DirectDrawCreate" );
}
if (pDirectDrawCreate) pDirectDrawCreate(NULL,&lpddraw,NULL);
if (!lpddraw) { if (!lpddraw) {
ERR("DirectDraw is not available\n"); ERR("DirectDraw is not available\n");
return 1; return 1;

View File

@ -6,8 +6,6 @@ VPATH = @srcdir@
MODULE = relay32 MODULE = relay32
SPEC_SRCS = \ SPEC_SRCS = \
ddraw.spec \
dinput.spec \
gdi32.spec \ gdi32.spec \
kernel32.spec \ kernel32.spec \
user32.spec \ user32.spec \

View File

@ -13,7 +13,6 @@ C_SRCS = \
defdlg.c \ defdlg.c \
defwnd.c \ defwnd.c \
dialog.c \ dialog.c \
dinput.c \
driver.c \ driver.c \
event.c \ event.c \
focus.c \ focus.c \