Unreviewed, rolling out r241784.
[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     ${DERIVED_SOURCES_WTF_DIR}
14     ${JAVASCRIPTCORE_DIR}/disassembler/udis86
15     ${JAVASCRIPTCORE_DIR}/inspector/cocoa
16     ${JAVASCRIPTCORE_DIR}/inspector/remote/cocoa
17 )
18
19 list(APPEND JavaScriptCore_PUBLIC_FRAMEWORK_HEADERS
20     API/JSContext.h
21     API/JSExport.h
22     API/JSManagedValue.h
23     API/JSStringRefCF.h
24     API/JSValue.h
25     API/JSVirtualMachine.h
26     API/JavaScriptCore.h
27 )
28
29 list(APPEND JavaScriptCore_PRIVATE_FRAMEWORK_HEADERS
30     inspector/remote/cocoa/RemoteInspectorXPCConnection.h
31 )
32
33 set(CMAKE_SHARED_LINKER_FLAGS ${CMAKE_SHARED_LINKER_FLAGS} "-compatibility_version 1 -current_version ${WEBKIT_MAC_VERSION}")
34
35 # FIXME: Make including these files consistent in the source so these forwarding headers are not needed.
36 if (NOT EXISTS ${DERIVED_SOURCES_JAVASCRIPTCORE_DIR}/InspectorBackendDispatchers.h)
37     file(WRITE ${DERIVED_SOURCES_JAVASCRIPTCORE_DIR}/InspectorBackendDispatchers.h "#include \"inspector/InspectorBackendDispatchers.h\"")
38 endif ()
39 if (NOT EXISTS ${DERIVED_SOURCES_JAVASCRIPTCORE_DIR}/InspectorFrontendDispatchers.h)
40     file(WRITE ${DERIVED_SOURCES_JAVASCRIPTCORE_DIR}/InspectorFrontendDispatchers.h "#include \"inspector/InspectorFrontendDispatchers.h\"")
41 endif ()
42 if (NOT EXISTS ${DERIVED_SOURCES_JAVASCRIPTCORE_DIR}/InspectorProtocolObjects.h)
43     file(WRITE ${DERIVED_SOURCES_JAVASCRIPTCORE_DIR}/InspectorProtocolObjects.h "#include \"inspector/InspectorProtocolObjects.h\"")
44 endif ()