mirror of
https://github.com/fltk/fltk.git
synced 2026-05-27 19:10:24 +08:00
Add --enable-print option to configure to allow building without print support on X11 platforms.
Also, the NO_PRINT_SUPPORT preprocessor variable is renamed FL_NO_PRINT_SUPPORT. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12131 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
This commit is contained in:
+2
-2
@@ -376,9 +376,9 @@ else()
|
|||||||
endif(OPTION_USE_XDBE AND HAVE_XDBE_H)
|
endif(OPTION_USE_XDBE AND HAVE_XDBE_H)
|
||||||
|
|
||||||
#######################################################################
|
#######################################################################
|
||||||
set(NO_PRINT_SUPPORT FALSE)
|
set(FL_NO_PRINT_SUPPORT FALSE)
|
||||||
if(X11_FOUND AND NOT OPTION_PRINT_SUPPORT)
|
if(X11_FOUND AND NOT OPTION_PRINT_SUPPORT)
|
||||||
set(NO_PRINT_SUPPORT TRUE)
|
set(FL_NO_PRINT_SUPPORT TRUE)
|
||||||
endif(X11_FOUND AND NOT OPTION_PRINT_SUPPORT)
|
endif(X11_FOUND AND NOT OPTION_PRINT_SUPPORT)
|
||||||
#######################################################################
|
#######################################################################
|
||||||
|
|
||||||
|
|||||||
+1
-1
@@ -358,7 +358,7 @@
|
|||||||
* Do we want print support?
|
* Do we want print support?
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#cmakedefine NO_PRINT_SUPPORT 1
|
#cmakedefine FL_NO_PRINT_SUPPORT 1
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Do we want filename handling and a filechooser?
|
* Do we want filename handling and a filechooser?
|
||||||
|
|||||||
+1
-2
@@ -357,10 +357,9 @@
|
|||||||
|
|
||||||
/*
|
/*
|
||||||
* Do we want print support?
|
* Do we want print support?
|
||||||
* *FIXME* Not yet implemented in configure !
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#undef NO_PRINT_SUPPORT
|
#undef FL_NO_PRINT_SUPPORT
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Do we want filename handling and a filechooser?
|
* Do we want filename handling and a filechooser?
|
||||||
|
|||||||
@@ -992,6 +992,12 @@ case $host_os_gui in
|
|||||||
GLDEMOS=""
|
GLDEMOS=""
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
dnl Check whether print support was disabled...
|
||||||
|
AC_ARG_ENABLE(print, [ --enable-print turn on print support (X11 platform) [[default=yes]]])
|
||||||
|
if test x$enable_print != xyes; then
|
||||||
|
AC_DEFINE(FL_NO_PRINT_SUPPORT)
|
||||||
|
fi
|
||||||
|
|
||||||
dnl Check for Xinerama support unless disabled...
|
dnl Check for Xinerama support unless disabled...
|
||||||
AC_ARG_ENABLE(xinerama, [ --enable-xinerama turn on Xinerama support [[default=yes]]])
|
AC_ARG_ENABLE(xinerama, [ --enable-xinerama turn on Xinerama support [[default=yes]]])
|
||||||
|
|
||||||
|
|||||||
+4
-4
@@ -21,11 +21,11 @@
|
|||||||
#include <config.h>
|
#include <config.h>
|
||||||
|
|
||||||
#ifdef FL_PORTING
|
#ifdef FL_PORTING
|
||||||
# pragma message "FL_PORTING: implement print support for your platform, or define NO_PRINT_SUPPORT"
|
# pragma message "FL_PORTING: implement print support for your platform, or define FL_NO_PRINT_SUPPORT"
|
||||||
#define NO_PRINT_SUPPORT 1
|
#define FL_NO_PRINT_SUPPORT 1
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if defined(NO_PRINT_SUPPORT)
|
#if defined(FL_NO_PRINT_SUPPORT)
|
||||||
#include <FL/Fl_PostScript.H>
|
#include <FL/Fl_PostScript.H>
|
||||||
|
|
||||||
Fl_Printer::Fl_Printer(void) {
|
Fl_Printer::Fl_Printer(void) {
|
||||||
@@ -239,7 +239,7 @@ Fl_Printer::~Fl_Printer(void)
|
|||||||
delete printer;
|
delete printer;
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif // defined(NO_PRINT_SUPPORT)
|
#endif // defined(FL_NO_PRINT_SUPPORT)
|
||||||
|
|
||||||
//
|
//
|
||||||
// End of "$Id$".
|
// End of "$Id$".
|
||||||
|
|||||||
@@ -18,7 +18,7 @@
|
|||||||
|
|
||||||
#include "../../config_lib.h"
|
#include "../../config_lib.h"
|
||||||
|
|
||||||
#if defined(FL_CFG_PRN_PS)
|
#if defined(FL_CFG_PRN_PS) && !defined(FL_NO_PRINT_SUPPORT)
|
||||||
|
|
||||||
#include <FL/Fl_PostScript.H>
|
#include <FL/Fl_PostScript.H>
|
||||||
#include <FL/Fl_Printer.H>
|
#include <FL/Fl_Printer.H>
|
||||||
@@ -133,7 +133,7 @@ int Fl_Posix_Printer_Driver::start_job(int pages, int *firstpage, int *lastpage)
|
|||||||
return ps->start_postscript(pages, format, layout); // start printing
|
return ps->start_postscript(pages, format, layout); // start printing
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif // defined(FL_CFG_PRN_PS)
|
#endif // defined(FL_CFG_PRN_PS) && !defined(FL_NO_PRINT_SUPPORT)
|
||||||
|
|
||||||
|
|
||||||
//
|
//
|
||||||
|
|||||||
@@ -16,6 +16,8 @@
|
|||||||
// http://www.fltk.org/str.php
|
// http://www.fltk.org/str.php
|
||||||
//
|
//
|
||||||
|
|
||||||
|
#include <config.h>
|
||||||
|
#if !defined(FL_NO_PRINT_SUPPORT)
|
||||||
#include <FL/Fl.H>
|
#include <FL/Fl.H>
|
||||||
#include <FL/fl_ask.H>
|
#include <FL/fl_ask.H>
|
||||||
#include <FL/fl_draw.H>
|
#include <FL/fl_draw.H>
|
||||||
@@ -1477,6 +1479,8 @@ void Fl_PostScript_File_Device::end_job (void)
|
|||||||
|
|
||||||
#endif // FL_DOXYGEN
|
#endif // FL_DOXYGEN
|
||||||
|
|
||||||
|
#endif // !defined(FL_NO_PRINT_SUPPORT)
|
||||||
|
|
||||||
//
|
//
|
||||||
// End of "$Id$".
|
// End of "$Id$".
|
||||||
//
|
//
|
||||||
|
|||||||
@@ -16,7 +16,8 @@
|
|||||||
// http://www.fltk.org/str.php
|
// http://www.fltk.org/str.php
|
||||||
//
|
//
|
||||||
|
|
||||||
#ifndef FL_DOXYGEN
|
#include <config.h>
|
||||||
|
#if !defined(FL_DOXYGEN) && !defined(FL_NO_PRINT_SUPPORT)
|
||||||
|
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <math.h>
|
#include <math.h>
|
||||||
@@ -649,7 +650,8 @@ void Fl_PostScript_Graphics_Driver::draw(Fl_Bitmap * bitmap,int XP, int YP, int
|
|||||||
pop_clip();
|
pop_clip();
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif // FL_DOXYGEN
|
#endif // !defined(FL_DOXYGEN) && !defined(FL_NO_PRINT_SUPPORT)
|
||||||
|
|
||||||
|
|
||||||
//
|
//
|
||||||
// End of "$Id$"
|
// End of "$Id$"
|
||||||
|
|||||||
Reference in New Issue
Block a user