From b5eea934cfaef5208a7bb4c9813699697d352fe1 Mon Sep 17 00:00:00 2001 From: "liang.he" Date: Mon, 24 Oct 2022 12:46:03 +0800 Subject: [PATCH] Maintain semantic version info in core/version.h (#1630) Remove version info from config_common.cmake, ref to #1617 --- build-scripts/config_common.cmake | 16 ---------------- core/version.h | 3 --- core/version.h.in | 14 -------------- 3 files changed, 33 deletions(-) delete mode 100644 core/version.h.in diff --git a/build-scripts/config_common.cmake b/build-scripts/config_common.cmake index 201f9499..52a2aa7c 100644 --- a/build-scripts/config_common.cmake +++ b/build-scripts/config_common.cmake @@ -109,22 +109,6 @@ else () unset (LLVM_AVAILABLE_LIBS) endif () -######################################## -## semantic version information - -if (NOT DEFINED WAMR_VERSION_MAJOR) - set (WAMR_VERSION_MAJOR 1) -endif () - -if (NOT DEFINED WAMR_VERSION_MINOR) - set (WAMR_VERSION_MINOR 1) -endif () - -if (NOT DEFINED WAMR_VERSION_PATCH) - set (WAMR_VERSION_PATCH 1) -endif () - -configure_file(${WAMR_ROOT_DIR}/core/version.h.in ${WAMR_ROOT_DIR}/core/version.h @ONLY) ######################################## message ("-- Build Configurations:") diff --git a/core/version.h b/core/version.h index 0ab4312a..4a528c42 100644 --- a/core/version.h +++ b/core/version.h @@ -3,9 +3,6 @@ * SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception */ -/* Please don't modify this header. It is automatically generated. - Any modification should be in config_common.cmake */ - #ifndef _WAMR_VERSION_H_ #define _WAMR_VERSION_H_ #define WAMR_VERSION_MAJOR 1 diff --git a/core/version.h.in b/core/version.h.in deleted file mode 100644 index 882305a8..00000000 --- a/core/version.h.in +++ /dev/null @@ -1,14 +0,0 @@ -/* - * Copyright (C) 2019 Intel Corporation. All rights reserved. - * SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception - */ - -/* Please don't modify this header. It is automatically generated. - Any modification should be in config_common.cmake */ - -#ifndef _WAMR_VERSION_H_ -#define _WAMR_VERSION_H_ -#cmakedefine WAMR_VERSION_MAJOR @WAMR_VERSION_MAJOR@ -#define WAMR_VERSION_MINOR @WAMR_VERSION_MINOR@ -#define WAMR_VERSION_PATCH @WAMR_VERSION_PATCH@ -#endif