darling-JavaScriptCore/PlatformWin.cmake

49 lines
1.0 KiB
CMake
Raw Permalink Normal View History

2017-08-12 16:48:01 +00:00
list(APPEND JavaScriptCore_SOURCES
API/JSStringRefBSTR.cpp
)
2020-08-29 13:27:11 +00:00
list(APPEND JavaScriptCore_PUBLIC_FRAMEWORK_HEADERS
API/JSStringRefBSTR.h
API/JavaScriptCore.h
)
list(APPEND JavaScriptCore_PRIVATE_INCLUDE_DIRECTORIES
2017-08-12 16:48:01 +00:00
${CMAKE_BINARY_DIR}/../include/private
)
2020-08-29 13:27:11 +00:00
if (USE_CF)
list(APPEND JavaScriptCore_SOURCES
API/JSStringRefCF.cpp
)
list(APPEND JavaScriptCore_PUBLIC_FRAMEWORK_HEADERS
API/JSStringRefCF.h
)
2017-08-12 16:48:01 +00:00
list(APPEND JavaScriptCore_LIBRARIES
2020-08-29 13:27:11 +00:00
${COREFOUNDATION_LIBRARY}
2017-08-12 16:48:01 +00:00
)
2020-08-29 13:27:11 +00:00
endif ()
if (NOT WTF_PLATFORM_WIN_CAIRO)
2017-08-12 16:48:01 +00:00
list(APPEND JavaScriptCore_LIBRARIES
winmm
)
endif ()
2020-08-29 13:27:11 +00:00
if (ENABLE_REMOTE_INSPECTOR)
include(inspector/remote/Socket.cmake)
2020-08-29 13:27:11 +00:00
else ()
list(REMOVE_ITEM JavaScriptCore_SOURCES
inspector/JSGlobalObjectInspectorController.cpp
)
endif ()
2017-08-12 16:48:01 +00:00
file(COPY
"${JAVASCRIPTCORE_DIR}/JavaScriptCore.vcxproj/JavaScriptCore.resources"
DESTINATION
${CMAKE_RUNTIME_OUTPUT_DIRECTORY}
)
set(JavaScriptCore_OUTPUT_NAME JavaScriptCore${DEBUG_SUFFIX})