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