diff options
| author | Fabien Costantini <fabien@onepost.net> | 2008-10-19 01:42:35 +0000 |
|---|---|---|
| committer | Fabien Costantini <fabien@onepost.net> | 2008-10-19 01:42:35 +0000 |
| commit | 268ffc6ef2477f83a0d48af2d64baf3c00e6cddc (patch) | |
| tree | 4a500fa6716a5334f705d7d2d761771d6e28fba7 /fltk-config.in | |
| parent | 7a5e64a4f3c8e1126dba6909ba7379c2100b055c (diff) | |
Cairo increment 2: Finer cairo granularity, less deps, new fltk_cairo lib
+ added new USE_CAIRO config preprocessor def.
to differentiate from HAVE_CAIRO so that we can use the cairo lib
without forcing the full fltk lib to be linked against it.
In that case, cairo autolink context functionality which needs fltk lib
instrumentation is disabled.
+ added new --enable-cairoext, which correspond to previous --enable-cairo.
now, --enable-cairo only adds HAVE_CAIRO def. and keeps fltk lib
from referencing cairo.
In both cases (--enable-cairo & --enable-cairoext), a new fltk_cairo lib is
created. This lib, similarly to local versions of png,jpeg and zlib,
is not generated if cairo is not enabled.
+ added cairo to fltk-config : now new --use-cairo flag is available
+ modified all unix like makefiles to now generate minimum cairo deps and also
new libfltk_cairo lib.
+ added new cairo subdir to permit conditional fltk_cairo lib generation.
+ vc2005 project minimum update to compile without be broken, but still needs
to create a similar fltk_cairo independent lib. For now, it works as before
with a dedicated cairo env. similar to --enable-cairoext context in unix.
+ regression tested ok with cairo disabled on win32, mac osx, mingw.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@6462 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'fltk-config.in')
| -rwxr-xr-x | fltk-config.in | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/fltk-config.in b/fltk-config.in index 24a379d74..5fd102155 100755 --- a/fltk-config.in +++ b/fltk-config.in @@ -56,6 +56,7 @@ CXXFLAGS="@CXXFLAGS@ @LARGEFILE@ @PTHREAD_FLAGS@" LDFLAGS="@LDFLAGS@" LDLIBS="@LIBS@" OPTIM="@OPTIM@" +CAIROFLAGS="@CAIROFLAGS@" # Check for local invocation, and update paths accordingly... if test -f "$selfdir/FL/Fl_Window.H"; then @@ -84,11 +85,17 @@ if test -d $includedir/FL/images; then CXXFLAGS="-I$includedir/FL/images $CXXFLAGS" fi +if test -f "$libdir/libfltk_cairo.a"; then + CFLAGS="$CAIROFLAGS $CFLAGS" + CXXFLAGS="$CAIROFLAGS $CXXFLAGS" +fi + # libraries to link with: LIBNAME="@LIBNAME@" DSONAME="@DSONAME@" DSOLINK="@DSOLINK@" IMAGELIBS="@IMAGELIBS@" +CAIROLIBS="@CAIROLIBS@" SHAREDSUFFIX="@SHAREDSUFFIX@" usage () @@ -103,6 +110,7 @@ Options telling what we are doing: [--use-images] use extra image formats (PNG, JPEG) [--use-glut] use glut compatibility layer [--use-forms] use forms compatibility layer + [--use-cairo] use cairo graphics lib Options telling what information we request: [--cc] return C compiler used to compile FLTK @@ -170,6 +178,9 @@ do --use-images) use_images=yes ;; + --use-cairo) + use_cairo=yes + ;; --cflags) echo_cflags=yes ;; @@ -235,6 +246,11 @@ if test x$use_images = xyes; then LDSTATIC="$libdir/libfltk_images.a $IMAGELIBS $LDSTATIC" fi +if test x$use_cairo = xyes; then + LDLIBS="-lfltk_cairo$SHAREDSUFFIX $CAIROLIBS $LDLIBS" + LDSTATIC="$libdir/libfltk_cairo.a $CAIROLIBS $LDSTATIC" +fi + LDLIBS="$DSOLINK $LDFLAGS $libs $LDLIBS" LDSTATIC="$LDFLAGS $LDSTATIC" @@ -351,6 +367,10 @@ if test "$echo_libs" = "yes"; then echo $libdir/libfltk_gl.a fi + if test x$use_cairo = xyes; then + echo $libdir/libfltk_cairo.a + fi + if test x$use_images = xyes; then echo $libdir/libfltk_images.a |
