summaryrefslogtreecommitdiff
path: root/src/CMakeLists.txt
AgeCommit message (Collapse)Author
2016-09-26File src/drivers/Quartz/Fl_Quartz_Printer_Graphics_Driver.cxx is no longer ↵Manolo Gouy
useful. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11983 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-08-09[CMake] Fix Windows dll build with Visual Studio generator.Albrecht Schlosser
Now you can set OPTION_BUILD_SHARED_LIBS:BOOL=ON to build FLTK dll's with Visual Studio. Tested and works (Visual Studio 2010 + 2015). Note: Linux fixes included, tested and works (Ubuntu). Todo: dll names and target directories may need some changes. We really need to get rid of that "_SHARED" suffix in .so names. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11867 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-04-15Continue removing from class Fl_X what is not window-related.Manolo Gouy
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11613 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-04-11Create Fl_X11_System_Driver.{cxx,.H} and share ↵Manolo Gouy
Fl_Posix_System_Driver.{cxx,.H} between Darwin and USE_X11 platforms. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11583 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-04-07Rewrite filename_list.cxx under the driver model.Manolo Gouy
One more platform-dependent type is necessary: struct dirent Create a new header file, FL/platform_types.h, to define all types whose definition is platform-dependent. This file is for C because it is included by scandir_XXX.c git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11550 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-04-06Rewrite Fl_get_key.cxx under the driver model.Manolo Gouy
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11545 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-04-05Clean up Makefile and CMakeLists.txtAlbrecht Schlosser
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11537 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-04-05Rewrite the Fl_File_Native_Chooser class under the driver model.Manolo Gouy
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11529 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-04-02Replace src/Fl_Font.H by one file for each platform.Manolo Gouy
This file contained nearly only platform-specific code. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11507 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-03-30Rewrite fl_utf.c under the driver model: the file disappears and its content ↵Manolo Gouy
is moved to fl_utf8.cxx All functions of fl_utf.c keep their C API in fl_utf8.cxx git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11472 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-03-29[CMake] Revert r 11461.Albrecht Schlosser
Sorry for the noise. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11463 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-03-29[CMake] Fix library names.Albrecht Schlosser
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11461 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-03-28Rewrite Fl_dnd.cxx under the driver model.Manolo Gouy
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11455 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-03-28Remove src/drivers/Quartz/Fl_Quartz_Display_Device.{H,cxx}Manolo Gouy
These files contain no code and are unlikely to become necessary in the future. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11451 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-03-28Add Fl_System_Driver.cxxManolo Gouy
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11449 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-03-27[CMake] Remove redundant linking in CMake build process (STR #3298).Albrecht Schlosser
[CMake] Simplify CMake build files, remove redundancies. Ports of branch-1.3, svn r 11442 and 11444: Remove src/fl_call_main.c from non-Windows (static) libraries. It would be an empty object file anyway. Use CMake variables to set up used files and linked libraries to remove redundancies. All files and libs are used only in the definition of CMake variables and used later in static and shared builds, resp. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11447 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-03-25Separating platform-dependent from platform-independent code: make ↵Manolo Gouy
src/Fl.cxx cross-platform. File src/Fl_win32.cxx is now compiled instead of included in Fl.cxx. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11420 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-03-19Fix Windows (CMake) build.Albrecht Schlosser
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11386 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-03-19Minor Makefile (spaces/tabs) and CMakeLists.txt fixes.Albrecht Schlosser
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11384 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-03-19Rename print support files to src/drivers/XXX/Fl_XXX_Printer_Driver.xxxManolo Gouy
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11381 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-03-19Reflect recent changes in Fl_Image_Surface and Fl_Copy_Surface classes.Manolo Gouy
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11379 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-03-19Remove src/drivers/XXX/Fl_XXX_Image_Surface.H files that are no longer useful.Manolo Gouy
Their content is now in src/drivers/XXX/Fl_XXX_Image_Surface.cxx git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11372 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-03-18Beginning of Albrecht's plan for Fl_Window and Fl_Window_Driver classes.Manolo Gouy
Still unclear whether the implementation of the flush() functions follows the plan. The Fl_Printer class is fully rewritten under the driver model. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11364 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-03-10Implement non-rectangular windows using the Window Driver mechanism.Manolo Gouy
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11336 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-03-07Fix PicoSDL.Matthias Melcher
Fixed some issues with Image_Surface and Copy_Surface for PicoSDL. Still have to virtualize the driver concept. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11307 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-03-06Trying to make Pico work after Surface driver addition.Matthias Melcher
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11302 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-03-06Build with SDL driver needs to know also the Fl_Image_Surface class.Manolo Gouy
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11299 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-03-04Complete driver-based implementation of Fl_Image_Surface.Manolo Gouy
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11283 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-03-03Made Pico/SDL setup compile and run some minimal code.Matthias Melcher
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11274 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-03-02Add support for SDL as a base library on OS X.Matthias Melcher
This commit adds the basic setup in CMake to allow SDL as a base library for FLTK on OS X (and probably for other platforms as well). The SDL library driver set is derived from yet another new driver set named 'Pico'. 'Pico' is a base class for a driver that will allow porting of FLTK with the tinyest amount of effort. This implementation of the SDL driver shall be documented very well to explain the porting process. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11262 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-03-01Rewrite the Fl_Copy_Surface class with strict separation of public API and ↵Manolo Gouy
platform-related code. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11257 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-02-26Rename all remaining src/drivers/XXX.h to XXX.HManolo Gouy
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11226 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-02-26Move PostScript-support files to src/drivers/PostScript/Manolo Gouy
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11222 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-02-26Create class Fl_Widget_Surface that supports draw(Fl_Widget *, int, int).Manolo Gouy
This simplifies the implementation of Fl_Copy_Surface and Fl_Image_Surface which now are made to derive from Fl_Widget_Surface. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11220 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-02-19Instantiate the right Fl_Window_Driver.Matthias Melcher
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11195 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-02-19Add System Driver and Window Driver.Matthias Melcher
Adding two new driver types for each platform. Fl_..._System_Drivers exist once per application and provide an interface for to file and filename handling, timers, locking, multithreading, etc. . The Fl_..._Window_Driver class is instantiated once for every window in the system and corresponds closely to (and actually inherits from) Fl_X. The difference now is, that there is one Fl_X/Fl_Window_Driver base class, and one platform version that derives from it. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11193 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-02-10Basic Screen Driver Structure. LIMBO!Matthias Melcher
Creating the basic structure for a screen driver system. OS X works X11 and WinAPI are in limbo and will be fixed in the next hour or so. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11148 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-02-10More device and driver setup.Matthias Melcher
- building the base structure to have a screen driver, a window driver, and a system driver - still pondering over the exact implementation git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11147 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-02-10Starting CMake config to blend out filechoose and filename handling (shrins ↵Matthias Melcher
fltk massively if not needed) git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11146 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-02-10Add header files to CMake setup.Matthias Melcher
I added a regex search to add header files. This is helpful when searching for symbols and strings from within the Xcode IDE and likely others as well. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11145 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-02-09Move ifdef's in RGB_Image into driver system.Matthias Melcher
- change image caching variable types to uintptr_t - added driver function to uncache image data - cleaning up (Xlib and GDI will likely throw syntax errors. Trying to fix ASAP) git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11138 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-02-09Strip Graphics Driver related ifdefs.Matthias Melcher
- removed more ifdef's from the graphics drivers - moved functionality into the driver files themselves - updated CMakeList.txt git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11137 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-02-05New CMake option OPTION_PRINT_SUPPORT turned ON by defaultManolo Gouy
When the option is off, file config.h defines NO_PRINT_SUPPORT which in turn produces a library without print support, that is, class Fl_Printer does nothing. When off, the FLTK library is somewhat smaller. Can be turned off only when the X11 library is used. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11127 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-01-31Finish removing of #include of driver files, remove FL_LIBRARY_CMAKE.Albrecht Schlosser
Now all graphics drivers are compiled as individual files depending on the platform and configuration. The preprocessor macro FL_LIBRARY_CMAKE is now obsolete and has been removed. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11093 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-01-31Update build system to compile all drivers as indiviual objects.Albrecht Schlosser
Removed obsolete files that served only one purpose: to #include different driver files. Updated CMake and Makefiles to reflect the changes. Build tested with: - MinGW + configure/make - MinGW + CMake/make - Visual Studio 2010 generated by CMake git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11092 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-01-29Made OpenGL driver compile by itself instead of including files from another ↵Matthias Melcher
.cxx file. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11083 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-01-28Fix silly copy-and-change error.Albrecht Schlosser
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11072 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-01-28(Try to) fix CMake for Apple, prepare for Windows drivers.Albrecht Schlosser
This update is tested on Linux only, but should hopefully work on Mac OS X with CMake + make and/or CMake + Xcode. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11071 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-01-27Modify Xlib driver code not to #include source files.Albrecht Schlosser
Adjusted CMake build, and with some additional temporary #ifdef's the old Linux Makefile system works as well. Defined FL_LIBRARY_CMAKE for now - will be removed later. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11067 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2015-12-31Mac OS: modified CMake config files to allow use of OPTION_APPLE_X11Manolo Gouy
to build an X11-using version of FLTK on the Mac OS platform. This matches the recent support of the --enable-x11 option by the configure script on the mac. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10986 ea41ed52-d2ee-0310-a9c1-e6b18d33e121