BGE: Adding a Python interface for handling joysticks without needing logic bricks...
[blender.git] / source / gameengine / GameLogic / CMakeLists.txt
1 # ***** BEGIN GPL LICENSE BLOCK *****
2 #
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.
7 #
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.
12 #
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.
16 #
17 # The Original Code is Copyright (C) 2006, Blender Foundation
18 # All rights reserved.
19 #
20 # The Original Code is: all of this file.
21 #
22 # Contributor(s): Jacques Beaurain.
23 #
24 # ***** END GPL LICENSE BLOCK *****
25
26 set(INC
27         .
28         ../Expressions
29         ../Rasterizer
30         ../SceneGraph
31         ../../blender/blenlib
32         ../../../intern/container
33         ../../../intern/moto/include
34         ../../../intern/string
35         ../../../intern/ghost
36 )
37
38 set(INC_SYS
39
40 )
41
42 set(SRC
43         SCA_2DFilterActuator.cpp
44         SCA_ANDController.cpp
45         SCA_ActuatorEventManager.cpp
46         SCA_ActuatorSensor.cpp
47         SCA_AlwaysEventManager.cpp
48         SCA_AlwaysSensor.cpp
49         SCA_BasicEventManager.cpp
50         SCA_DelaySensor.cpp
51         SCA_EventManager.cpp
52         SCA_ExpressionController.cpp
53         SCA_IActuator.cpp
54         SCA_IController.cpp
55         SCA_IInputDevice.cpp
56         SCA_ILogicBrick.cpp
57         SCA_IObject.cpp
58         SCA_IScene.cpp
59         SCA_ISensor.cpp
60         SCA_JoystickManager.cpp
61         SCA_JoystickSensor.cpp
62         SCA_KeyboardManager.cpp
63         SCA_KeyboardSensor.cpp
64         SCA_LogicManager.cpp
65         SCA_MouseManager.cpp
66         SCA_MouseSensor.cpp
67         SCA_NANDController.cpp
68         SCA_NORController.cpp
69         SCA_ORController.cpp
70         SCA_PropertyActuator.cpp
71         SCA_PropertyEventManager.cpp
72         SCA_PropertySensor.cpp
73         SCA_PythonController.cpp
74         SCA_PythonJoystick.cpp
75         SCA_PythonKeyboard.cpp
76         SCA_PythonMouse.cpp
77         SCA_RandomActuator.cpp
78         SCA_RandomEventManager.cpp
79         SCA_RandomNumberGenerator.cpp
80         SCA_RandomSensor.cpp
81         SCA_TimeEventManager.cpp
82         SCA_XNORController.cpp
83         SCA_XORController.cpp
84         Joystick/SCA_Joystick.cpp
85         Joystick/SCA_JoystickEvents.cpp
86
87         SCA_2DFilterActuator.h
88         SCA_ANDController.h
89         SCA_ActuatorEventManager.h
90         SCA_ActuatorSensor.h
91         SCA_AlwaysEventManager.h
92         SCA_AlwaysSensor.h
93         SCA_BasicEventManager.h
94         SCA_DelaySensor.h
95         SCA_EventManager.h
96         SCA_ExpressionController.h
97         SCA_IActuator.h
98         SCA_IController.h
99         SCA_IInputDevice.h
100         SCA_ILogicBrick.h
101         SCA_IObject.h
102         SCA_IScene.h
103         SCA_ISensor.h
104         SCA_JoystickManager.h
105         SCA_JoystickSensor.h
106         SCA_KeyboardManager.h
107         SCA_KeyboardSensor.h
108         SCA_LogicManager.h
109         SCA_MouseManager.h
110         SCA_MouseSensor.h
111         SCA_NANDController.h
112         SCA_NORController.h
113         SCA_ORController.h
114         SCA_PropertyActuator.h
115         SCA_PropertyEventManager.h
116         SCA_PropertySensor.h
117         SCA_PythonController.h
118         SCA_PythonJoystick.h
119         SCA_PythonKeyboard.h
120         SCA_PythonMouse.h
121         SCA_RandomActuator.h
122         SCA_RandomEventManager.h
123         SCA_RandomNumberGenerator.h
124         SCA_RandomSensor.h
125         SCA_TimeEventManager.h
126         SCA_XNORController.h
127         SCA_XORController.h
128         Joystick/SCA_Joystick.h
129         Joystick/SCA_JoystickDefines.h
130         Joystick/SCA_JoystickPrivate.h
131 )
132
133 if(WITH_SDL)
134         list(APPEND INC_SYS
135                 ${SDL_INCLUDE_DIR}
136         )
137
138         add_definitions(-DWITH_SDL)
139
140         if(WITH_GHOST_SDL)
141                 add_definitions(-DWITH_GHOST_SDL)
142         endif()
143 endif()
144
145 blender_add_lib(ge_logic "${SRC}" "${INC}" "${INC_SYS}")