1632b7e23a2e61e3ef4548cef702bd6f93da2291
[WebKit-https.git] / Source / JavaScriptCore / PlatformWin.cmake
1 list(APPEND JavaScriptCore_SOURCES
2     API/JSStringRefBSTR.cpp
3     API/JSStringRefCF.cpp
4 )
5
6 list(APPEND JavaScriptCore_INCLUDE_DIRECTORIES
7     ${CMAKE_BINARY_DIR}/../include/private
8 )
9
10 if (WTF_PLATFORM_WIN_CAIRO)
11     list(APPEND JavaScriptCore_LIBRARIES
12         CFLite
13     )
14 else ()
15     list(APPEND JavaScriptCore_LIBRARIES
16         CoreFoundation${DEBUG_SUFFIX}
17         ${ICU_LIBRARIES}
18     )
19 endif ()
20
21 list(REMOVE_ITEM JavaScriptCore_SOURCES
22     inspector/JSGlobalObjectInspectorController.cpp
23 )
24
25 file(COPY
26     "${JAVASCRIPTCORE_DIR}/JavaScriptCore.vcxproj/JavaScriptCore.resources"
27     DESTINATION
28     ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}
29 )
30
31 file(MAKE_DIRECTORY ${DERIVED_SOURCES_DIR}/ForwardingHeaders/JavaScriptCore)
32
33 set(JavaScriptCore_POST_BUILD_COMMAND "${CMAKE_BINARY_DIR}/DerivedSources/JavaScriptCore/postBuild.cmd")
34 file(WRITE "${JavaScriptCore_POST_BUILD_COMMAND}" "@xcopy /y /d /f \"${DERIVED_SOURCES_DIR}/JavaScriptCore/*.h\" \"${DERIVED_SOURCES_DIR}/ForwardingHeaders/JavaScriptCore\" >nul 2>nul\n")
35 file(APPEND "${JavaScriptCore_POST_BUILD_COMMAND}" "@xcopy /y /d /f \"${DERIVED_SOURCES_DIR}/JavaScriptCore/inspector/*.h\" \"${DERIVED_SOURCES_DIR}/ForwardingHeaders/JavaScriptCore\" >nul 2>nul\n")
36
37 foreach (_directory ${JavaScriptCore_FORWARDING_HEADERS_DIRECTORIES})
38     file(APPEND "${JavaScriptCore_POST_BUILD_COMMAND}" "@xcopy /y /d /f \"${JAVASCRIPTCORE_DIR}/${_directory}/*.h\" \"${DERIVED_SOURCES_DIR}/ForwardingHeaders/JavaScriptCore\" >nul 2>nul\n")
39 endforeach ()
40
41 set(JavaScriptCore_OUTPUT_NAME JavaScriptCore${DEBUG_SUFFIX})