]> git.saurik.com Git - apple/javascriptcore.git/blob - PlatformWin.cmake
JavaScriptCore-7601.1.46.3.tar.gz
[apple/javascriptcore.git] / PlatformWin.cmake
1 list(APPEND JavaScriptCore_SOURCES
2 API/JSStringRefBSTR.cpp
3 API/JSStringRefCF.cpp
4 )
5
6 if (WTF_PLATFORM_WIN_CAIRO)
7 list(APPEND JavaScriptCore_LIBRARIES
8 CFLite
9 )
10 else ()
11 list(APPEND JavaScriptCore_LIBRARIES
12 CoreFoundation
13 )
14 endif ()
15
16 if (MSVC AND "${JavaScriptCore_LIBRARY_TYPE}" MATCHES "SHARED")
17 get_property(WTF_LIBRARY_LOCATION TARGET WTF PROPERTY LOCATION)
18
19 add_custom_command(
20 OUTPUT ${DERIVED_SOURCES_JAVASCRIPTCORE_DIR}/forwarded-exports.cpp
21 DEPENDS WTF
22 COMMAND ${PYTHON_EXECUTABLE} ${TOOLS_DIR}/Scripts/generate-win32-export-forwards ${WTF_LIBRARY_LOCATION} ${DERIVED_SOURCES_JAVASCRIPTCORE_DIR}/forwarded-exports.cpp
23 VERBATIM)
24 list(APPEND JavaScriptCore_SOURCES ${DERIVED_SOURCES_JAVASCRIPTCORE_DIR}/forwarded-exports.cpp)
25 endif ()
26
27 list(REMOVE_ITEM JavaScriptCore_SOURCES
28 inspector/JSGlobalObjectInspectorController.cpp
29 )