Cleanup CAS_VERSION

Signed-off-by: Robert Baldyga <robert.baldyga@intel.com>
This commit is contained in:
Robert Baldyga
2019-09-19 11:37:46 +02:00
parent b9de71126b
commit 19bc5da2cf
8 changed files with 14 additions and 75 deletions

View File

@@ -1,29 +0,0 @@
/*
* Copyright(c) 2012-2019 Intel Corporation
* SPDX-License-Identifier: BSD-3-Clause-Clear
*/
#ifndef __CAS_VERSION_H__
#define __CAS_VERSION_H__
#if !defined(CAS_BUILD_NO)
#error "You must define build number for version"
#endif
#define STR_PREP(x) #x
#define FMT_VERSION(x) STR_PREP(x)
#ifdef CAS_BUILD_FLAG
#define CAS_VERSION_FLAG "-"CAS_BUILD_FLAG
#else
#define CAS_VERSION_FLAG ""
#endif
#define CAS_VERSION \
FMT_VERSION(CAS_VERSION_MAIN) "." \
FMT_VERSION(CAS_VERSION_MAJOR) "." \
FMT_VERSION(CAS_VERSION_MINOR) "." \
CAS_BUILD_NO \
CAS_VERSION_FLAG
#endif