summaryrefslogtreecommitdiff
path: root/testing/toxic
diff options
context:
space:
mode:
authorirungentoo <irungentoo@gmail.com>2013-08-08 06:34:42 -0700
committerirungentoo <irungentoo@gmail.com>2013-08-08 06:34:42 -0700
commit7d7dd641f92909a06f49646ff16b08e0f4de7ccc (patch)
treea7496278c480704bc25559d5c83d9409134ab351 /testing/toxic
parent4e4a7b9e615f2eba097d052485683fa4e249f611 (diff)
parent4d0cce2f69b4a4f99b694e65d6c5ccaf38ef57b8 (diff)
Merge pull request #384 from stqism/master
Adds full -D support to toxics versioning, includes the commit number
Diffstat (limited to 'testing/toxic')
-rw-r--r--testing/toxic/CMakeLists.txt3
-rw-r--r--testing/toxic/main.c2
2 files changed, 4 insertions, 1 deletions
diff --git a/testing/toxic/CMakeLists.txt b/testing/toxic/CMakeLists.txt
index f30d8e9e..38f02dc6 100644
--- a/testing/toxic/CMakeLists.txt
+++ b/testing/toxic/CMakeLists.txt
@@ -1,6 +1,9 @@
1cmake_minimum_required(VERSION 2.6.0) 1cmake_minimum_required(VERSION 2.6.0)
2project(toxic C) 2project(toxic C)
3 3
4execute_process(COMMAND git rev-list HEAD --count OUTPUT_VARIABLE COMMIT)
5SET(GCC_COVERAGE_COMPILE_FLAGS '-DTOXICVER="0.1.1_r${COMMIT}"')
6add_definitions(${GCC_COVERAGE_COMPILE_FLAGS})
4set(exe_name toxic) 7set(exe_name toxic)
5 8
6add_executable(${exe_name} 9add_executable(${exe_name}
diff --git a/testing/toxic/main.c b/testing/toxic/main.c
index d1519556..d4579571 100644
--- a/testing/toxic/main.c
+++ b/testing/toxic/main.c
@@ -22,7 +22,7 @@ extern int add_req(uint8_t *public_key); // XXX
22 22
23/* Holds status of chat windows */ 23/* Holds status of chat windows */
24char WINDOW_STATUS[MAX_WINDOW_SLOTS]; 24char WINDOW_STATUS[MAX_WINDOW_SLOTS];
25#define TOXICVER "0.1.0" //Will be moved to a -D flag later 25//#define TOXICVER "0.1.0" //Will be moved to a -D flag later
26 26
27static ToxWindow windows[MAX_WINDOW_SLOTS]; 27static ToxWindow windows[MAX_WINDOW_SLOTS];
28static ToxWindow* prompt; 28static ToxWindow* prompt;