mirror of
https://github.com/Tha14/toxic.git
synced 2024-12-23 12:13:24 +01:00
Merge pull request #384 from stqism/master
Adds full -D support to toxics versioning, includes the commit number
This commit is contained in:
commit
7bcff9eb99
@ -1,6 +1,9 @@
|
||||
cmake_minimum_required(VERSION 2.6.0)
|
||||
project(toxic C)
|
||||
|
||||
execute_process(COMMAND git rev-list HEAD --count OUTPUT_VARIABLE COMMIT)
|
||||
SET(GCC_COVERAGE_COMPILE_FLAGS '-DTOXICVER="0.1.1_r${COMMIT}"')
|
||||
add_definitions(${GCC_COVERAGE_COMPILE_FLAGS})
|
||||
set(exe_name toxic)
|
||||
|
||||
add_executable(${exe_name}
|
||||
|
2
main.c
2
main.c
@ -22,7 +22,7 @@ extern int add_req(uint8_t *public_key); // XXX
|
||||
|
||||
/* Holds status of chat windows */
|
||||
char WINDOW_STATUS[MAX_WINDOW_SLOTS];
|
||||
#define TOXICVER "0.1.0" //Will be moved to a -D flag later
|
||||
//#define TOXICVER "0.1.0" //Will be moved to a -D flag later
|
||||
|
||||
static ToxWindow windows[MAX_WINDOW_SLOTS];
|
||||
static ToxWindow* prompt;
|
||||
|
Loading…
Reference in New Issue
Block a user