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