diff options
| author | 2014-02-27 20:04:41 +0000 | |
|---|---|---|
| committer | 2014-02-27 20:04:41 +0000 | |
| commit | 17d7487d963e1a6f97bbe9b9665180c2eca00e9d (patch) | |
| tree | 1f2dd50c5ca9658b73308842cdfc85216f82e21e /src/modules | |
| parent | - some fixing for cmake 3 (diff) | |
| download | KVIrc-17d7487d963e1a6f97bbe9b9665180c2eca00e9d.tar.gz KVIrc-17d7487d963e1a6f97bbe9b9665180c2eca00e9d.tar.bz2 KVIrc-17d7487d963e1a6f97bbe9b9665180c2eca00e9d.zip | |
- bump to QT 4.7 (we have no QT 4.8 specific code)
- QT4 on MSVC still needs qtmain, the cmake policy does not apply there
- fix perl on windows, remove activestate hack, we don't support that anymore
git-svn-id: https://svn.kvirc.de/svn/trunk/kvirc@6371 17fca916-40b9-46aa-a4ea-0a15b648b75c
Diffstat (limited to 'src/modules')
| -rw-r--r-- | src/modules/file/libkvifile.cpp | 5 | ||||
| -rw-r--r-- | src/modules/objects/KvsObject_webView.cpp | 8 | ||||
| -rw-r--r-- | src/modules/perlcore/CMakeLists.txt | 11 |
3 files changed, 5 insertions, 19 deletions
diff --git a/src/modules/file/libkvifile.cpp b/src/modules/file/libkvifile.cpp index 9b0329f83..b9cd95acc 100644 --- a/src/modules/file/libkvifile.cpp +++ b/src/modules/file/libkvifile.cpp @@ -1588,11 +1588,8 @@ static bool file_kvs_fnc_time(KviKvsModuleFunctionCall * c) c->warning(__tr2qs("Unknown option '%1', defaulting to 'm'").arg(szType)); time = f.lastModified(); } -#if QT_VERSION >= 0x040700 + c->returnValue()->setInteger(time.toMSecsSinceEpoch() / 1000); -#else - c->returnValue()->setInteger(time.toTime_t()); -#endif return true; } diff --git a/src/modules/objects/KvsObject_webView.cpp b/src/modules/objects/KvsObject_webView.cpp index c7a1560f6..ba1758b45 100644 --- a/src/modules/objects/KvsObject_webView.cpp +++ b/src/modules/objects/KvsObject_webView.cpp @@ -104,30 +104,22 @@ void KviKvsDownloadHandler::slotReadyRead() const char * const webattributes_tbl[] = { "JavascriptEnabled", -#if (QT_VERSION >= 0x040700) "PluginsEnabled", -#endif "JavascriptCanOpenWindows", "JavascriptCanAccessClipboard", "ZoomTextOnly" -#if (QT_VERSION >= 0x040700) , "LocalContentCanAccessFileUrls" -#endif }; const QWebSettings::WebAttribute webattributes_cod[] = { QWebSettings::JavascriptEnabled, -#if (QT_VERSION >= 0x040700) QWebSettings::PluginsEnabled, -#endif QWebSettings::JavascriptCanOpenWindows, QWebSettings::JavascriptCanAccessClipboard, QWebSettings::ZoomTextOnly -#if (QT_VERSION >= 0x040700) , QWebSettings::LocalContentCanAccessFileUrls -#endif }; const char * const findflag_tbl[] = { diff --git a/src/modules/perlcore/CMakeLists.txt b/src/modules/perlcore/CMakeLists.txt index cf8031e24..968b88db3 100644 --- a/src/modules/perlcore/CMakeLists.txt +++ b/src/modules/perlcore/CMakeLists.txt @@ -23,6 +23,10 @@ if(COMPILE_PERL_SUPPORT) OUTPUT_VARIABLE PERL_LINK_FLAGS ) +if(MSVC) + # breaks with -nodefaultlib + string(REPLACE " -nodefaultlib" "" PERL_LINK_FLAGS "${PERL_LINK_FLAGS}") +endif() # Remove new line characters string(REGEX REPLACE "(\r?\n)+$" "" PERL_LINK_FLAGS "${PERL_LINK_FLAGS}") # Remove leading and trailing spaces (string strip) @@ -32,13 +36,6 @@ endif() include(${CMAKE_SOURCE_DIR}/cmake/module.rules.txt) if(COMPILE_PERL_SUPPORT) - if(WANT_DEBUG AND MSVC) - # Activestates Perl does not support Run-Time Error checks - string(REPLACE "/RTC1" "" CMAKE_CXX_FLAGS_DEBUG_INIT ${CMAKE_CXX_FLAGS_DEBUG_INIT}) - string(REPLACE "/RTC1" "" CMAKE_C_FLAGS_DEBUG_INIT ${CMAKE_C_FLAGS_DEBUG_INIT}) - string(REPLACE "/RTC1" "" CMAKE_CXX_FLAGS_DEBUG ${CMAKE_CXX_FLAGS_DEBUG}) - string(REPLACE "/RTC1" "" CMAKE_C_FLAGS_DEBUG ${CMAKE_C_FLAGS_DEBUG}) - endif() set_target_properties(${kvi_module_name} PROPERTIES COMPILE_FLAGS ${PERL_COMPILE_FLAGS}) set_target_properties(${kvi_module_name} PROPERTIES LINK_FLAGS "${MODULE_ADDITIONAL_LINK_FLAGS}") target_link_libraries(${kvi_module_name} ${LIBS} "${PERL_LINK_FLAGS}") |
