diff options
author | Egor Tensin <Egor.Tensin@gmail.com> | 2023-06-30 02:37:27 +0200 |
---|---|---|
committer | Egor Tensin <Egor.Tensin@gmail.com> | 2023-06-30 03:32:14 +0200 |
commit | e928ce51bd8c26742abfd537b054483a18a9689c (patch) | |
tree | ad3bfcf7b509dbde4681c011237c8bd23ee8583f /src/const.c.template | |
parent | fix function names in error messages (diff) | |
download | cimple-e928ce51bd8c26742abfd537b054483a18a9689c.tar.gz cimple-e928ce51bd8c26742abfd537b054483a18a9689c.zip |
show git hash with --version
Also, use cmake's configure_file to build string constants in.
Diffstat (limited to 'src/const.c.template')
-rw-r--r-- | src/const.c.template | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/const.c.template b/src/const.c.template new file mode 100644 index 0000000..5afd8ad --- /dev/null +++ b/src/const.c.template @@ -0,0 +1,13 @@ +/* + * Copyright (c) 2023 Egor Tensin <Egor.Tensin@gmail.com> + * This file is part of the "cimple" project. + * For details, see https://github.com/egor-tensin/cimple. + * Distributed under the MIT License. + */ + +const char *project_version = "@PROJECT_VERSION@"; +const char *project_rev = "@PROJECT_REV@"; + +const char *default_host = "@DEFAULT_HOST@"; +const char *default_port = "@DEFAULT_PORT@"; +const char *default_sqlite_path = "@DEFAULT_SQLITE_PATH@"; |