diff options
-rw-r--r-- | html/en/drv/cairo.html | 3 | ||||
-rw-r--r-- | html/en/guide.html | 14 | ||||
-rw-r--r-- | src/cdcairo.mak | 4 | ||||
-rw-r--r-- | src/cdcontextplus.mak | 4 | ||||
-rw-r--r-- | src/cdluacontextplus5.mak | 10 |
5 files changed, 25 insertions, 10 deletions
diff --git a/html/en/drv/cairo.html b/html/en/drv/cairo.html index eea6f75..0b28ea5 100644 --- a/html/en/drv/cairo.html +++ b/html/en/drv/cairo.html @@ -62,7 +62,8 @@ for complex clipping regions.</p> GDK base driver.</p> <p>As an alternative you can use <strong>require</strong>"<strong>cdluacairo"</strong>, but there are some restrictions: - in Windows only the GDI base driver can be used; in Linux only the X-Win base driver + in Windows only the GDI base driver can be used; in Linux only the GDK base +driver can be used; in other UNICES only the X-Win base driver can be used.</p> <h3>Extra Drivers (cdcairo.h)</h3> diff --git a/html/en/guide.html b/html/en/guide.html index 4332adb..93cd1df 100644 --- a/html/en/guide.html +++ b/html/en/guide.html @@ -96,20 +96,22 @@ the makefiles and projects expect the following directory tree:</p> <pre>cd -> <strong><span class="style2">FreeType</span></strong> (included as separate library) <em> cdwin*</em> -> <strong><span class="style4">gdi32</span></strong> <strong><span class="style4">user32</span></strong> <strong><span class="style4">comdlg32</span></strong> (system - Windows) <em> cdx11*</em> -> <strong><span class="style4">X11</span></strong> (system - UNIX) -<em> </em><em>cdgdk</em><em>*</em> -> <strong><span class="style1">gdk-win32-2.0 pangowin32-1.0</span></strong>(system - Windows) +<em> </em><em>cdgdk+cdcairo*</em> -> <strong><span class="style1">gdk-win32-2.0 pangowin32-1.0</span></strong>(system - Windows) <em> </em> -> <strong><span class="style1">gdk-x11-2.0</span></strong> <strong><span class="style1">pangox-1.0 </span></strong>(system - UNIX) - -> <span class="style1"><strong>cairo-2 </strong></span><strong><span class="style1">gdk_pixbuf-2.0 pango-1.0 gobject-2.0</span></strong> <strong><span class="style1">gmodule-2.0 glib-2.0</span></strong> (system - Windows/UNIX) + -> <span class="style1"><strong>cairo </strong></span><strong><span class="style1">gdk_pixbuf-2.0 pango-1.0 gobject-2.0</span></strong> <strong><span class="style1">gmodule-2.0 glib-2.0</span></strong> (system - Windows/UNIX) <em>cdgdiplus*</em> -> cd -> <strong><span class="style4">gdiplus</span></strong> (system - Windows) <em>cdxrender*</em> -> cd -> <strong><span class="style4">Xrender</span></strong> <strong><span class="style4">Xft</span></strong> (system - UNIX) -<em>cdcairo*</em> -> <span class="style1"><strong>cairo-2</strong></span> (system - Windows/UNIX) +cdcairo -> <span class="style1"><strong>pangocairo-1.0 cairo</strong></span> (system - Windows/UNIX) cdpdf -> <strong><span class="style2">pdflib</span></strong> (included as separate library) <em>cd</em>gl -> <span class="style1">opengl32</span> (system - Windows) -> <span class="style1">GL</span> (system - UNIX) -> <strong><span class="style2">ftgl</span></strong> (included as separate library) cdlua51 -> cd -> <strong><span class="style3">lua5.1</span></strong> +cdluacontextplus -> cdlua51 + -> cdcontextplus cdluaim51 -> cdlua51 -> <strong><span class="style3">imlua51</span></strong> cdluapdf51 -> cdlua51 @@ -117,9 +119,9 @@ cdluapdf51 -> cdlua51 cdluagl51 -> cdlua51 -> cdgl -(*) In Windows, "<strong>cdwin</strong>" is called "<strong>cd</strong>". - In Linux and BSD "<strong>cdgdk</strong>" is called "<strong>cd</strong>". - In IRIX, AIX and SunOS "<strong>cdx11</strong>" is called "<strong>cd</strong>".</pre> +(*) In Windows, "<strong>cdwin</strong>" is called "<strong>cd</strong>", "<strong>cdgdiplus</strong>" is called "<strong>cdcontextplus</strong>". + In Linux and BSD "<strong>cdgdk+cdcairo</strong>" is called "<strong>cd</strong>", "<strong>cdxrender</strong>" is called "<strong>cdcontextplus</strong>". + In IRIX, AIX and SunOS "<strong>cdx11</strong>" is called "<strong>cd</strong>", "<strong>cdxrender</strong>" is called "<strong>cdcontextplus</strong>".</pre> <p>As a general rule (excluding system dependencies and included third party libraries): CD has NO external dependencies, and CDLua depends on Lua and IMLua. diff --git a/src/cdcairo.mak b/src/cdcairo.mak index 9b1b171..ccb393d 100644 --- a/src/cdcairo.mak +++ b/src/cdcairo.mak @@ -18,6 +18,10 @@ else SRC += cdcaironative_x11.c DEFINES += CAIRO_X11 CHECK_GTK = Yes + + ifdef GTK_DEFAULT + CD_SUFFIX := x11 + endif endif INCLUDES += $(GTK)/include/cairo $(GTK)/include/pango-1.0 $(GTK)/include/glib-2.0 $(GTK)/lib/glib-2.0/include diff --git a/src/cdcontextplus.mak b/src/cdcontextplus.mak index e612452..7e11bba 100644 --- a/src/cdcontextplus.mak +++ b/src/cdcontextplus.mak @@ -18,6 +18,10 @@ else LIBS = Xrender Xft USE_X11 = Yes CHECK_XRENDER = Yes + + ifdef GTK_DEFAULT + CD_SUFFIX := x11 + endif INCLUDES = . sim drv freetype2 x11 endif diff --git a/src/cdluacontextplus5.mak b/src/cdluacontextplus5.mak index eee24f0..a94fae0 100644 --- a/src/cdluacontextplus5.mak +++ b/src/cdluacontextplus5.mak @@ -10,12 +10,16 @@ DEF_FILE = cdluacontextplus5.def ifneq ($(findstring Win, $(TEC_SYSNAME)), ) CHECK_GDIPLUS = Yes + LIBS = cdcontextplus else - CHECK_XRENDER = Yes + ifdef GTK_DEFAULT + CHECK_GTK = Yes + else + CHECK_XRENDER = Yes + LIBS = cdcontextplus + endif endif -LIBS = cdcontextplus - ifdef USE_LUA52 LIBNAME := $(LIBNAME)52 else |