From: SeokYeon Hwang Date: Sat, 14 Nov 2015 07:44:56 +0000 (+0900) Subject: emulator: print Qt version which is linked runtime X-Git-Tag: Tizen_Studio_1.3_Release_p2.3.2~164 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=b4fadab51c8334f7b1e646817dc3d847998c00e7;p=sdk%2Femulator%2Fqemu.git emulator: print Qt version which is linked runtime print_system_info() is called under any circumstances. So it should contains runtime informataion as many as possible. Now we can recognize Qt version which is linked runtime even though emulator rashes before Qt GUI is initialized. In addition, Logged version format is standardized. Change-Id: I671861a350e2c2deedae366a7662bf382a00e60a Signed-off-by: SeokYeon Hwang --- diff --git a/tizen/src/emulator.c b/tizen/src/emulator.c index c2d7a1c0ee..307a1e2f88 100644 --- a/tizen/src/emulator.c +++ b/tizen/src/emulator.c @@ -53,6 +53,10 @@ #include "skin/maruskin_client.h" #endif +#ifdef CONFIG_QT +#include +#endif + #ifdef CONFIG_SDL #include #endif @@ -196,9 +200,13 @@ void print_system_info(void) LOG_INFO("* Current time : %s\n", timeinfo); } +#ifdef CONFIG_QT + LOG_INFO("* Host Qt version : %s\n", qt5_get_version()); +#endif + #ifdef CONFIG_SDL /* Gets the version of the dynamically linked SDL library */ - LOG_INFO("* Host sdl version : (%d, %d, %d)\n", + LOG_INFO("* Host SDL version : %d.%d.%d\n", SDL_Linked_Version()->major, SDL_Linked_Version()->minor, SDL_Linked_Version()->patch); diff --git a/tizen/src/ui/qt5_supplement.cpp b/tizen/src/ui/qt5_supplement.cpp index ed39643b24..12d4f4f0ea 100644 --- a/tizen/src/ui/qt5_supplement.cpp +++ b/tizen/src/ui/qt5_supplement.cpp @@ -93,7 +93,12 @@ bool EventFilter::nativeEventFilter(const QByteArray &eventType, void *message, } #endif -void qt5_gui_init(void) +const char *qt5_get_version(void) +{ + return qVersion(); +} + +static void qt5_gui_init(void) { QCoreApplication::setApplicationName(EMULATOR_TITLE); diff --git a/tizen/src/ui/qt5_supplement.h b/tizen/src/ui/qt5_supplement.h index 89cbf7f34c..836af47ce9 100644 --- a/tizen/src/ui/qt5_supplement.h +++ b/tizen/src/ui/qt5_supplement.h @@ -44,6 +44,8 @@ void qt5_destroy(void); void qt5_update_internal(void *data, int width, int height); void qt5_switch_internal(void); void qt5_refresh_internal(void); + +const char* qt5_get_version(void); #ifdef __cplusplus } #endif diff --git a/tizen/src/util/osutil-linux.c b/tizen/src/util/osutil-linux.c index c3e318ee2f..cbea320a34 100644 --- a/tizen/src/util/osutil-linux.c +++ b/tizen/src/util/osutil-linux.c @@ -192,7 +192,7 @@ void print_system_info_os(void) INFO("* LibPNG Version : %s\n", PNG_LIBPNG_VER_STRING); /* depends on building */ - INFO("* QEMU build machine linux kernel version : (%d, %d, %d)\n", + INFO("* QEMU build machine linux kernel version : %d.%d.%d\n", LINUX_VERSION_CODE >> 16, (LINUX_VERSION_CODE >> 8) & 0xff, LINUX_VERSION_CODE & 0xff);