Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
version: add generated define for version
For memory footprint reason it can be useful for applications to use defines during the build pre-processing step. Add a generated version_def.h file that will be accessible in the the install directory ./build/bin/usr/local/include/openamp/. Application will be able to use the version.h or the version_def.h depending on its need. Signed-off-by: Arnaud Pouliquen <arnaud.pouliquen@foss.st.com>
- Loading branch information
Showing
2 changed files
with
26 additions
and
0 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,22 @@ | ||
/* | ||
* Copyright (c) 2021, STMicroelectronics. | ||
* | ||
* SPDX-License-Identifier: BSD-3-Clause | ||
*/ | ||
|
||
/* | ||
* @file version_def.h | ||
* @brief generated version definition for OpenAMP library. | ||
*/ | ||
|
||
#ifndef __OPENAMP_VERSION_DEF__H__ | ||
#define __OPENAMP_VERSION_DEF__H__ | ||
|
||
/* @templates@ values come from cmake/option.cmake */ | ||
|
||
#define OPENAMP_VERSION_MAJOR @PROJECT_VERSION_MAJOR@ | ||
#define OPENAMP_VERSION_MINOR @PROJECT_VERSION_MINOR@ | ||
#define OPENAMP_VERSION_PATCH @PROJECT_VERSION_PATCH@ | ||
#define OPENAMP_VERSION "@PROJECT_VERSION@" | ||
|
||
#endif /* __OPENAMP_VERSION_DEF__H__ */ |