[CMake][WinCairo] Separate copied headers into different directories
[WebKit-https.git] / Tools / TestWebKitAPI / PlatformMac.cmake
index ad2ae92..8c10a0a 100644 (file)
@@ -2,20 +2,36 @@ set(TESTWEBKITAPI_RUNTIME_OUTPUT_DIRECTORY "${CMAKE_RUNTIME_OUTPUT_DIRECTORY}")
 set(TESTWEBKITAPI_RUNTIME_OUTPUT_DIRECTORY_WTF "${TESTWEBKITAPI_RUNTIME_OUTPUT_DIRECTORY}")
 
 include_directories(
-    ${DERIVED_SOURCES_DIR}/ForwardingHeaders
-    "${WTF_DIR}/icu"
+    "${DERIVED_SOURCES_WTF_DIR}"
+    "${FORWARDING_HEADERS_DIR}"
 )
 
 set(test_main_SOURCES
+    ${TESTWEBKITAPI_DIR}/cocoa/UtilitiesCocoa.mm
     ${TESTWEBKITAPI_DIR}/mac/mainMac.mm
 )
 
 find_library(CARBON_LIBRARY Carbon)
 find_library(COCOA_LIBRARY Cocoa)
 find_library(COREFOUNDATION_LIBRARY CoreFoundation)
+link_directories(${CMAKE_SOURCE_DIR}/WebKitLibraries)
 list(APPEND test_wtf_LIBRARIES
     ${CARBON_LIBRARY}
     ${COCOA_LIBRARY}
     ${COREFOUNDATION_LIBRARY}
     libicucore.dylib
 )
+
+list(APPEND TestWebKitAPI_LIBRARIES
+    ${CARBON_LIBRARY}
+)
+
+set(bundle_harness_SOURCES
+    ${TESTWEBKITAPI_DIR}/cocoa/PlatformUtilitiesCocoa.mm
+    ${TESTWEBKITAPI_DIR}/cocoa/UtilitiesCocoa.mm
+    ${TESTWEBKITAPI_DIR}/mac/InjectedBundleControllerMac.mm
+    ${TESTWEBKITAPI_DIR}/mac/PlatformUtilitiesMac.mm
+    ${TESTWEBKITAPI_DIR}/mac/PlatformWebViewMac.mm
+    ${TESTWEBKITAPI_DIR}/mac/SyntheticBackingScaleFactorWindow.m
+    ${TESTWEBKITAPI_DIR}/mac/TestBrowsingContextLoadDelegate.mm
+)