efc8ee7b4d37bb97f5369aca2ea3ee981f59c665
[WebKit-https.git] / Source / JavaScriptCore / PlatformWin.cmake
1 list(APPEND JavaScriptCore_SOURCES
2     API/JSStringRefBSTR.cpp
3 )
4
5 list(APPEND JavaScriptCore_INCLUDE_DIRECTORIES
6     ${CMAKE_BINARY_DIR}/../include/private
7 )
8
9 if (USE_CF)
10     list(APPEND JavaScriptCore_SOURCES
11         API/JSStringRefCF.cpp
12     )
13
14     list(APPEND JavaScriptCore_LIBRARIES
15         ${COREFOUNDATION_LIBRARY}
16     )
17 endif ()
18
19 if (NOT WTF_PLATFORM_WIN_CAIRO)
20     list(APPEND JavaScriptCore_LIBRARIES
21         ${ICU_LIBRARIES}
22         winmm
23     )
24 endif ()
25
26 list(REMOVE_ITEM JavaScriptCore_SOURCES
27     inspector/JSGlobalObjectInspectorController.cpp
28 )
29
30 file(COPY
31     "${JAVASCRIPTCORE_DIR}/JavaScriptCore.vcxproj/JavaScriptCore.resources"
32     DESTINATION
33     ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}
34 )
35
36 WEBKIT_MAKE_FORWARDING_HEADERS(JavaScriptCore
37     DIRECTORIES ${JavaScriptCore_FORWARDING_HEADERS_DIRECTORIES}
38     DERIVED_SOURCE_DIRECTORIES ${DERIVED_SOURCES_DIR}/JavaScriptCore ${DERIVED_SOURCES_DIR}/JavaScriptCore/inspector
39     FLATTENED
40 )
41
42 set(JavaScriptCore_OUTPUT_NAME JavaScriptCore${DEBUG_SUFFIX})