[cmake]: Add history log

1. Remove SVN version record.
2. CMakeLists will record max 10 git version.
3. Use mpp_show_history to control the history display.
4. Use strings libmpp.so | grep author to get history log from binary.

Change-Id: I5231ced4031d868fe1329488c914730dc91a3531
Signed-off-by: Herman Chen <herman.chen@rock-chips.com>
This commit is contained in:
Herman Chen
2020-03-03 18:04:47 +08:00
parent 14cae9c4ca
commit 54b047e396
6 changed files with 89 additions and 170 deletions

View File

@@ -17,15 +17,21 @@
#define MODULE_TAG "mpp_info_test"
#include "mpp_log.h"
#include "mpp_env.h"
#include "mpp_info.h"
int main()
{
mpp_log("mpp revision is %d\n", mpp_info_get_revision());
mpp_log("mpp info all:\n%s\n", mpp_info_get(INFO_ALL));
mpp_log("mpp info revision: %s\n", mpp_info_get(INFO_REVISION));
mpp_log("mpp info date : %s\n", mpp_info_get(INFO_DATE));
mpp_log("mpp info author : %s\n", mpp_info_get(INFO_AUTHOR));
mpp_env_set_u32("mpp_show_history", 0);
mpp_log("normal version log:\n");
show_mpp_version();
mpp_env_set_u32("mpp_show_history", 1);
mpp_log("history version log:\n");
show_mpp_version();
mpp_env_set_u32("mpp_show_history", 0);
return 0;
}