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 *****
30 ../../source/blender/imbuf
31 ../../source/blender/makesdna
39 intern/GHOST_Buttons.cpp
40 intern/GHOST_C-api.cpp
41 intern/GHOST_CallbackEventConsumer.cpp
42 intern/GHOST_Context.cpp
43 intern/GHOST_ContextNone.cpp
44 intern/GHOST_DisplayManager.cpp
45 intern/GHOST_EventManager.cpp
46 intern/GHOST_ISystem.cpp
47 intern/GHOST_ISystemPaths.cpp
48 intern/GHOST_ModifierKeys.cpp
49 intern/GHOST_Path-api.cpp
51 intern/GHOST_System.cpp
52 intern/GHOST_TimerManager.cpp
53 intern/GHOST_Window.cpp
54 intern/GHOST_WindowManager.cpp
59 GHOST_IEventConsumer.h
68 intern/GHOST_Buttons.h
69 intern/GHOST_CallbackEventConsumer.h
70 intern/GHOST_Context.h
71 intern/GHOST_ContextNone.h
73 intern/GHOST_DisplayManager.h
75 intern/GHOST_EventButton.h
76 intern/GHOST_EventCursor.h
77 intern/GHOST_EventDragnDrop.h
78 intern/GHOST_EventKey.h
79 intern/GHOST_EventManager.h
80 intern/GHOST_EventString.h
81 intern/GHOST_EventTrackpad.h
82 intern/GHOST_EventWheel.h
83 intern/GHOST_ModifierKeys.h
85 intern/GHOST_SystemPaths.h
86 intern/GHOST_TimerManager.h
87 intern/GHOST_TimerTask.h
89 intern/GHOST_WindowManager.h
94 intern/GHOST_EventPrinter.cpp
96 intern/GHOST_EventPrinter.h
98 add_definitions(-DWITH_GHOST_DEBUG)
102 add_definitions(-DWITH_INPUT_NDOF)
105 intern/GHOST_NDOFManager.cpp
107 intern/GHOST_EventNDOF.h
108 intern/GHOST_NDOFManager.h
116 if(WITH_HEADLESS OR WITH_GHOST_SDL)
119 intern/GHOST_DisplayManagerNULL.h
120 intern/GHOST_SystemNULL.h
121 intern/GHOST_WindowNULL.h
123 add_definitions(-DWITH_HEADLESS)
126 intern/GHOST_DisplayManagerSDL.cpp
127 intern/GHOST_SystemSDL.cpp
128 intern/GHOST_WindowSDL.cpp
129 intern/GHOST_ContextSDL.cpp
131 intern/GHOST_DisplayManagerSDL.h
132 intern/GHOST_SystemSDL.h
133 intern/GHOST_WindowSDL.h
134 intern/GHOST_ContextSDL.h
136 add_definitions(-DWITH_GHOST_SDL)
139 if(NOT WITH_HEADLESS)
145 elseif(APPLE AND NOT WITH_X11)
147 intern/GHOST_DisplayManagerCocoa.mm
148 intern/GHOST_SystemCocoa.mm
149 intern/GHOST_WindowCocoa.mm
151 intern/GHOST_DisplayManagerCocoa.h
152 intern/GHOST_SystemCocoa.h
153 intern/GHOST_WindowCocoa.h
158 intern/GHOST_ContextCGL.mm
160 intern/GHOST_ContextCGL.h
166 intern/GHOST_NDOFManagerCocoa.mm
168 intern/GHOST_NDOFManagerCocoa.h
174 ${X11_X11_INCLUDE_PATH}
178 intern/GHOST_DisplayManagerX11.cpp
179 intern/GHOST_SystemX11.cpp
180 intern/GHOST_WindowX11.cpp
181 intern/GHOST_TaskbarX11.cpp
183 intern/GHOST_DisplayManagerX11.h
184 intern/GHOST_SystemX11.h
185 intern/GHOST_WindowX11.h
186 intern/GHOST_TaskbarX11.h
191 intern/GHOST_ContextGLX.cpp
193 intern/GHOST_ContextGLX.h
198 add_definitions(-DWITH_XDND)
205 intern/GHOST_DropTargetX11.cpp
207 intern/GHOST_DropTargetX11.h
211 if(X11_XF86keysym_INCLUDE_PATH)
212 add_definitions(-DWITH_XF86KEYSYM)
214 ${X11_XF86keysym_INCLUDE_PATH}
218 if(WITH_X11_XF86VMODE)
219 add_definitions(-DWITH_X11_XF86VMODE)
221 ${X11_xf86vmode_INCLUDE_PATH}
226 add_definitions(-DWITH_X11_XFIXES)
228 ${X11_Xfixes_INCLUDE_PATH}
233 add_definitions(-DWITH_X11_ALPHA)
238 intern/GHOST_NDOFManagerUnix.cpp
240 intern/GHOST_NDOFManagerUnix.h
244 if(NOT WITH_INSTALL_PORTABLE)
245 add_definitions(-DPREFIX="${CMAKE_INSTALL_PREFIX}")
249 add_definitions(-DWITH_X11_XINPUT)
251 ${X11_Xinput_INCLUDE_PATH}
255 add_definitions(-DWITH_X11)
258 ## Warnings as errors, this is too strict!
260 # set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /WX")
268 intern/GHOST_DisplayManagerWin32.cpp
269 intern/GHOST_SystemWin32.cpp
270 intern/GHOST_WindowWin32.cpp
271 intern/GHOST_DropTargetWin32.cpp
273 intern/GHOST_DisplayManagerWin32.h
274 intern/GHOST_DropTargetWin32.h
275 intern/GHOST_SystemWin32.h
276 intern/GHOST_WindowWin32.h
277 intern/GHOST_TaskbarWin32.h
282 intern/GHOST_ContextWGL.cpp
284 intern/GHOST_ContextWGL.h
289 add_definitions(-DWITH_INPUT_IME)
292 intern/GHOST_ImeWin32.cpp
294 intern/GHOST_ImeWin32.h
300 intern/GHOST_NDOFManagerWin32.cpp
302 intern/GHOST_NDOFManagerWin32.h
307 if(WITH_GL_EGL AND NOT (WITH_HEADLESS OR WITH_GHOST_SDL))
309 intern/GHOST_ContextEGL.cpp
311 intern/GHOST_ContextEGL.h
317 intern/GHOST_SystemPathsCocoa.mm
318 intern/GHOST_SystemPathsCocoa.h
323 intern/GHOST_SystemPathsUnix.cpp
324 intern/GHOST_SystemPathsUnix.h
327 if(NOT WITH_INSTALL_PORTABLE)
328 add_definitions(-DPREFIX="${CMAKE_INSTALL_PREFIX}")
333 intern/GHOST_SystemPathsWin32.cpp
334 intern/GHOST_SystemPathsWin32.h
343 add_definitions(${GL_DEFINITIONS})
345 blender_add_lib(bf_intern_ghost "${SRC}" "${INC}" "${INC_SYS}")