SmartAudio/package/allwinner/tina_multimedia/libcedarc/base/include/cdc_version.h

58 lines
1.3 KiB
C
Executable File

/*
* Copyright (c) 2008-2016 Allwinner Technology Co. Ltd.
* All rights reserved.
*
* File : cdc_version.h
* Description :
* History :
* Author : xyliu <xyliu@allwinnertech.com>
* Date : 2016/04/13
* Comment :
*
*
*/
#ifndef CDC_VERSION_H
#define CDC_VERSION_H
#ifdef __cplusplus
extern "C" {
#endif
#define REPO_TAG "CedarC-v1.1.9"
#define REPO_PATCH ""
#define REPO_BRANCH "master"
#define REPO_COMMIT "1951abe1456450ea48bfd446e801861a1354e93c"
#define REPO_DATE "Wed May 30 18:59:36 2018 +0800"
#define RELEASE_AUTHOR "jenkins8080"
static inline void LogVersionInfo(void)
{
logd("\n"
">>>>>>>>>>>>>>>>>>>>>>>>>>>>> Cedar Codec <<<<<<<<<<<<<<<<<<<<<<<<<<<<\n"
"tag : %s\n"
"branch: %s\n"
"commit: %s\n"
"date : %s\n"
"author: %s\n"
"patch : %s\n"
"----------------------------------------------------------------------\n",
REPO_TAG, REPO_BRANCH, REPO_COMMIT, REPO_DATE, RELEASE_AUTHOR, REPO_PATCH);
}
/* usage: TagVersionInfo(myLibTag) */
#define TagVersionInfo(tag) \
static void VersionInfo_##tag(void) __attribute__((constructor));\
void VersionInfo_##tag(void) \
{ \
logd("-------library tag: %s-------", #tag);\
LogVersionInfo(); \
}
#ifdef __cplusplus
}
#endif
#endif