From e928ce51bd8c26742abfd537b054483a18a9689c Mon Sep 17 00:00:00 2001 From: Egor Tensin Date: Fri, 30 Jun 2023 02:37:27 +0200 Subject: show git hash with --version Also, use cmake's configure_file to build string constants in. --- src/const.h | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) (limited to 'src/const.h') diff --git a/src/const.h b/src/const.h index 2e7054b..94723c6 100644 --- a/src/const.h +++ b/src/const.h @@ -8,11 +8,12 @@ #ifndef __CONST_H__ #define __CONST_H__ -#ifndef DEFAULT_HOST -#define DEFAULT_HOST "127.0.0.1" -#endif -#define DEFAULT_PORT "5556" -#define DEFAULT_SQLITE_PATH "/var/lib/cimple/cimple.sqlite" +extern const char *project_version; +extern const char *project_rev; + +extern const char *default_host; +extern const char *default_port; +extern const char *default_sqlite_path; #define CMD_RUN "run" #define CMD_NEW_WORKER "new-worker" -- cgit v1.2.3