darling-JavaScriptCore/PlatformFTW.cmake

45 lines
946 B
CMake
Raw Permalink Normal View History

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