-
Notifications
You must be signed in to change notification settings - Fork 106
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: use configure_file for build time string data
- Loading branch information
1 parent
3953e35
commit 05a19b1
Showing
9 changed files
with
21 additions
and
29 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
#pragma once | ||
#include <QtGlobal> | ||
constexpr auto GD_VERSION_NUMBER = "@PROJECT_VERSION@"; | ||
constexpr auto GD_VERSION_STRING = "@GD_VERSION_FULL@"; | ||
#if !defined( Q_OS_WIN ) && !defined( Q_OS_MACOS ) | ||
constexpr auto GD_PROGRAM_DATA_DIR = @GD_PROGRAM_DATA_DIR@; | ||
#endif |
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 |
---|---|---|
@@ -1,6 +1,7 @@ | ||
/* This file is (c) 2008-2012 Konstantin Isakov <[email protected]> | ||
* Part of GoldenDict. Licensed under GPLv3 or later, see the LICENSE file */ | ||
|
||
#include "build_config.hh" | ||
#include "config.hh" | ||
#include "folding.hh" | ||
#include <QSaveFile> | ||
|
@@ -2319,7 +2320,7 @@ QString getProgramDataDir() noexcept | |
#else | ||
// Hardcode a `$PREFIX/share/goldendict` instead of QStandardPaths::AppDataLocation | ||
// to avoid unnecessary downstream packaging changes | ||
return PROGRAM_DATA_DIR; | ||
return GD_PROGRAM_DATA_DIR; | ||
#endif | ||
} | ||
|
||
|
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