[WTF] Add makeUnique<T>, which ensures T is fast-allocated, makeUnique / makeUniqueWi...
[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         winmm
31     )
32 endif ()
33
34 if (ENABLE_REMOTE_INSPECTOR)
35     list(APPEND JavaScriptCore_PRIVATE_INCLUDE_DIRECTORIES
36         "${JAVASCRIPTCORE_DIR}/inspector/remote/socket"
37     )
38
39     list(APPEND JavaScriptCore_PRIVATE_FRAMEWORK_HEADERS
40         inspector/remote/RemoteAutomationTarget.h
41         inspector/remote/RemoteConnectionToTarget.h
42         inspector/remote/RemoteControllableTarget.h
43         inspector/remote/RemoteInspectionTarget.h
44         inspector/remote/RemoteInspector.h
45
46         inspector/remote/socket/RemoteInspectorConnectionClient.h
47         inspector/remote/socket/RemoteInspectorMessageParser.h
48         inspector/remote/socket/RemoteInspectorServer.h
49         inspector/remote/socket/RemoteInspectorSocket.h
50         inspector/remote/socket/RemoteInspectorSocketEndpoint.h
51     )
52
53     list(APPEND JavaScriptCore_SOURCES
54         API/JSRemoteInspector.cpp
55
56         inspector/remote/RemoteAutomationTarget.cpp
57         inspector/remote/RemoteConnectionToTarget.cpp
58         inspector/remote/RemoteControllableTarget.cpp
59         inspector/remote/RemoteInspectionTarget.cpp
60         inspector/remote/RemoteInspector.cpp
61
62         inspector/remote/socket/RemoteInspectorConnectionClient.cpp
63         inspector/remote/socket/RemoteInspectorMessageParser.cpp
64         inspector/remote/socket/RemoteInspectorServer.cpp
65         inspector/remote/socket/RemoteInspectorSocket.cpp
66         inspector/remote/socket/RemoteInspectorSocketEndpoint.cpp
67
68         inspector/remote/socket/win/RemoteInspectorSocketWin.cpp
69     )
70
71     list(APPEND JavaScriptCore_LIBRARIES
72         wsock32 ws2_32
73     )
74 else ()
75     list(REMOVE_ITEM JavaScriptCore_SOURCES
76         inspector/JSGlobalObjectInspectorController.cpp
77     )
78 endif ()
79
80 file(COPY
81     "${JAVASCRIPTCORE_DIR}/JavaScriptCore.vcxproj/JavaScriptCore.resources"
82     DESTINATION
83     ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}
84 )
85
86 set(JavaScriptCore_OUTPUT_NAME JavaScriptCore${DEBUG_SUFFIX})