[FTW] Build JavaScriptCore
[WebKit-https.git] / Source / JavaScriptCore / PlatformFTW.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 if (ENABLE_REMOTE_INSPECTOR)
11     list(APPEND JavaScriptCore_PRIVATE_INCLUDE_DIRECTORIES
12         "${JAVASCRIPTCORE_DIR}/inspector/remote/socket"
13     )
14
15     list(APPEND JavaScriptCore_PRIVATE_FRAMEWORK_HEADERS
16         inspector/remote/RemoteAutomationTarget.h
17         inspector/remote/RemoteConnectionToTarget.h
18         inspector/remote/RemoteControllableTarget.h
19         inspector/remote/RemoteInspectionTarget.h
20         inspector/remote/RemoteInspector.h
21
22         inspector/remote/socket/RemoteInspectorConnectionClient.h
23         inspector/remote/socket/RemoteInspectorMessageParser.h
24         inspector/remote/socket/RemoteInspectorServer.h
25         inspector/remote/socket/RemoteInspectorSocket.h
26         inspector/remote/socket/RemoteInspectorSocketEndpoint.h
27     )
28
29     list(APPEND JavaScriptCore_SOURCES
30         API/JSRemoteInspector.cpp
31
32         inspector/remote/RemoteAutomationTarget.cpp
33         inspector/remote/RemoteConnectionToTarget.cpp
34         inspector/remote/RemoteControllableTarget.cpp
35         inspector/remote/RemoteInspectionTarget.cpp
36         inspector/remote/RemoteInspector.cpp
37
38         inspector/remote/socket/RemoteInspectorConnectionClient.cpp
39         inspector/remote/socket/RemoteInspectorMessageParser.cpp
40         inspector/remote/socket/RemoteInspectorServer.cpp
41         inspector/remote/socket/RemoteInspectorSocket.cpp
42         inspector/remote/socket/RemoteInspectorSocketEndpoint.cpp
43
44         inspector/remote/socket/win/RemoteInspectorSocketWin.cpp
45     )
46
47     set(JavaScriptCore_LIBRARIES PUBLIC ${JavaScriptCore_LIBRARIES})
48     list(APPEND JavaScriptCore_LIBRARIES
49         PRIVATE ws2_32
50     )
51 else ()
52     list(REMOVE_ITEM JavaScriptCore_SOURCES
53         inspector/JSGlobalObjectInspectorController.cpp
54     )
55 endif ()
56
57 file(COPY
58     "${JAVASCRIPTCORE_DIR}/JavaScriptCore.vcxproj/JavaScriptCore.resources"
59     DESTINATION
60     ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}
61 )
62
63 set(JavaScriptCore_OUTPUT_NAME JavaScriptCore${DEBUG_SUFFIX})