Add versioning support and update CMake configuration
This commit is contained in:
committed by
Marcin Kolny
parent
67cd5043d3
commit
e64685f43c
@ -3,9 +3,20 @@
|
||||
* 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 2
|
||||
#define WAMR_VERSION_MINOR 2
|
||||
#define WAMR_VERSION_PATCH 0
|
||||
/* clang-format on */
|
||||
|
||||
#endif
|
||||
|
||||
22
core/version.h.in
Normal file
22
core/version.h.in
Normal file
@ -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
|
||||
Reference in New Issue
Block a user