2022-10-23 02:55:20 +00:00
|
|
|
add_definitions(-D__STDC_WANT_LIB_EXT1__)
|
2017-08-12 16:48:01 +00:00
|
|
|
|
|
|
|
find_library(SECURITY_LIBRARY Security)
|
|
|
|
list(APPEND JavaScriptCore_LIBRARIES
|
|
|
|
${SECURITY_LIBRARY}
|
|
|
|
)
|
|
|
|
|
2020-08-29 13:27:11 +00:00
|
|
|
list(APPEND JavaScriptCore_UNIFIED_SOURCE_LIST_FILES
|
|
|
|
"SourcesCocoa.txt"
|
|
|
|
)
|
|
|
|
|
|
|
|
list(APPEND JavaScriptCore_PRIVATE_INCLUDE_DIRECTORIES
|
2022-10-23 02:55:20 +00:00
|
|
|
${DERIVED_SOURCES_DIR}
|
2017-08-12 16:48:01 +00:00
|
|
|
${JAVASCRIPTCORE_DIR}/disassembler/udis86
|
2020-08-29 13:27:11 +00:00
|
|
|
${JAVASCRIPTCORE_DIR}/inspector/cocoa
|
2018-01-03 05:16:05 +00:00
|
|
|
${JAVASCRIPTCORE_DIR}/inspector/remote/cocoa
|
2017-08-12 16:48:01 +00:00
|
|
|
)
|
|
|
|
|
2020-08-29 13:27:11 +00:00
|
|
|
list(APPEND JavaScriptCore_PUBLIC_FRAMEWORK_HEADERS
|
2022-10-23 02:55:20 +00:00
|
|
|
API/JSCallbackFunction.h
|
2020-08-29 13:27:11 +00:00
|
|
|
API/JSContext.h
|
2022-10-23 02:55:20 +00:00
|
|
|
API/JSContextPrivate.h
|
|
|
|
API/JSContextRefPrivate.h
|
2020-08-29 13:27:11 +00:00
|
|
|
API/JSExport.h
|
|
|
|
API/JSManagedValue.h
|
|
|
|
API/JSStringRefCF.h
|
|
|
|
API/JSValue.h
|
2022-10-23 02:55:20 +00:00
|
|
|
API/JSValuePrivate.h
|
2020-08-29 13:27:11 +00:00
|
|
|
API/JSVirtualMachine.h
|
|
|
|
API/JavaScriptCore.h
|
|
|
|
)
|
|
|
|
|
|
|
|
list(APPEND JavaScriptCore_PRIVATE_FRAMEWORK_HEADERS
|
|
|
|
inspector/remote/cocoa/RemoteInspectorXPCConnection.h
|
|
|
|
)
|
|
|
|
|
2022-10-23 02:55:20 +00:00
|
|
|
set(CMAKE_SHARED_LINKER_FLAGS ${CMAKE_SHARED_LINKER_FLAGS} "-compatibility_version 1 -current_version ${WEBKIT_MAC_VERSION} -force_load ${CMAKE_BINARY_DIR}/lib/libWTF.a")
|
2017-08-12 16:48:01 +00:00
|
|
|
|
|
|
|
# FIXME: Make including these files consistent in the source so these forwarding headers are not needed.
|
2022-10-23 02:55:20 +00:00
|
|
|
if (NOT EXISTS ${JavaScriptCore_DERIVED_SOURCES_DIR}/AugmentableInspectorControllerClient.h)
|
|
|
|
file(WRITE ${JavaScriptCore_DERIVED_SOURCES_DIR}/AugmentableInspectorControllerClient.h "#include \"inspector/augmentable/AugmentableInspectorControllerClient.h\"")
|
2017-08-12 16:48:01 +00:00
|
|
|
endif ()
|
2022-10-23 02:55:20 +00:00
|
|
|
if (NOT EXISTS ${JavaScriptCore_DERIVED_SOURCES_DIR}/InspectorFrontendRouter.h)
|
|
|
|
file(WRITE ${JavaScriptCore_DERIVED_SOURCES_DIR}/InspectorFrontendRouter.h "#include \"inspector/InspectorFrontendRouter.h\"")
|
2017-08-12 16:48:01 +00:00
|
|
|
endif ()
|
2022-10-23 02:55:20 +00:00
|
|
|
if (NOT EXISTS ${JavaScriptCore_DERIVED_SOURCES_DIR}/InspectorBackendDispatcher.h)
|
|
|
|
file(WRITE ${JavaScriptCore_DERIVED_SOURCES_DIR}/InspectorBackendDispatcher.h "#include \"inspector/InspectorBackendDispatcher.h\"")
|
|
|
|
endif ()
|
|
|
|
if (NOT EXISTS ${JavaScriptCore_DERIVED_SOURCES_DIR}/InspectorBackendDispatchers.h)
|
|
|
|
file(WRITE ${JavaScriptCore_DERIVED_SOURCES_DIR}/InspectorBackendDispatchers.h "#include \"inspector/InspectorBackendDispatchers.h\"")
|
|
|
|
endif ()
|
|
|
|
if (NOT EXISTS ${JavaScriptCore_DERIVED_SOURCES_DIR}/InspectorFrontendDispatchers.h)
|
|
|
|
file(WRITE ${JavaScriptCore_DERIVED_SOURCES_DIR}/InspectorFrontendDispatchers.h "#include \"inspector/InspectorFrontendDispatchers.h\"")
|
|
|
|
endif ()
|
|
|
|
if (NOT EXISTS ${JavaScriptCore_DERIVED_SOURCES_DIR}/InspectorProtocolObjects.h)
|
|
|
|
file(WRITE ${JavaScriptCore_DERIVED_SOURCES_DIR}/InspectorProtocolObjects.h "#include \"inspector/InspectorProtocolObjects.h\"")
|
2017-08-12 16:48:01 +00:00
|
|
|
endif ()
|