58 lines
1.3 KiB
C
Executable File
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 "v1.1.7-patch-004"
|
|
#define REPO_PATCH ""
|
|
#define REPO_BRANCH "master"
|
|
#define REPO_COMMIT "fb6121392967d52461ea560e0c950f10486bb504"
|
|
#define REPO_DATE "Wed Oct 11 15:47:46 2017 +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
|