mirror of
https://github.com/KingDuckZ/dindexer.git
synced 2025-07-03 14:14:11 +00:00
Move git hash into a dedicated .h so less compiling happens after a commit
This commit is contained in:
parent
fde1355653
commit
94ebfbdfcb
5 changed files with 29 additions and 1 deletions
|
@ -67,6 +67,10 @@ configure_file(
|
||||||
"${PROJECT_SOURCE_DIR}/src/${bare_name}Config.h.in"
|
"${PROJECT_SOURCE_DIR}/src/${bare_name}Config.h.in"
|
||||||
"${PROJECT_BINARY_DIR}/${bare_name}Config.h"
|
"${PROJECT_BINARY_DIR}/${bare_name}Config.h"
|
||||||
)
|
)
|
||||||
|
configure_file(
|
||||||
|
"${PROJECT_SOURCE_DIR}/src/gitinfo.h.in"
|
||||||
|
"${PROJECT_BINARY_DIR}/gitinfo.h"
|
||||||
|
)
|
||||||
configure_file(
|
configure_file(
|
||||||
"${PROJECT_SOURCE_DIR}/dindexer.sql.in"
|
"${PROJECT_SOURCE_DIR}/dindexer.sql.in"
|
||||||
"${PROJECT_BINARY_DIR}/dindexer.sql"
|
"${PROJECT_BINARY_DIR}/dindexer.sql"
|
||||||
|
|
|
@ -17,6 +17,7 @@
|
||||||
|
|
||||||
#include "dindexer-common/commandline.hpp"
|
#include "dindexer-common/commandline.hpp"
|
||||||
#include "dindexerConfig.h"
|
#include "dindexerConfig.h"
|
||||||
|
#include "gitinfo.h"
|
||||||
#include "helpers/lengthof.h"
|
#include "helpers/lengthof.h"
|
||||||
#include "helpers/stringize.h"
|
#include "helpers/stringize.h"
|
||||||
#include "helpers/infix_iterator.hpp"
|
#include "helpers/infix_iterator.hpp"
|
||||||
|
|
|
@ -25,7 +25,6 @@
|
||||||
#define VERSION_MINOR @PROJECT_VERSION_MINOR@
|
#define VERSION_MINOR @PROJECT_VERSION_MINOR@
|
||||||
#define VERSION_BETA @PROJECT_VERSION_BETA@
|
#define VERSION_BETA @PROJECT_VERSION_BETA@
|
||||||
#define VERSION_PATCH @PROJECT_VERSION_PATCH@
|
#define VERSION_PATCH @PROJECT_VERSION_PATCH@
|
||||||
#define VERSION_GIT "@PROJECT_VERSION_GIT@"
|
|
||||||
#define CONFIG_FILE_PATH "@DINDEXER_CONFIG_FILE@"
|
#define CONFIG_FILE_PATH "@DINDEXER_CONFIG_FILE@"
|
||||||
#define ACTIONS_SEARCH_PATH "@DINDEXER_ACTIONS_PATH@"
|
#define ACTIONS_SEARCH_PATH "@DINDEXER_ACTIONS_PATH@"
|
||||||
#define ACTION_PREFIX "@bare_name@-"
|
#define ACTION_PREFIX "@bare_name@-"
|
||||||
|
|
23
src/gitinfo.h.in
Normal file
23
src/gitinfo.h.in
Normal file
|
@ -0,0 +1,23 @@
|
||||||
|
/* Copyright 2015, 2016, Michele Santullo
|
||||||
|
* This file is part of "dindexer".
|
||||||
|
*
|
||||||
|
* "dindexer" is free software: you can redistribute it and/or modify
|
||||||
|
* it under the terms of the GNU General Public License as published by
|
||||||
|
* the Free Software Foundation, either version 3 of the License, or
|
||||||
|
* (at your option) any later version.
|
||||||
|
*
|
||||||
|
* "dindexer" is distributed in the hope that it will be useful,
|
||||||
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
* GNU General Public License for more details.
|
||||||
|
*
|
||||||
|
* You should have received a copy of the GNU General Public License
|
||||||
|
* along with "dindexer". If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
*/
|
||||||
|
|
||||||
|
#ifndef id326021FDDB1342CA99684805D5D45618
|
||||||
|
#define id326021FDDB1342CA99684805D5D45618
|
||||||
|
|
||||||
|
#define VERSION_GIT "@PROJECT_VERSION_GIT@"
|
||||||
|
|
||||||
|
#endif
|
|
@ -18,6 +18,7 @@
|
||||||
#include "builtin_feats.h"
|
#include "builtin_feats.h"
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include "dindexerConfig.h"
|
#include "dindexerConfig.h"
|
||||||
|
#include "gitinfo.h"
|
||||||
#include "timestamp.h"
|
#include "timestamp.h"
|
||||||
|
|
||||||
void print_builtin_feats() {
|
void print_builtin_feats() {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue