Fixes to build JSCOnly on macOS
[WebKit.git] / Tools / TestWebKitAPI / PlatformJSCOnly.cmake
1 set(TESTWEBKITAPI_RUNTIME_OUTPUT_DIRECTORY "${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/TestWebKitAPI")
2 set(TESTWEBKITAPI_RUNTIME_OUTPUT_DIRECTORY_WTF "${TESTWEBKITAPI_RUNTIME_OUTPUT_DIRECTORY}/WTF")
3
4 include_directories(
5     ${DERIVED_SOURCES_DIR}/ForwardingHeaders
6     "${WTF_DIR}/icu"
7 )
8
9 if (LOWERCASE_EVENT_LOOP_TYPE STREQUAL "glib")
10     include_directories(SYSTEM
11         ${GLIB_INCLUDE_DIRS}
12     )
13 endif ()
14
15 set(test_main_SOURCES
16     ${TESTWEBKITAPI_DIR}/jsconly/main.cpp
17 )
18
19 list(APPEND TestWTF_SOURCES
20     ${TESTWEBKITAPI_DIR}/jsconly/PlatformUtilitiesJSCOnly.cpp
21     ${TESTWEBKITAPI_DIR}/Tests/WTF/RunLoop.cpp
22 )