summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--CMakeLists.txt14
-rw-r--r--doc/todo.txt6
2 files changed, 13 insertions, 7 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 8a897f0..0c45e39 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -5,14 +5,18 @@ cmake_minimum_required(VERSION 2.6)
project(oxen)
# Unix Makefile generator: Default to build type 'Release'
-IF(NOT CMAKE_CONFIGURATION_TYPES AND NOT CMAKE_BUILD_TYPE)
- SET(CMAKE_BUILD_TYPE Release)
-ENDIF(NOT CMAKE_CONFIGURATION_TYPES AND NOT CMAKE_BUILD_TYPE)
+if(NOT CMAKE_CONFIGURATION_TYPES AND NOT CMAKE_BUILD_TYPE)
+ set(CMAKE_BUILD_TYPE Release)
+endif(NOT CMAKE_CONFIGURATION_TYPES AND NOT CMAKE_BUILD_TYPE)
# Set C compiler flags
set(CMAKE_C_FLAGS "-Wall -pedantic -std=c99 -D_POSIX_SOURCE")
-SET(CMAKE_C_FLAGS_RELEASE "-O3")
-SET(CMAKE_C_FLAGS_DEBUG "-O0 -g")
+set(CMAKE_C_FLAGS_RELEASE "-O3")
+set(CMAKE_C_FLAGS_DEBUG "-O0 -g")
+
+if(${CMAKE_BUILD_TYPE} MATCHES Debug)
+ add_definitions(-DOXEN_DEBUG)
+endif(${CMAKE_BUILD_TYPE} MATCHES Debug)
# Find dependencies
# Find ncurses
diff --git a/doc/todo.txt b/doc/todo.txt
index a7dac63..545e77a 100644
--- a/doc/todo.txt
+++ b/doc/todo.txt
@@ -1,9 +1,11 @@
== Things that are to do ==
For 0.2:
-TODO: Fix output glitches that occur when a game is recorded and played with ttyrec (this may also be needed for dgamelaunch compatibility)
+TODO: Add a dgamelaunch mode for the server. In this mode, the server only shows the table stacks and open cards of the players. In the dgamelaunch watch menu then only the watchmode enabled server will appear, instead of the players clients that would reveal their hand cards and make cheating easy.
TODO: Let a chosen stack blink two or three times before replacing it (draw the stack, then overwrite it with blanks, then draw it again, ...)
TODO: Handle disconnects in server and client.
-TODO: Modify CMakeLists.txt to be able to do debug/release builds.
+
+DONE: Fix output glitches that occur when a game is recorded and played with ttyrec (this may also be needed for dgamelaunch compatibility) -- Actually, there were no such output glitches. The corrupted output of ttyplay comes from a bug in ttyplay that is fixed in recent dgamelaunch versions.
+DONE: Modify CMakeLists.txt to be able to do debug/release builds. (Release builds are default; For debug builds, add -DCMAKE_BUILD_TYPE=Debug to the cmake line)
== Work that is done ==