-
Notifications
You must be signed in to change notification settings - Fork 644
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add versioning support and update CMake configuration
- Loading branch information
Showing
6 changed files
with
67 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
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,25 @@ | ||
# Copyright (C) 2019 Intel Corporation. All rights reserved. | ||
# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception | ||
|
||
# BE AWARE: This file depends on ${WAMR_ROOT_DIR} | ||
|
||
set(WAMR_VERSION_MAJOR 2) | ||
set(WAMR_VERSION_MINOR 2) | ||
set(WAMR_VERSION_PATCH 0) | ||
|
||
message("-- WAMR version: ${WAMR_VERSION_MAJOR}.${WAMR_VERSION_MINOR}.${WAMR_VERSION_PATCH}") | ||
|
||
# Configure the version header file | ||
configure_file( | ||
${WAMR_ROOT_DIR}/core/version.h.in | ||
${WAMR_ROOT_DIR}/core/version.h | ||
) | ||
|
||
# Set the library version and SOVERSION | ||
function(set_version_info target) | ||
set_target_properties(${target} | ||
PROPERTIES | ||
VERSION ${WAMR_VERSION_MAJOR}.${WAMR_VERSION_MINOR}.${WAMR_VERSION_PATCH} | ||
SOVERSION ${WAMR_VERSION_MAJOR} | ||
) | ||
endfunction() |
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) 2019 Intel Corporation. All rights reserved. | ||
* SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception | ||
*/ | ||
|
||
/* | ||
* version.h.in is a template file. version.h is a generated file. | ||
* Please do not edit both files directly. | ||
* | ||
* Any changes to the version should be done in the version.cmake file. | ||
*/ | ||
|
||
#ifndef _WAMR_VERSION_H_ | ||
#define _WAMR_VERSION_H_ | ||
|
||
/* clang-format off */ | ||
#define WAMR_VERSION_MAJOR @WAMR_VERSION_MAJOR@ | ||
#define WAMR_VERSION_MINOR @WAMR_VERSION_MINOR@ | ||
#define WAMR_VERSION_PATCH @WAMR_VERSION_PATCH@ | ||
/* clang-format on */ | ||
|
||
#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