bb6e6ca86e2ed8f27b2c64fbc5fe049f531d782e
[WebKit-https.git] / Source / JavaScriptCore / PlatformMac.cmake
1 find_library(COCOA_LIBRARY Cocoa)
2 find_library(COREFOUNDATION_LIBRARY CoreFoundation)
3 find_library(READLINE_LIBRARY Readline)
4 list(APPEND JavaScriptCore_LIBRARIES
5     ${COREFOUNDATION_LIBRARY}
6     ${COCOA_LIBRARY}
7     ${READLINE_LIBRARY}
8     libicucore.dylib
9 )
10
11 list(APPEND JavaScriptCore_SOURCES
12     API/JSAPIWrapperObject.mm
13     API/JSContext.mm
14     API/JSManagedValue.mm
15     API/JSRemoteInspector.cpp
16     API/JSStringRefCF.cpp
17     API/JSValue.mm
18     API/JSVirtualMachine.mm
19     API/JSWrapperMap.mm
20     API/ObjCCallbackFunction.mm
21
22     inspector/remote/RemoteInspector.mm
23     inspector/remote/RemoteInspectorDebuggable.cpp
24     inspector/remote/RemoteInspectorDebuggableConnection.mm
25     inspector/remote/RemoteInspectorXPCConnection.mm
26 )
27 add_definitions(-DSTATICALLY_LINKED_WITH_WTF)
28
29 add_custom_command(
30     OUTPUT ${DERIVED_SOURCES_JAVASCRIPTCORE_DIR}/TracingDtrace.h
31     DEPENDS ${JAVASCRIPTCORE_DIR}/runtime/Tracing.d
32     WORKING_DIRECTORY ${DERIVED_SOURCES_JAVASCRIPTCORE_DIR}
33     COMMAND dtrace -h -o "${DERIVED_SOURCES_JAVASCRIPTCORE_DIR}/TracingDtrace.h" -s "${JAVASCRIPTCORE_DIR}/runtime/Tracing.d"
34     VERBATIM)
35
36 list(APPEND JavaScriptCore_INCLUDE_DIRECTORIES
37     ${JAVASCRIPTCORE_DIR}/disassembler/udis86
38     ${JAVASCRIPTCORE_DIR}/icu
39 )
40 list(APPEND JavaScriptCore_HEADERS
41     ${DERIVED_SOURCES_JAVASCRIPTCORE_DIR}/TracingDtrace.h
42 )