fltk/fl_config.cmake.in
Albrecht Schlosser 1209e9dcd7 Make Fl_String and Fl_Int_Vector private (#789)
- add CMake option 'OPTION_USE_STD'
- add configure option '--enable-use_std'
- move FL/Fl_String.H to src/Fl_String.H
- move FL/Fl_Int_Vector.H to src/Fl_Int_Vector.H
- remove Fl_String from demo program examples/callbacks.cxx
- remove Fl_Int_Vector from public header FL/Fl_Table.H
- some methods of Fl_Table are no longer inline
- add CMake option OPTION_USE_STD to allow std::string in some
  selected functions and methods

Experimental, may be removed before release:

- use either Fl_Int_Vector or std::vector in Fl_Table depending
  on CMake OPTION_USE_STD or configure --enable-use_std

Move all fl_filename* functions that use Fl_String to fluid

Main changes in fluid:
 - add fluid_filename.h and .cxx
 - include "fluid_filename.h" rather than <FL/filename.H>

Update fl_input(), fl_password() and test/ask

- add maxchar parameter to fl_input() and fl_password()
- fl_input_str() and fl_password_str() are optional and return
  std::string if enabled (FLTK_USE_STD)
2023-10-22 19:35:17 +02:00

92 lines
1.7 KiB
CMake

/* FL/fl_config.h. Generated from fl_config.cmake.in by CMake. */
/*
* Build configuration file for the Fast Light Tool Kit (FLTK).
*
* Copyright 1998-2021 by Bill Spitzak and others.
*
* This library is free software. Distribution and use rights are outlined in
* the file "COPYING" which should have been included with this file. If this
* file is missing or damaged, see the license at:
*
* https://www.fltk.org/COPYING.php
*
* Please see the following page on how to report bugs and issues:
*
* https://www.fltk.org/bugs.php
*/
#ifndef _FL_fl_config_h_
#define _FL_fl_config_h_
/*
* FL_ABI_VERSION (ABI version)
*
* define FL_ABI_VERSION: 1xxyy for 1.x.y (xx,yy with leading zero)
*/
#cmakedefine FL_ABI_VERSION @FL_ABI_VERSION@
/*
* FLTK_HAVE_CAIRO
*
* Do we have the Cairo library available?
*/
#cmakedefine FLTK_HAVE_CAIRO 1
/*
* FLTK_HAVE_CAIROEXT
*
* Do we have the Cairo library available and want extended Cairo use in FLTK ?
* This implies to link cairo.lib in all FLTK based apps.
*/
#cmakedefine FLTK_HAVE_CAIROEXT 1
/*
* FLTK_USE_X11
*
* Do we use X11 for the current platform?
*
*/
#cmakedefine FLTK_USE_X11 1
/*
* FLTK_USE_CAIRO
*
* Do we use Cairo to draw to the display?
*
*/
#cmakedefine FLTK_USE_CAIRO 1
/*
* FLTK_USE_WAYLAND
*
* Do we use Wayland for the current platform?
*
*/
#cmakedefine FLTK_USE_WAYLAND 1
/*
* FLTK_USE_STD
*
* May we use std::string and std::vector for the current build?
*
* This is a build configuration option which allows FLTK to add some
* features based on std::string and std::vector in FLTK 1.4.x
*
*/
#cmakedefine01 FLTK_USE_STD
#endif /* _FL_fl_config_h_ */