forked from WebKit/WebKit
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathPlatformMac.cmake
115 lines (101 loc) · 3.46 KB
/
PlatformMac.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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
find_library(QUARTZ_LIBRARY Quartz)
find_library(CARBON_LIBRARY Carbon)
find_library(CORESERVICES_LIBRARY CoreServices)
add_definitions(-DJSC_API_AVAILABLE\\\(...\\\)=)
add_definitions(-DJSC_CLASS_AVAILABLE\\\(...\\\)=)
# FIXME: We shouldn't need to define NS_RETURNS_RETAINED.
add_definitions(-iframework ${QUARTZ_LIBRARY}/Frameworks -iframework ${CORESERVICES_LIBRARY}/Frameworks -DNS_RETURNS_RETAINED=)
link_directories(../../WebKitLibraries)
include_directories(../../WebKitLibraries)
list(APPEND DumpRenderTree_LIBRARIES
${CARBON_LIBRARY}
${QUARTZ_LIBRARY}
WebKit
)
list(APPEND DumpRenderTree_INCLUDE_DIRECTORIES
${DumpRenderTree_DIR}/cg
${DumpRenderTree_DIR}/cf
${DumpRenderTree_DIR}/cocoa
${DumpRenderTree_DIR}/mac
${DumpRenderTree_DIR}/mac/InternalHeaders/WebKit
${DumpRenderTree_DIR}/TestNetscapePlugIn
${WEBCORE_DIR}/testing/cocoa
${WEBKITLEGACY_DIR}
${WebKitTestRunner_SHARED_DIR}/cocoa
${WebKitTestRunner_SHARED_DIR}/mac
${WebKitTestRunner_SHARED_DIR}/spi
)
# Common ${DumpRenderTree_SOURCES} from CMakeLists.txt are C++ source files.
list(APPEND DumpRenderTree_Cpp_SOURCES
${DumpRenderTree_SOURCES}
)
list(APPEND DumpRenderTree_ObjC_SOURCES
DumpRenderTreeFileDraggingSource.m
mac/AppleScriptController.m
mac/NavigationController.m
mac/ObjCPlugin.m
mac/ObjCPluginFunction.m
mac/TextInputControllerMac.m
)
list(APPEND DumpRenderTree_Cpp_SOURCES
cg/PixelDumpSupportCG.cpp
)
list(APPEND DumpRenderTree_ObjCpp_SOURCES
DefaultPolicyDelegate.mm
cocoa/UIScriptControllerCocoa.mm
mac/AccessibilityCommonMac.mm
mac/AccessibilityControllerMac.mm
mac/AccessibilityNotificationHandler.mm
mac/AccessibilityTextMarkerMac.mm
mac/AccessibilityUIElementMac.mm
mac/DumpRenderTree.mm
mac/DumpRenderTreeDraggingInfo.mm
mac/DumpRenderTreeMain.mm
mac/DumpRenderTreePasteboard.mm
mac/DumpRenderTreeWindow.mm
mac/EditingDelegate.mm
mac/EventSendingController.mm
mac/FrameLoadDelegate.mm
mac/GCControllerMac.mm
mac/HistoryDelegate.mm
mac/MockGeolocationProvider.mm
mac/MockWebNotificationProvider.mm
mac/ObjCController.m
mac/PixelDumpSupportMac.mm
mac/PolicyDelegate.mm
mac/ResourceLoadDelegate.mm
mac/TestRunnerMac.mm
mac/UIDelegate.mm
mac/UIScriptControllerMac.mm
mac/WorkQueueItemMac.mm
${WebKitTestRunner_SHARED_DIR}/cocoa/ClassMethodSwizzler.mm
${WebKitTestRunner_SHARED_DIR}/cocoa/LayoutTestSpellChecker.mm
)
set(DumpRenderTree_SOURCES
${DumpRenderTree_Cpp_SOURCES}
${DumpRenderTree_ObjC_SOURCES}
${DumpRenderTree_ObjCpp_SOURCES}
)
foreach (_file ${DumpRenderTree_ObjC_SOURCES})
set_source_files_properties(${_file} PROPERTIES COMPILE_FLAGS "-std=c99")
endforeach ()
set(DumpRenderTree_RESOURCES
AHEM____.TTF
FontWithFeatures.otf
FontWithFeatures.ttf
WebKitWeightWatcher100.ttf
WebKitWeightWatcher200.ttf
WebKitWeightWatcher300.ttf
WebKitWeightWatcher400.ttf
WebKitWeightWatcher500.ttf
WebKitWeightWatcher600.ttf
WebKitWeightWatcher700.ttf
WebKitWeightWatcher800.ttf
WebKitWeightWatcher900.ttf
)
file(MAKE_DIRECTORY ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/DumpRenderTree.resources)
foreach (_file ${DumpRenderTree_RESOURCES})
if (NOT EXISTS ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/DumpRenderTree.resources/${_file})
file(COPY ${TOOLS_DIR}/DumpRenderTree/fonts/${_file} DESTINATION ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/DumpRenderTree.resources)
endif ()
endforeach ()