Fixes for MacOS build with Qt5

This commit is contained in:
Igor Sirotin 2023-02-06 18:02:08 +03:00
parent 641da3618b
commit 80bb1d2190
2 changed files with 2 additions and 6 deletions

View File

@ -28,7 +28,7 @@ Application::Application()
connect(this, &Application::onPermissionsDenied,
this, &Application::initializeQML);
#if QT_VERSION < 0x060000
#if defined(Q_OS_ANDROID) && QT_VERSION < 0x060000
NativeHelpers::registerApplicationInstance(this);
#endif
}

View File

@ -49,14 +49,10 @@ if(WIN32)
if(MSVC)
add_definitions(-D__STDC_LIMIT_MACROS)
endif(MSVC)
else()
add_definitions(-DNO_ICONV)
endif(WIN32)
if(ANDROID)
add_definitions(-DNO_ICONV)
endif()
if(VS_WINRT_COMPONENT)
add_definitions(-DNO_ICONV)
endif(VS_WINRT_COMPONENT)