diff options
author | irungentoo <irungentoo@gmail.com> | 2013-08-08 06:34:42 -0700 |
---|---|---|
committer | irungentoo <irungentoo@gmail.com> | 2013-08-08 06:34:42 -0700 |
commit | 7d7dd641f92909a06f49646ff16b08e0f4de7ccc (patch) | |
tree | a7496278c480704bc25559d5c83d9409134ab351 /testing/toxic | |
parent | 4e4a7b9e615f2eba097d052485683fa4e249f611 (diff) | |
parent | 4d0cce2f69b4a4f99b694e65d6c5ccaf38ef57b8 (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.txt | 3 | ||||
-rw-r--r-- | testing/toxic/main.c | 2 |
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 @@ | |||
1 | cmake_minimum_required(VERSION 2.6.0) | 1 | cmake_minimum_required(VERSION 2.6.0) |
2 | project(toxic C) | 2 | project(toxic C) |
3 | 3 | ||
4 | execute_process(COMMAND git rev-list HEAD --count OUTPUT_VARIABLE COMMIT) | ||
5 | SET(GCC_COVERAGE_COMPILE_FLAGS '-DTOXICVER="0.1.1_r${COMMIT}"') | ||
6 | add_definitions(${GCC_COVERAGE_COMPILE_FLAGS}) | ||
4 | set(exe_name toxic) | 7 | set(exe_name toxic) |
5 | 8 | ||
6 | add_executable(${exe_name} | 9 | add_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 */ |
24 | char WINDOW_STATUS[MAX_WINDOW_SLOTS]; | 24 | char 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 | ||
27 | static ToxWindow windows[MAX_WINDOW_SLOTS]; | 27 | static ToxWindow windows[MAX_WINDOW_SLOTS]; |
28 | static ToxWindow* prompt; | 28 | static ToxWindow* prompt; |