2021-03-05 19:12:45 +00:00
|
|
|
cmake_minimum_required(VERSION 3.12)
|
|
|
|
|
2015-08-17 20:37:06 +00:00
|
|
|
include(WebKitCommon)
|
2020-01-16 15:56:57 +00:00
|
|
|
include(target/TargetWTF)
|
|
|
|
include(target/TargetJavaScriptCore)
|
2020-02-27 22:37:01 +00:00
|
|
|
include(target/PAL)
|
2020-04-17 20:15:01 +00:00
|
|
|
include(target/WebCore)
|
2021-03-05 19:12:45 +00:00
|
|
|
|
2017-09-19 00:29:31 +00:00
|
|
|
set_property(DIRECTORY . PROPERTY FOLDER "WebKitLegacy")
|
2015-08-17 20:37:06 +00:00
|
|
|
|
2017-09-19 00:29:31 +00:00
|
|
|
set(WebKitLegacy_SOURCES
|
2016-02-26 16:47:29 +00:00
|
|
|
Storage/StorageAreaImpl.cpp
|
|
|
|
Storage/StorageAreaSync.cpp
|
|
|
|
Storage/StorageNamespaceImpl.cpp
|
|
|
|
Storage/StorageSyncManager.cpp
|
|
|
|
Storage/StorageThread.cpp
|
|
|
|
Storage/StorageTracker.cpp
|
|
|
|
Storage/WebDatabaseProvider.cpp
|
|
|
|
Storage/WebStorageNamespaceProvider.cpp
|
2021-01-05 20:02:58 +00:00
|
|
|
Storage/InProcessIDBServer.cpp
|
2016-02-26 16:47:29 +00:00
|
|
|
|
2019-01-22 21:28:28 +00:00
|
|
|
WebCoreSupport/NetworkStorageSessionMap.cpp
|
2021-07-16 00:36:39 +00:00
|
|
|
WebCoreSupport/WebBroadcastChannelRegistry.cpp
|
2015-12-03 12:51:17 +00:00
|
|
|
WebCoreSupport/WebResourceLoadScheduler.cpp
|
2015-09-14 21:22:46 +00:00
|
|
|
WebCoreSupport/WebViewGroup.cpp
|
2015-03-14 02:57:54 +00:00
|
|
|
)
|
|
|
|
|
2019-04-20 19:00:15 +00:00
|
|
|
set(WebKitLegacy_PRIVATE_INCLUDE_DIRECTORIES
|
2017-01-05 18:05:29 +00:00
|
|
|
"${CMAKE_BINARY_DIR}"
|
2017-09-19 00:29:31 +00:00
|
|
|
"${WEBKITLEGACY_DIR}/Storage"
|
|
|
|
"${WEBKITLEGACY_DIR}/WebCoreSupport"
|
2019-04-20 19:00:15 +00:00
|
|
|
"${WebKitLegacy_DERIVED_SOURCES_DIR}"
|
2015-03-14 02:57:54 +00:00
|
|
|
)
|
|
|
|
|
2020-01-31 14:31:53 +00:00
|
|
|
set(WebKitLegacy_PRIVATE_LIBRARIES
|
2020-02-27 22:37:01 +00:00
|
|
|
WebKit::JavaScriptCore
|
|
|
|
WebKit::PAL
|
2020-04-17 20:15:01 +00:00
|
|
|
WebKit::WebCore
|
2015-03-14 02:57:54 +00:00
|
|
|
)
|
|
|
|
|
2017-09-19 00:29:31 +00:00
|
|
|
WEBKIT_FRAMEWORK_DECLARE(WebKitLegacy)
|
2015-03-14 02:57:54 +00:00
|
|
|
WEBKIT_INCLUDE_CONFIG_FILES_IF_EXISTS()
|
|
|
|
|
2015-04-08 16:47:56 +00:00
|
|
|
if (MSVC)
|
2017-09-19 00:29:31 +00:00
|
|
|
WEBKIT_ADD_PRECOMPILED_HEADER("WebKitPrefix.h" "win/WebKitPrefix.cpp" WebKitLegacy_SOURCES)
|
|
|
|
list(APPEND WebKitLegacy_SOURCES win/WebKit.resources/WebKit.rc)
|
|
|
|
add_definitions(/DWEBKIT_EXPORTS /DFRAMEWORK_NAME=WebKitLegacy)
|
2015-04-08 16:47:56 +00:00
|
|
|
endif ()
|
|
|
|
|
2017-09-19 00:29:31 +00:00
|
|
|
WEBKIT_FRAMEWORK(WebKitLegacy)
|
2016-02-22 19:32:47 +00:00
|
|
|
|
2017-09-19 00:29:31 +00:00
|
|
|
if (TARGET WebKitLegacyGUID)
|
|
|
|
add_dependencies(WebKitLegacy WebKitLegacyGUID)
|
2016-02-10 19:56:25 +00:00
|
|
|
endif ()
|
2016-04-06 05:31:07 +00:00
|
|
|
|
|
|
|
if (APPLE)
|
2017-09-26 04:19:22 +00:00
|
|
|
set_target_properties(WebKitLegacy PROPERTIES LINK_FLAGS "-umbrella WebKit")
|
2016-04-06 05:31:07 +00:00
|
|
|
endif ()
|
2016-07-12 11:14:43 +00:00
|
|
|
|
2021-01-05 20:02:58 +00:00
|
|
|
if (HAIKU)
|
|
|
|
WEBKIT_POPULATE_LIBRARY_VERSION(WEBKIT)
|
|
|
|
set_target_properties(WebKitLegacy PROPERTIES VERSION ${WEBKIT_VERSION} SOVERSION ${WEBKIT_VERSION_MAJOR})
|
|
|
|
install(TARGETS WebKitLegacy DESTINATION "${LIB_INSTALL_DIR}")
|
|
|
|
endif ()
|
|
|
|
|
2016-07-12 11:14:43 +00:00
|
|
|
if (MSVC)
|
|
|
|
add_custom_command(
|
2017-09-19 00:29:31 +00:00
|
|
|
TARGET WebKitLegacy
|
2016-07-12 11:14:43 +00:00
|
|
|
POST_BUILD
|
2019-04-20 19:00:15 +00:00
|
|
|
COMMAND ${PERL_EXECUTABLE} ${WEBKIT_LIBRARIES_DIR}/tools/scripts/version-stamp.pl ${WebKitLegacy_DERIVED_SOURCES_DIR} $<TARGET_FILE:WebKitLegacy>
|
2016-07-12 11:14:43 +00:00
|
|
|
VERBATIM)
|
2017-11-09 17:11:24 +00:00
|
|
|
|
2019-12-02 17:42:40 +00:00
|
|
|
if (USE_CA)
|
|
|
|
add_subdirectory(win/WebKitQuartzCoreAdditions)
|
|
|
|
endif ()
|
2016-07-12 11:14:43 +00:00
|
|
|
endif ()
|