51 lines
1.2 KiB
C
51 lines
1.2 KiB
C
|
/*
|
||
|
* Copyright (c) 2008-2016 Allwinner Technology Co. Ltd.
|
||
|
* All rights reserved.
|
||
|
*
|
||
|
* File : version.h
|
||
|
* Description : cedarx version header file
|
||
|
* History :
|
||
|
*
|
||
|
*/
|
||
|
|
||
|
#ifndef CDX_VERSION_H
|
||
|
#define CDX_VERSION_H
|
||
|
|
||
|
#ifdef __cplusplus
|
||
|
extern "C" {
|
||
|
#endif
|
||
|
|
||
|
#define REPO_TAG "CedarX-2.7.0"
|
||
|
#define REPO_BRANCH "master"
|
||
|
#define REPO_COMMIT "348ce25f100af07dd70b9d927a266a0c83e9c3ce"
|
||
|
#define REPO_DATE "Mon, 31 Oct 2016 05:17:22 +0000 (13:17 +0800)"
|
||
|
#define RELEASE_AUTHOR ""
|
||
|
|
||
|
static inline void LogVersionInfo(void)
|
||
|
{
|
||
|
logd("\n"
|
||
|
">>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> CedarX <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<\n"
|
||
|
"tag : %s\n"
|
||
|
"branch: %s\n"
|
||
|
"commit: %s\n"
|
||
|
"date : %s\n"
|
||
|
"author: %s\n"
|
||
|
"----------------------------------------------------------------------\n",
|
||
|
REPO_TAG, REPO_BRANCH, REPO_COMMIT, REPO_DATE, RELEASE_AUTHOR);
|
||
|
}
|
||
|
|
||
|
/* 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
|