-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add plumb meson version into ashuffle.
We use Meson's `configure_file` to fill in a string variable in a new `libversion` library. This value is printed when a version flag is provided.
- Loading branch information
Showing
4 changed files
with
48 additions
and
7 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
#include "version.h" | ||
|
||
namespace ashuffle { | ||
|
||
// Filled in by Meson. | ||
const char* kVersion = "@VERSION@"; | ||
|
||
} // namespace ashuffle |
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,13 @@ | ||
|
||
#ifndef __ASHUFFLE_VERSION_H__ | ||
#define __ASHUFFLE_VERSION_H__ | ||
|
||
namespace ashuffle { | ||
|
||
// kVersion is filled in by the build system to contain the version of | ||
// ashuffle. | ||
extern const char* kVersion; | ||
|
||
} // namespace ashuffle | ||
|
||
#endif // __ASHUFFLE_VERSION_H__ |