Unreviewed, rolling out r209766.
[WebKit.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         winmm
19     )
20 endif ()
21
22 list(REMOVE_ITEM JavaScriptCore_SOURCES
23     inspector/JSGlobalObjectInspectorController.cpp
24 )
25
26 file(COPY
27     "${JAVASCRIPTCORE_DIR}/JavaScriptCore.vcxproj/JavaScriptCore.resources"
28     DESTINATION
29     ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}
30 )
31
32 file(MAKE_DIRECTORY ${DERIVED_SOURCES_DIR}/ForwardingHeaders/JavaScriptCore)
33
34 set(JavaScriptCore_PRE_BUILD_COMMAND "${CMAKE_BINARY_DIR}/DerivedSources/JavaScriptCore/preBuild.cmd")
35 file(REMOVE "${JavaScriptCore_PRE_BUILD_COMMAND}")
36 foreach (_directory ${JavaScriptCore_FORWARDING_HEADERS_DIRECTORIES})
37     file(APPEND "${JavaScriptCore_PRE_BUILD_COMMAND}" "@xcopy /y /d /f \"${JAVASCRIPTCORE_DIR}/${_directory}/*.h\" \"${DERIVED_SOURCES_DIR}/ForwardingHeaders/JavaScriptCore\" >nul 2>nul\n")
38 endforeach ()
39
40 set(JavaScriptCore_POST_BUILD_COMMAND "${CMAKE_BINARY_DIR}/DerivedSources/JavaScriptCore/postBuild.cmd")
41 file(WRITE "${JavaScriptCore_POST_BUILD_COMMAND}" "@xcopy /y /d /f \"${DERIVED_SOURCES_DIR}/JavaScriptCore/*.h\" \"${DERIVED_SOURCES_DIR}/ForwardingHeaders/JavaScriptCore\" >nul 2>nul\n")
42 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")
43
44 set(JavaScriptCore_OUTPUT_NAME JavaScriptCore${DEBUG_SUFFIX})