CodeCache should check that the UnlinkedCodeBlock was successfully created before...
[WebKit-https.git] / Source / JavaScriptCore / PlatformMac.cmake
1 add_definitions(-DSTATICALLY_LINKED_WITH_WTF -D__STDC_WANT_LIB_EXT1__)
2
3 find_library(SECURITY_LIBRARY Security)
4 list(APPEND JavaScriptCore_LIBRARIES
5     ${SECURITY_LIBRARY}
6 )
7
8 list(APPEND JavaScriptCore_UNIFIED_SOURCE_LIST_FILES
9     "SourcesCocoa.txt"
10 )
11
12 list(APPEND JavaScriptCore_PRIVATE_INCLUDE_DIRECTORIES
13     ${JAVASCRIPTCORE_DIR}/disassembler/udis86
14     ${JAVASCRIPTCORE_DIR}/inspector/cocoa
15     ${JAVASCRIPTCORE_DIR}/inspector/remote/cocoa
16 )
17
18 list(APPEND JavaScriptCore_PUBLIC_FRAMEWORK_HEADERS
19     API/JSContext.h
20     API/JSExport.h
21     API/JSManagedValue.h
22     API/JSStringRefCF.h
23     API/JSValue.h
24     API/JSVirtualMachine.h
25     API/JavaScriptCore.h
26 )
27
28 list(APPEND JavaScriptCore_PRIVATE_FRAMEWORK_HEADERS
29     inspector/remote/cocoa/RemoteInspectorXPCConnection.h
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 ()