-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathPlatformWin.cmake
48 lines (39 loc) · 1.02 KB
/
PlatformWin.cmake
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
list(APPEND JavaScriptCore_SOURCES
API/JSStringRefBSTR.cpp
)
list(APPEND JavaScriptCore_PUBLIC_FRAMEWORK_HEADERS
API/JSStringRefBSTR.h
API/JavaScriptCore.h
)
list(APPEND JavaScriptCore_PRIVATE_INCLUDE_DIRECTORIES
${CMAKE_BINARY_DIR}/../include/private
)
if (USE_CF)
list(APPEND JavaScriptCore_SOURCES
API/JSStringRefCF.cpp
)
list(APPEND JavaScriptCore_PUBLIC_FRAMEWORK_HEADERS
API/JSStringRefCF.h
)
list(APPEND JavaScriptCore_LIBRARIES
${COREFOUNDATION_LIBRARY}
)
endif ()
if (NOT WTF_PLATFORM_WIN_CAIRO)
list(APPEND JavaScriptCore_LIBRARIES
winmm
)
endif ()
if (ENABLE_REMOTE_INSPECTOR)
include(inspector/remote/Socket.cmake)
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})