forked from xournalpp/xournalpp
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Config: Move git info to separate header
Reduces build tasks after checkout from ~120 to 2 object files and their dependencies
- Loading branch information
Showing
5 changed files
with
49 additions
and
28 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
/* | ||
* Xournal++ | ||
* | ||
* Current git repo info | ||
* | ||
* @author Xournal++ Team | ||
* https://github.com/xournalpp/xournalpp | ||
* | ||
* @license GNU GPLv2 or later | ||
*/ | ||
|
||
#pragma once | ||
|
||
|
||
/* --- Current git repo info --- */ | ||
|
||
/** | ||
* Origin URL of current repository | ||
*/ | ||
constexpr auto GIT_ORIGIN_URL = "@GIT_ORIGIN_URL@"; | ||
|
||
/** | ||
* Git origin repo owner | ||
*/ | ||
constexpr auto GIT_ORIGIN_OWNER = "@GIT_ORIGIN_OWNER@"; | ||
|
||
/** | ||
* Git origin repo name | ||
*/ | ||
constexpr auto GIT_ORIGIN_REPO = "@GIT_ORIGIN_REPO@"; | ||
|
||
/** | ||
* Current branch of git repo | ||
*/ | ||
constexpr auto GIT_BRANCH = "@GIT_BRANCH@"; | ||
|
||
/** | ||
* Current git commit id (with "-dirty" appended if dirty source tree) | ||
*/ | ||
constexpr auto GIT_COMMIT_ID = "@RELEASE_IDENTIFIER@"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters