mirror of
https://github.com/google/googletest.git
synced 2025-01-14 00:20:57 +08:00
add support for nxp qn9090 mcu
Added additional defines to correctly detect the NXP QN9090 MCU platform and allow for native googletest compability.
This commit is contained in:
parent
06f44bc951
commit
e3d405f62b
@ -113,6 +113,8 @@
|
|||||||
#define GTEST_OS_XTENSA 1
|
#define GTEST_OS_XTENSA 1
|
||||||
#elif defined(__hexagon__)
|
#elif defined(__hexagon__)
|
||||||
#define GTEST_OS_QURT 1
|
#define GTEST_OS_QURT 1
|
||||||
|
#elif defined(CPU_QN9090) || defined(CPU_QN9090HN)
|
||||||
|
#define GTEST_OS_NXP_QN9090 1
|
||||||
#endif // __CYGWIN__
|
#endif // __CYGWIN__
|
||||||
|
|
||||||
#endif // GOOGLETEST_INCLUDE_GTEST_INTERNAL_GTEST_PORT_ARCH_H_
|
#endif // GOOGLETEST_INCLUDE_GTEST_INTERNAL_GTEST_PORT_ARCH_H_
|
||||||
|
@ -505,7 +505,8 @@ typedef struct _RTL_CRITICAL_SECTION GTEST_CRITICAL_SECTION;
|
|||||||
#if (!(defined(GTEST_OS_LINUX_ANDROID) || defined(GTEST_OS_CYGWIN) || \
|
#if (!(defined(GTEST_OS_LINUX_ANDROID) || defined(GTEST_OS_CYGWIN) || \
|
||||||
defined(GTEST_OS_SOLARIS) || defined(GTEST_OS_HAIKU) || \
|
defined(GTEST_OS_SOLARIS) || defined(GTEST_OS_HAIKU) || \
|
||||||
defined(GTEST_OS_ESP32) || defined(GTEST_OS_ESP8266) || \
|
defined(GTEST_OS_ESP32) || defined(GTEST_OS_ESP8266) || \
|
||||||
defined(GTEST_OS_XTENSA) || defined(GTEST_OS_QURT)))
|
defined(GTEST_OS_XTENSA) || defined(GTEST_OS_QURT) || \
|
||||||
|
defined(GTEST_OS_NXP_QN9090)))
|
||||||
#define GTEST_HAS_STD_WSTRING 1
|
#define GTEST_HAS_STD_WSTRING 1
|
||||||
#else
|
#else
|
||||||
#define GTEST_HAS_STD_WSTRING 0
|
#define GTEST_HAS_STD_WSTRING 0
|
||||||
|
@ -102,7 +102,7 @@ FilePath FilePath::GetCurrentDir() {
|
|||||||
#if defined(GTEST_OS_WINDOWS_MOBILE) || defined(GTEST_OS_WINDOWS_PHONE) || \
|
#if defined(GTEST_OS_WINDOWS_MOBILE) || defined(GTEST_OS_WINDOWS_PHONE) || \
|
||||||
defined(GTEST_OS_WINDOWS_RT) || defined(GTEST_OS_ESP8266) || \
|
defined(GTEST_OS_WINDOWS_RT) || defined(GTEST_OS_ESP8266) || \
|
||||||
defined(GTEST_OS_ESP32) || defined(GTEST_OS_XTENSA) || \
|
defined(GTEST_OS_ESP32) || defined(GTEST_OS_XTENSA) || \
|
||||||
defined(GTEST_OS_QURT)
|
defined(GTEST_OS_QURT) || defined(GTEST_OS_NXP_QN9090)
|
||||||
// These platforms do not have a current directory, so we just return
|
// These platforms do not have a current directory, so we just return
|
||||||
// something reasonable.
|
// something reasonable.
|
||||||
return FilePath(kCurrentDirectoryString);
|
return FilePath(kCurrentDirectoryString);
|
||||||
@ -356,7 +356,7 @@ bool FilePath::CreateFolder() const {
|
|||||||
#elif defined(GTEST_OS_WINDOWS)
|
#elif defined(GTEST_OS_WINDOWS)
|
||||||
int result = _mkdir(pathname_.c_str());
|
int result = _mkdir(pathname_.c_str());
|
||||||
#elif defined(GTEST_OS_ESP8266) || defined(GTEST_OS_XTENSA) || \
|
#elif defined(GTEST_OS_ESP8266) || defined(GTEST_OS_XTENSA) || \
|
||||||
defined(GTEST_OS_QURT)
|
defined(GTEST_OS_QURT) || defined(GTEST_OS_NXP_QN9090)
|
||||||
// do nothing
|
// do nothing
|
||||||
int result = 0;
|
int result = 0;
|
||||||
#else
|
#else
|
||||||
|
Loading…
x
Reference in New Issue
Block a user