Fix CMake build.
[WebKit-https.git] / Tools / WebKitTestRunner / PlatformMac.cmake
1 find_library(CARBON_LIBRARY Carbon)
2
3 find_library(APPLICATIONSERVICES_LIBRARY ApplicationServices)
4 find_library(CORESERVICES_LIBRARY CoreServices)
5 add_definitions(-iframework ${APPLICATIONSERVICES_LIBRARY}/Versions/Current/Frameworks)
6 add_definitions(-iframework ${CORESERVICES_LIBRARY}/Versions/Current/Frameworks)
7
8 if ("${CURRENT_OSX_VERSION}" MATCHES "10.9")
9 set(WEBKITSYSTEMINTERFACE_LIBRARY libWebKitSystemInterfaceMavericks.a)
10 elif ("${CURRENT_OSX_VERSION}" MATCHES "10.10")
11 set(WEBKITSYSTEMINTERFACE_LIBRARY libWebKitSystemInterfaceYosemite.a)
12 else ()
13 set(WEBKITSYSTEMINTERFACE_LIBRARY libWebKitSystemInterfaceElCapitan.a)
14 endif ()
15 link_directories(../../WebKitLibraries)
16
17 list(APPEND WebKitTestRunner_LIBRARIES
18     ${CARBON_LIBRARY}
19     ${WEBKITSYSTEMINTERFACE_LIBRARY}
20 )
21
22 list(APPEND WebKitTestRunner_INCLUDE_DIRECTORIES
23     ${DERIVED_SOURCES_DIR}
24     ${DERIVED_SOURCES_DIR}/WebCore
25     ${DERIVED_SOURCES_DIR}/ForwardingHeaders
26     ${DERIVED_SOURCES_DIR}/ForwardingHeaders/JavaScriptCore
27     ${DERIVED_SOURCES_DIR}/ForwardingHeaders/WebCore
28     ${WEBCORE_DIR}/testing/cocoa
29     ${WEBKIT_TESTRUNNER_DIR}/cf
30     ${WEBKIT_TESTRUNNER_DIR}/cg
31     ${WEBKIT_TESTRUNNER_DIR}/cocoa
32     ${WEBKIT_TESTRUNNER_DIR}/mac
33     ${WEBKIT_TESTRUNNER_INJECTEDBUNDLE_DIR}/mac
34     ${WEBKIT_TESTRUNNER_SHARED_DIR}/EventSerialization/mac
35     ${WEBKIT_TESTRUNNER_SHARED_DIR}/spi
36     ${CMAKE_SOURCE_DIR}/WebKitLibraries
37 )
38
39 list(APPEND WebKitTestRunnerInjectedBundle_SOURCES
40     ${WEBKIT_TESTRUNNER_DIR}/cocoa/CrashReporterInfo.mm
41
42     ${WEBKIT_TESTRUNNER_INJECTEDBUNDLE_DIR}/cocoa/ActivateFontsCocoa.mm
43     ${WEBKIT_TESTRUNNER_INJECTEDBUNDLE_DIR}/cocoa/InjectedBundlePageCocoa.mm
44
45     ${WEBKIT_TESTRUNNER_INJECTEDBUNDLE_DIR}/mac/AccessibilityControllerMac.mm
46     ${WEBKIT_TESTRUNNER_INJECTEDBUNDLE_DIR}/mac/AccessibilityNotificationHandler.mm
47     ${WEBKIT_TESTRUNNER_INJECTEDBUNDLE_DIR}/mac/AccessibilityTextMarkerRangeMac.mm
48     ${WEBKIT_TESTRUNNER_INJECTEDBUNDLE_DIR}/mac/InjectedBundleMac.mm
49     ${WEBKIT_TESTRUNNER_INJECTEDBUNDLE_DIR}/mac/AccessibilityCommonMac.mm
50     ${WEBKIT_TESTRUNNER_INJECTEDBUNDLE_DIR}/mac/AccessibilityTextMarkerMac.mm
51     ${WEBKIT_TESTRUNNER_INJECTEDBUNDLE_DIR}/mac/AccessibilityUIElementMac.mm
52     ${WEBKIT_TESTRUNNER_INJECTEDBUNDLE_DIR}/mac/TestRunnerMac.mm
53
54     ${WEBKIT_TESTRUNNER_SHARED_DIR}/EventSerialization/mac/EventSerializerMac.mm
55     ${WEBKIT_TESTRUNNER_SHARED_DIR}/EventSerialization/mac/SharedEventStreamsMac.mm
56 )
57
58 list(APPEND WebKitTestRunner_SOURCES
59     ${WEBKIT_TESTRUNNER_DIR}/cg/TestInvocationCG.cpp
60
61     ${WEBKIT_TESTRUNNER_DIR}/cocoa/CrashReporterInfo.mm
62     ${WEBKIT_TESTRUNNER_DIR}/cocoa/TestControllerCocoa.mm
63     ${WEBKIT_TESTRUNNER_DIR}/cocoa/TestRunnerWKWebView.mm
64
65     ${WEBKIT_TESTRUNNER_DIR}/mac/EventSenderProxy.mm
66     ${WEBKIT_TESTRUNNER_DIR}/mac/PlatformWebViewMac.mm
67     ${WEBKIT_TESTRUNNER_DIR}/mac/PoseAsClass.mm
68     ${WEBKIT_TESTRUNNER_DIR}/mac/TestControllerMac.mm
69     ${WEBKIT_TESTRUNNER_DIR}/mac/UIScriptControllerMac.mm
70     ${WEBKIT_TESTRUNNER_DIR}/mac/WebKitTestRunnerDraggingInfo.mm
71     ${WEBKIT_TESTRUNNER_DIR}/mac/WebKitTestRunnerEvent.mm
72     ${WEBKIT_TESTRUNNER_DIR}/mac/WebKitTestRunnerPasteboard.mm
73     ${WEBKIT_TESTRUNNER_DIR}/mac/main.mm
74     
75     ${WEBKIT_TESTRUNNER_SHARED_DIR}/EventSerialization/mac/EventSerializerMac.mm
76     ${WEBKIT_TESTRUNNER_SHARED_DIR}/EventSerialization/mac/SharedEventStreamsMac.mm
77 )
78
79 link_directories(../../WebKitLibraries)