1 # ***** BEGIN GPL LICENSE BLOCK *****
3 # This program is free software; you can redistribute it and/or
4 # modify it under the terms of the GNU General Public License
5 # as published by the Free Software Foundation; either version 2
6 # of the License, or (at your option) any later version.
8 # This program is distributed in the hope that it will be useful,
9 # but WITHOUT ANY WARRANTY; without even the implied warranty of
10 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 # GNU General Public License for more details.
13 # You should have received a copy of the GNU General Public License
14 # along with this program; if not, write to the Free Software Foundation,
15 # Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
17 # The Original Code is Copyright (C) 2006, Blender Foundation
18 # All rights reserved.
20 # The Original Code is: all of this file.
22 # Contributor(s): Jacques Beaurain.
24 # ***** END GPL LICENSE BLOCK *****
29 ../../source/blender/imbuf
30 ../../source/blender/makesdna
38 intern/GHOST_Buttons.cpp
39 intern/GHOST_C-api.cpp
40 intern/GHOST_CallbackEventConsumer.cpp
41 intern/GHOST_DisplayManager.cpp
42 intern/GHOST_EventManager.cpp
43 intern/GHOST_ISystem.cpp
44 intern/GHOST_ISystemPaths.cpp
45 intern/GHOST_ModifierKeys.cpp
46 intern/GHOST_Path-api.cpp
47 intern/GHOST_Path-api.cpp
49 intern/GHOST_System.cpp
50 intern/GHOST_TimerManager.cpp
51 intern/GHOST_Window.cpp
52 intern/GHOST_WindowManager.cpp
56 GHOST_IEventConsumer.h
65 intern/GHOST_Buttons.h
66 intern/GHOST_CallbackEventConsumer.h
68 intern/GHOST_DisplayManager.h
70 intern/GHOST_EventButton.h
71 intern/GHOST_EventCursor.h
72 intern/GHOST_EventDragnDrop.h
73 intern/GHOST_EventKey.h
74 intern/GHOST_EventManager.h
75 intern/GHOST_EventString.h
76 intern/GHOST_EventTrackpad.h
77 intern/GHOST_EventWheel.h
78 intern/GHOST_ModifierKeys.h
80 intern/GHOST_SystemPaths.h
81 intern/GHOST_TimerManager.h
82 intern/GHOST_TimerTask.h
84 intern/GHOST_WindowManager.h
89 intern/GHOST_EventPrinter.cpp
91 intern/GHOST_EventPrinter.h
93 add_definitions(-DWITH_GHOST_DEBUG)
97 add_definitions(-DWITH_INPUT_NDOF)
100 intern/GHOST_NDOFManager.cpp
102 intern/GHOST_EventNDOF.h
103 intern/GHOST_NDOFManager.h
111 if(WITH_HEADLESS OR WITH_GHOST_SDL)
114 intern/GHOST_DisplayManagerNULL.h
115 intern/GHOST_SystemNULL.h
116 intern/GHOST_WindowNULL.h
118 add_definitions(-DWITH_HEADLESS)
121 intern/GHOST_DisplayManagerSDL.cpp
122 intern/GHOST_SystemSDL.cpp
123 intern/GHOST_WindowSDL.cpp
125 intern/GHOST_DisplayManagerSDL.h
126 intern/GHOST_SystemSDL.h
127 intern/GHOST_WindowSDL.h
129 add_definitions(-DWITH_GHOST_SDL)
133 # ack, this is still system dependant
137 intern/GHOST_SystemPathsCocoa.mm
138 intern/GHOST_SystemPathsCocoa.h
142 intern/GHOST_SystemPathsCarbon.cpp
143 intern/GHOST_SystemPathsCarbon.h
149 intern/GHOST_SystemPathsX11.cpp
150 intern/GHOST_SystemPathsX11.h
153 if(NOT WITH_INSTALL_PORTABLE)
154 add_definitions(-DPREFIX="${CMAKE_INSTALL_PREFIX}")
159 intern/GHOST_SystemPathsWin32.cpp
161 intern/GHOST_SystemPathsWin32.h
169 if(NOT WITH_HEADLESS)
178 intern/GHOST_DisplayManagerCocoa.mm
179 intern/GHOST_SystemCocoa.mm
180 intern/GHOST_SystemPathsCocoa.mm
181 intern/GHOST_WindowCocoa.mm
183 intern/GHOST_DisplayManagerCocoa.h
184 intern/GHOST_SystemCocoa.h
185 intern/GHOST_SystemPathsCocoa.h
186 intern/GHOST_WindowCocoa.h
191 intern/GHOST_NDOFManagerCocoa.mm
192 intern/GHOST_NDOFManagerCocoa.h
198 intern/GHOST_DisplayManagerCarbon.cpp
199 intern/GHOST_SystemCarbon.cpp
200 intern/GHOST_SystemPathsCarbon.cpp
201 intern/GHOST_WindowCarbon.cpp
203 intern/GHOST_DisplayManagerCarbon.h
204 intern/GHOST_SystemCarbon.h
205 intern/GHOST_SystemPathsCarbon.h
206 intern/GHOST_WindowCarbon.h
210 if(WITH_CODEC_QUICKTIME)
211 add_definitions(-DWITH_QUICKTIME)
217 ${X11_X11_INCLUDE_PATH}
221 intern/GHOST_DisplayManagerX11.cpp
222 intern/GHOST_SystemX11.cpp
223 intern/GHOST_SystemPathsX11.cpp
224 intern/GHOST_WindowX11.cpp
226 intern/GHOST_DisplayManagerX11.h
227 intern/GHOST_SystemX11.h
228 intern/GHOST_SystemPathsX11.h
229 intern/GHOST_WindowX11.h
233 add_definitions(-DWITH_XDND)
240 intern/GHOST_DropTargetX11.cpp
242 intern/GHOST_DropTargetX11.h
246 if(X11_XF86keysym_INCLUDE_PATH)
247 add_definitions(-DWITH_XF86KEYSYM)
249 ${X11_XF86keysym_INCLUDE_PATH}
253 if(WITH_X11_XF86VMODE)
254 add_definitions(-DWITH_X11_XF86VMODE)
256 ${X11_xf86vmode_INCLUDE_PATH}
262 intern/GHOST_NDOFManagerX11.cpp
264 intern/GHOST_NDOFManagerX11.h
268 if(NOT WITH_INSTALL_PORTABLE)
269 add_definitions(-DPREFIX="${CMAKE_INSTALL_PREFIX}")
273 add_definitions(-DWITH_X11_XINPUT)
275 ${X11_Xinput_INCLUDE_PATH}
280 ## Warnings as errors, this is too strict!
282 # set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /WX")
294 intern/GHOST_DisplayManagerWin32.cpp
295 intern/GHOST_SystemWin32.cpp
296 intern/GHOST_SystemPathsWin32.cpp
297 intern/GHOST_WindowWin32.cpp
298 intern/GHOST_DropTargetWin32.cpp
300 intern/GHOST_DisplayManagerWin32.h
301 intern/GHOST_DropTargetWin32.h
302 intern/GHOST_SystemWin32.h
303 intern/GHOST_SystemPathsWin32.h
304 intern/GHOST_WindowWin32.h
305 intern/GHOST_TaskbarWin32.h
310 intern/GHOST_NDOFManagerWin32.cpp
312 intern/GHOST_NDOFManagerWin32.h
318 blender_add_lib(bf_intern_ghost "${SRC}" "${INC}" "${INC_SYS}")