Add the quartzdrv to the Wine build System.

Pierre d'Herbemont pdherbemont at free.fr
Thu Sep 21 14:07:16 CDT 2006


Alexandre,

I hope this patch will apply, since I am getting some email client/ 
git-imap-send trouble.

Here is a first patch to create the quartz driver in the Tree. The  
goal is to sync with Emmanuel work which is in the Darwine's cvs  
tree. The code there is kind of functional as WineMine is playable  
using both Carbon (C code) and Cocoa (Obj-C code) interface.

Thanks,

Pierre.

---
  configure.ac                            |    1 +
  dlls/winequartz.drv/Makefile.in         |   16 ++++++++++
  dlls/winequartz.drv/quartzdrv_main.c    |   48 +++++++++++++++++++++ 
++++++++++
  dlls/winequartz.drv/winequartz.drv.spec |    1 +
  4 files changed, 66 insertions(+), 0 deletions(-)diff --git a/ 
configure.ac b/configure.ac
index 0c1322a..e61b990 100644
--- a/configure.ac
+++ b/configure.ac
@@ -1721,6 +1721,7 @@ dlls/wined3d/Makefile
  dlls/winedos/Makefile
  dlls/winemp3.acm/Makefile
  dlls/wineps.drv/Makefile
+dlls/winequartz.drv/Makefile
  dlls/winex11.drv/Makefile
  dlls/wininet/Makefile
  dlls/wininet/tests/Makefile
diff --git a/dlls/winequartz.drv/Makefile.in b/dlls/winequartz.drv/ 
Makefile.in
new file mode 100644
index 0000000..809bf0a
--- /dev/null
+++ b/dlls/winequartz.drv/Makefile.in
@@ -0,0 +1,16 @@
+TOPSRCDIR = @top_srcdir@
+TOPOBJDIR = ../..
+SRCDIR    = @srcdir@
+VPATH     = @srcdir@
+MODULE    = winequartz.drv
+IMPORTS   = user32 gdi32 advapi32 kernel32 ntdll
+EXTRAINCL =
+EXTRALIBS =
+
+C_SRCS = \
+	quartzdrv_main.c
+
+ at MAKE_DLL_RULES@
+
+ at DEPENDENCIES@  # everything below this line is overwritten by make  
depend
+
diff --git a/dlls/winequartz.drv/quartzdrv_main.c b/dlls/ 
winequartz.drv/quartzdrv_main.c
new file mode 100644
index 0000000..afbe548
--- /dev/null
+++ b/dlls/winequartz.drv/quartzdrv_main.c
@@ -0,0 +1,48 @@
+/*
+ * QUARTZDRV initialization code
+ *
+ * Copyright 1998 Patrik Stridvall
+ * Copyright 2000 Alexandre Julliard
+ *
+ * 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 "windef.h"
+#include "winbase.h"
+#include "winreg.h"
+
+/ 
***********************************************************************
+ *           QUARTZDRV initialisation routine
+ */
+BOOL WINAPI DllMain( HINSTANCE hinst, DWORD reason, LPVOID reserved )
+{
+    BOOL ret = TRUE;
+
+    switch(reason)
+    {
+    case DLL_PROCESS_ATTACH:
+        /* Do attach */
+        break;
+    case DLL_THREAD_DETACH:
+        /* do thread detach */
+        break;
+    case DLL_PROCESS_DETACH:
+        /* do detach */
+        break;
+    }
+    return ret;
+}
+
diff --git a/dlls/winequartz.drv/winequartz.drv.spec b/dlls/ 
winequartz.drv/winequartz.drv.spec
new file mode 100644
index 0000000..d98d860
--- /dev/null
+++ b/dlls/winequartz.drv/winequartz.drv.spec
@@ -0,0 +1 @@
+# Nothing Yet



More information about the wine-patches mailing list