summaryrefslogtreecommitdiff
path: root/Source/JavaScriptCore/PlatformQt.cmake
diff options
context:
space:
mode:
Diffstat (limited to 'Source/JavaScriptCore/PlatformQt.cmake')
-rw-r--r--Source/JavaScriptCore/PlatformQt.cmake32
1 files changed, 32 insertions, 0 deletions
diff --git a/Source/JavaScriptCore/PlatformQt.cmake b/Source/JavaScriptCore/PlatformQt.cmake
new file mode 100644
index 000000000..34a372756
--- /dev/null
+++ b/Source/JavaScriptCore/PlatformQt.cmake
@@ -0,0 +1,32 @@
+if (${JavaScriptCore_LIBRARY_TYPE} MATCHES STATIC)
+ add_definitions(-DSTATICALLY_LINKED_WITH_WTF)
+endif ()
+
+list(APPEND JavaScriptCore_INCLUDE_DIRECTORIES
+ ${WTF_DIR}
+)
+
+list(APPEND JavaScriptCore_SOURCES
+ API/JSStringRefQt.cpp
+)
+
+list(APPEND JavaScriptCore_SYSTEM_INCLUDE_DIRECTORIES
+ ${Qt5Core_INCLUDE_DIRS}
+)
+
+list(APPEND JavaScriptCore_LIBRARIES
+ ${Qt5Core_LIBRARIES}
+)
+
+if (QT_STATIC_BUILD)
+ list(APPEND JavaScriptCore_LIBRARIES
+ ${STATIC_LIB_DEPENDENCIES}
+ )
+endif ()
+
+# From PlatformWin.cmake
+if (WIN32)
+ list(REMOVE_ITEM JavaScriptCore_SOURCES
+ inspector/JSGlobalObjectInspectorController.cpp
+ )
+endif ()