From 22d302e242f9307bc1d24cb2b78f95e7a4fcf7ab Mon Sep 17 00:00:00 2001 From: Matthias Melcher Date: Fri, 19 Feb 2016 21:41:02 +0000 Subject: Add System Driver and Window Driver. 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 --- src/CMakeLists.txt | 20 ++++++++++++++------ 1 file changed, 14 insertions(+), 6 deletions(-) (limited to 'src/CMakeLists.txt') diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index f866f9e9f..c1064eb37 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -167,7 +167,9 @@ if (USE_X11) # X11 (including APPLE with X11) set(DRIVER_FILES + drivers/Posix/Fl_Posix_System_Driver.cxx drivers/X11/Fl_X11_Screen_Driver.cxx + drivers/X11/Fl_X11_Window_Driver.cxx drivers/Xlib/Fl_Xlib_Graphics_Driver.cxx drivers/Xlib/Fl_Xlib_Graphics_Driver_arci.cxx drivers/Xlib/Fl_Xlib_Graphics_Driver_color.cxx @@ -186,8 +188,10 @@ if (USE_X11) ) endif (USE_XFT) set(DRIVER_HEADER_FILES - drivers/Quartz/Fl_Quartz_Graphics_Driver.h + drivers/Posix/Fl_Posix_System_Driver.h drivers/X11/Fl_X11_Screen_Driver.h + drivers/X11/Fl_X11_Window_Driver.h + drivers/Quartz/Fl_Quartz_Graphics_Driver.h ) elseif (APPLE) @@ -210,10 +214,10 @@ elseif (APPLE) drivers/Darwin/Fl_Darwin_System_Driver.cxx ) set(DRIVER_HEADER_FILES - drivers/Quartz/Fl_Quartz_Graphics_Driver.h - drivers/Cocoa/Fl_Cocoa_Window_Driver.h - drivers/Cocoa/Fl_Cocoa_Screen_Driver.h drivers/Darwin/Fl_Darwin_System_Driver.h + drivers/Cocoa/Fl_Cocoa_Screen_Driver.h + drivers/Cocoa/Fl_Cocoa_Window_Driver.h + drivers/Quartz/Fl_Quartz_Graphics_Driver.h ) else () @@ -221,6 +225,9 @@ else () # Windows (GDI) set(DRIVER_FILES + drivers/WinAPI/Fl_WinAPI_System_Driver.cxx + drivers/WinAPI/Fl_WinAPI_Screen_Driver.cxx + drivers/WinAPI/Fl_WinAPI_Window_Driver.cxx drivers/GDI/Fl_GDI_Graphics_Driver.cxx drivers/GDI/Fl_GDI_Graphics_Driver_arci.cxx drivers/GDI/Fl_GDI_Graphics_Driver_color.cxx @@ -229,11 +236,12 @@ else () drivers/GDI/Fl_GDI_Graphics_Driver_line_style.cxx drivers/GDI/Fl_GDI_Graphics_Driver_rect.cxx drivers/GDI/Fl_GDI_Graphics_Driver_vertex.cxx - drivers/WinAPI/Fl_WinAPI_Screen_Driver.cxx ) set(DRIVER_HEADER_FILES - drivers/GDI/Fl_GDI_Graphics_Driver.h + drivers/WinAPI/Fl_WinAPI_System_Driver.h drivers/WinAPI/Fl_WinAPI_Screen_Driver.h + drivers/WinAPI/Fl_WinAPI_Window_Driver.h + drivers/GDI/Fl_GDI_Graphics_Driver.h ) endif (USE_X11) -- cgit v1.2.3