diff options
author | Konstantin Tokarev <annulen@yandex.ru> | 2016-08-25 19:20:41 +0300 |
---|---|---|
committer | Konstantin Tokarev <annulen@yandex.ru> | 2017-02-02 12:30:55 +0000 |
commit | 6882a04fb36642862b11efe514251d32070c3d65 (patch) | |
tree | b7959826000b061fd5ccc7512035c7478742f7b0 /Source/WTF/wtf/PlatformQt.cmake | |
parent | ab6df191029eeeb0b0f16f127d553265659f739e (diff) |
Imported QtWebKit TP3 (git b57bc6801f1876c3220d5a4bfea33d620d477443)
Change-Id: I3b1d8a2808782c9f34d50240000e20cb38d3680f
Reviewed-by: Konstantin Tokarev <annulen@yandex.ru>
Diffstat (limited to 'Source/WTF/wtf/PlatformQt.cmake')
-rw-r--r-- | Source/WTF/wtf/PlatformQt.cmake | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/Source/WTF/wtf/PlatformQt.cmake b/Source/WTF/wtf/PlatformQt.cmake new file mode 100644 index 000000000..03e773736 --- /dev/null +++ b/Source/WTF/wtf/PlatformQt.cmake @@ -0,0 +1,41 @@ +list(APPEND WTF_SOURCES + qt/MainThreadQt.cpp + qt/RunLoopQt.cpp + qt/WorkQueueQt.cpp + + text/qt/StringQt.cpp +) + +list(APPEND WTF_SYSTEM_INCLUDE_DIRECTORIES + ${Qt5Core_INCLUDE_DIRS} +) + +list(APPEND WTF_LIBRARIES + ${Qt5Core_LIBRARIES} + ${CMAKE_THREAD_LIBS_INIT} +) + +if (USE_GLIB) + list(APPEND WTF_SOURCES + glib/GRefPtr.cpp + ) + list(APPEND WTF_SYSTEM_INCLUDE_DIRECTORIES + ${GLIB_INCLUDE_DIRS} + ) +endif () + +if (WIN32) + list(APPEND WTF_LIBRARIES + winmm + ) + + set(WTF_POST_BUILD_COMMAND "${CMAKE_BINARY_DIR}/DerivedSources/WTF/postBuild.cmd") + file(WRITE "${WTF_POST_BUILD_COMMAND}" "@xcopy /y /s /d /f \"${WTF_DIR}/wtf/*.h\" \"${DERIVED_SOURCES_DIR}/ForwardingHeaders/WTF\" >nul 2>nul\n@xcopy /y /s /d /f \"${DERIVED_SOURCES_DIR}/WTF/*.h\" \"${DERIVED_SOURCES_DIR}/ForwardingHeaders/WTF\" >nul 2>nul\n") + file(MAKE_DIRECTORY ${DERIVED_SOURCES_DIR}/ForwardingHeaders/WTF) +endif () + +if (APPLE) + list(APPEND WTF_LIBRARIES + ${COREFOUNDATION_LIBRARY} + ) +endif () |