FontFaceSet binding does not handle null correctly
[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)
20
21 find_library(SECURITY_LIBRARY Security)
22 list(APPEND JavaScriptCore_LIBRARIES
23     ${SECURITY_LIBRARY}
24 )
25
26 add_custom_command(
27     OUTPUT ${DERIVED_SOURCES_JAVASCRIPTCORE_DIR}/TracingDtrace.h
28     DEPENDS ${JAVASCRIPTCORE_DIR}/runtime/Tracing.d
29     WORKING_DIRECTORY ${DERIVED_SOURCES_JAVASCRIPTCORE_DIR}
30     COMMAND dtrace -h -o "${DERIVED_SOURCES_JAVASCRIPTCORE_DIR}/TracingDtrace.h" -s "${JAVASCRIPTCORE_DIR}/runtime/Tracing.d"
31     VERBATIM)
32
33 list(APPEND JavaScriptCore_INCLUDE_DIRECTORIES
34     ${WTF_DIR}
35     ${JAVASCRIPTCORE_DIR}/disassembler/udis86
36     ${JAVASCRIPTCORE_DIR}/icu
37 )
38 list(APPEND JavaScriptCore_HEADERS
39     ${DERIVED_SOURCES_JAVASCRIPTCORE_DIR}/TracingDtrace.h
40 )
41
42 # FIXME: Make including these files consistent in the source so these forwarding headers are not needed.
43 if (NOT EXISTS ${DERIVED_SOURCES_JAVASCRIPTCORE_DIR}/InspectorBackendDispatchers.h)
44     file(WRITE ${DERIVED_SOURCES_JAVASCRIPTCORE_DIR}/InspectorBackendDispatchers.h "#include \"inspector/InspectorBackendDispatchers.h\"")
45 endif ()
46 if (NOT EXISTS ${DERIVED_SOURCES_JAVASCRIPTCORE_DIR}/InspectorFrontendDispatchers.h)
47     file(WRITE ${DERIVED_SOURCES_JAVASCRIPTCORE_DIR}/InspectorFrontendDispatchers.h "#include \"inspector/InspectorFrontendDispatchers.h\"")
48 endif ()
49 if (NOT EXISTS ${DERIVED_SOURCES_JAVASCRIPTCORE_DIR}/InspectorProtocolObjects.h)
50     file(WRITE ${DERIVED_SOURCES_JAVASCRIPTCORE_DIR}/InspectorProtocolObjects.h "#include \"inspector/InspectorProtocolObjects.h\"")
51 endif ()