Clarify SyntaxErrors around yield and unskip tests
[WebKit-https.git] / Source / JavaScriptCore / PlatformMac.cmake
1 list(APPEND JavaScriptCore_SOURCES
2     API/JSAPIWrapperObject.mm
3     API/JSContext.mm
4     API/JSManagedValue.mm
5     API/JSRemoteInspector.cpp
6     API/JSStringRefCF.cpp
7     API/JSValue.mm
8     API/JSVirtualMachine.mm
9     API/JSWrapperMap.mm
10     API/ObjCCallbackFunction.mm
11
12     inspector/remote/RemoteAutomationTarget.cpp
13     inspector/remote/RemoteConnectionToTarget.mm
14     inspector/remote/RemoteControllableTarget.cpp
15     inspector/remote/RemoteInspectionTarget.cpp
16     inspector/remote/RemoteInspector.mm
17     inspector/remote/RemoteInspectorXPCConnection.mm
18 )
19 add_definitions(-DSTATICALLY_LINKED_WITH_WTF -D__STDC_WANT_LIB_EXT1__)
20
21 find_library(SECURITY_LIBRARY Security)
22 list(APPEND JavaScriptCore_LIBRARIES
23     ${SECURITY_LIBRARY}
24 )
25
26 list(APPEND JavaScriptCore_INCLUDE_DIRECTORIES
27     ${WTF_DIR}
28     ${JAVASCRIPTCORE_DIR}/disassembler/udis86
29     ${JAVASCRIPTCORE_DIR}/icu
30 )
31
32 set(CMAKE_SHARED_LINKER_FLAGS ${CMAKE_SHARED_LINKER_FLAGS} "-compatibility_version 1 -current_version ${WEBKIT_MAC_VERSION}")
33
34 # FIXME: Make including these files consistent in the source so these forwarding headers are not needed.
35 if (NOT EXISTS ${DERIVED_SOURCES_JAVASCRIPTCORE_DIR}/InspectorBackendDispatchers.h)
36     file(WRITE ${DERIVED_SOURCES_JAVASCRIPTCORE_DIR}/InspectorBackendDispatchers.h "#include \"inspector/InspectorBackendDispatchers.h\"")
37 endif ()
38 if (NOT EXISTS ${DERIVED_SOURCES_JAVASCRIPTCORE_DIR}/InspectorFrontendDispatchers.h)
39     file(WRITE ${DERIVED_SOURCES_JAVASCRIPTCORE_DIR}/InspectorFrontendDispatchers.h "#include \"inspector/InspectorFrontendDispatchers.h\"")
40 endif ()
41 if (NOT EXISTS ${DERIVED_SOURCES_JAVASCRIPTCORE_DIR}/InspectorProtocolObjects.h)
42     file(WRITE ${DERIVED_SOURCES_JAVASCRIPTCORE_DIR}/InspectorProtocolObjects.h "#include \"inspector/InspectorProtocolObjects.h\"")
43 endif ()