[tekui-devel] tekui: Added Windows driver
Timm S. Mueller
tmueller at schulze-mueller.de
Sun Feb 22 17:50:57 CET 2009
details: http://hg.teklib.org/tekui/rev/12db62d868fd
changeset: 50:12db62d868fd
user: Timm S. Mueller <tmueller at schulze-mueller.de>
date: Sun Feb 22 15:31:59 2009 +0100
description:
Added Windows driver
diffs (truncated from 5219 to 100 lines):
diff -r 47357ba78a08 -r 12db62d868fd Makefile
--- a/Makefile Thu Feb 19 02:03:39 2009 +0100
+++ b/Makefile Sun Feb 22 15:31:59 2009 +0100
@@ -45,3 +45,6 @@
kdiff:
-(a=$$(mktemp -du) && hg clone $$PWD $$a && kdiff3 $$a $$PWD; rm -rf $$a)
+
+web-docs:
+ @bin/gendoc.lua tek/ -p -n tekUI Reference manual | tr "\t" " "
diff -r 47357ba78a08 -r 12db62d868fd config
--- a/config Thu Feb 19 02:03:39 2009 +0100
+++ b/config Sun Feb 22 15:31:59 2009 +0100
@@ -1,29 +1,69 @@
#------------------------------------------------------------------------------
-# Platform to build against [Choices: posix]
+# Platform to build against [Choices: posix, winnt]:
#------------------------------------------------------------------------------
PLATFORM ?= posix
#------------------------------------------------------------------------------
-# Default display driver [Choices: x11, directfb]
-# For the DirectFB driver, also adjust src/Makefile and tek/lib/Makefile
+# Dynamic link library extension [Choices: .so, .dll]:
+#------------------------------------------------------------------------------
+
+DLLEXT = .so
+
+#------------------------------------------------------------------------------
+# Default display driver [Choices: x11, windows, directfb]:
+# (If you change it, also adjust src/Makefile and tek/lib/Makefile)
#------------------------------------------------------------------------------
DISPLAY_DRIVER ?= x11
#------------------------------------------------------------------------------
-# Installation paths:
+# Compiler configuration:
#------------------------------------------------------------------------------
-LUA_LIB = /usr/local/lib/lua/5.1
-LUA_SHARE = /usr/local/share/lua/5.1
+CCPREFIX =
+CC = $(CCPREFIX)gcc -fpic
+
+# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
+# For Windows using MingW:
+# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
+
+# CC = $(CCPREFIX)gcc -mno-cygwin -DWIN32
+
+# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
+# Cross-build using MingW:
+# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
+
+# CCPREFIX = i586-mingw32-
#------------------------------------------------------------------------------
-# Libraries:
+# Platform libraries:
#------------------------------------------------------------------------------
+# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
+# POSIX:
+# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
+
PLATFORM_LIBS = -pthread
+
+# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
+# Windows:
+# (Assuming that lua51.dll is in the top-level directory of the distribution)
+# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
+
+# PLATFORM_LIBS = -lmsvcrt -lkernel32 -lwinmm -luser32 -lshell32 -ladvapi32
+# LUA_DLLS = -L $(BASEDIR) -llua51
+
+
+#------------------------------------------------------------------------------
+# The basic setup should be complete up to this point.
+#------------------------------------------------------------------------------
+
+
+#------------------------------------------------------------------------------
+# Other libraries:
+#------------------------------------------------------------------------------
LUA_DEFS = -I/usr/local/include/lua51 -I/usr/include/lua5.1
@@ -35,8 +75,18 @@
DFB_LIBS = `pkg-config --libs directfb`
DFB_DEFS = $(FREETYPE_DEFS) `pkg-config --cflags directfb`
+WIN_LIBS = $(PLATFORM_LIBS) -lgdi32
+
#------------------------------------------------------------------------------
-# Paths:
+# Installation paths:
+# (Installation is not always required, e.g. x11 and windows can do without)
More information about the tekui-devel
mailing list