Переглянути джерело

Maintain semantic version info in core/version.h (#1630)

Remove version info from config_common.cmake, ref to #1617
liang.he 3 роки тому
батько
коміт
b5eea934cf
3 змінених файлів з 0 додано та 33 видалено
  1. 0 16
      build-scripts/config_common.cmake
  2. 0 3
      core/version.h
  3. 0 14
      core/version.h.in

+ 0 - 16
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:")

+ 0 - 3
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

+ 0 - 14
core/version.h.in

@@ -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