summaryrefslogtreecommitdiff
blob: 75ca1d366fbe4cf6e66d4e8e550e4df175b2300b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
From 6b4e0a3ebcc2f43e1918ff84ddb25f87accbcd78 Mon Sep 17 00:00:00 2001
From: Albert Zeyer <albert.zeyer@rwth-aachen.de>
Date: Tue, 12 Jan 2010 16:49:35 +0100
Subject: [PATCH] option in CMake to disable joystick support

---
 CMakeOlxCommon.cmake |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)

diff --git a/CMakeOlxCommon.cmake b/CMakeOlxCommon.cmake
index e4279ca..815d310 100644
--- a/CMakeOlxCommon.cmake
+++ b/CMakeOlxCommon.cmake
@@ -33,6 +33,7 @@ OPTION(PYTHON_DED_EMBEDDED "Python embedded in dedicated server"  No)
 OPTION(OPTIM_PROJECTILES "Enable optimisations for projectiles" Yes)
 OPTION(MEMSTATS "Enable memory statistics and debugging" No)
 OPTION(BREAKPAD "Google Breakpad support" Yes)
+OPTION(DISABLE_JOYSTICK "Disable joystick support" No)
 
 IF (DEBUG)
 	SET(CMAKE_BUILD_TYPE Debug)
@@ -161,6 +162,10 @@ ELSE (BREAKPAD)
 	ADD_DEFINITIONS(-DNBREAKPAD)
 ENDIF (BREAKPAD)
 
+IF (DISABLE_JOYSTICK)
+	ADD_DEFINITIONS(-DDISABLE_JOYSTICK)
+ENDIF (DISABLE_JOYSTICK)
+
 IF (GCOREDUMPER)
 	INCLUDE_DIRECTORIES(${OLXROOTDIR}/libs/coredumper/src)
 	ADD_DEFINITIONS(-DGCOREDUMPER)
-- 
1.6.3