Null deref under WebPageProxy::applicationDidFinishSnapshottingAfterEnteringBackground
[WebKit-https.git] / Source / WebKit / CMakeLists.txt
1 cmake_minimum_required(VERSION 2.8.12)
2 include(WebKitCommon)
3 set_property(DIRECTORY . PROPERTY FOLDER "WebKit")
4
5 set(WebKit_SOURCES
6     Storage/StorageAreaImpl.cpp
7     Storage/StorageAreaSync.cpp
8     Storage/StorageNamespaceImpl.cpp
9     Storage/StorageSyncManager.cpp
10     Storage/StorageThread.cpp
11     Storage/StorageTracker.cpp
12     Storage/WebDatabaseProvider.cpp
13     Storage/WebStorageNamespaceProvider.cpp
14
15     WebCoreSupport/WebResourceLoadScheduler.cpp
16     WebCoreSupport/WebViewGroup.cpp
17 )
18
19 set(WebKit_INCLUDE_DIRECTORIES
20     "${WEBKIT_DIR}/Storage"
21     "${WEBKIT_DIR}/WebCoreSupport"
22     "${DERIVED_SOURCES_DIR}/ForwardingHeaders/JavaScriptCore"
23     "${DERIVED_SOURCES_DIR}/ForwardingHeaders/WebCore"
24     "${DERIVED_SOURCES_DIR}/ForwardingHeaders/WebKitLegacy"
25 )
26
27 set(WebKit_SYSTEM_INCLUDE_DIRECTORIES
28     "${ICU_INCLUDE_DIRS}"
29 )
30
31 set(WebKit_LIBRARIES
32     PRIVATE JavaScriptCore${DEBUG_SUFFIX}
33     PRIVATE WebCore${DEBUG_SUFFIX}
34 )
35
36 WEBKIT_INCLUDE_CONFIG_FILES_IF_EXISTS()
37
38 if (MSVC)
39     ADD_PRECOMPILED_HEADER("WebKitPrefix.h" "win/WebKitPrefix.cpp" WebKit_SOURCES)
40     list(APPEND WebKit_SOURCES win/WebKit.resources/WebKit.rc)
41     add_definitions(/DWEBKIT_EXPORTS /DFRAMEWORK_NAME=WebKit)
42 endif ()
43
44 WEBKIT_FRAMEWORK(WebKit)
45
46 add_dependencies(WebKit WebCore)
47 if (TARGET WebKitGUID)
48     add_dependencies(WebKit WebKitGUID)
49 endif ()
50
51 if (APPLE)
52     set_target_properties(WebKit PROPERTIES LINK_FLAGS "-umbrella WebKit")
53 endif ()
54
55 if (MSVC)
56     add_custom_command(
57         TARGET WebKit
58         POST_BUILD
59         COMMAND ${PERL_EXECUTABLE} ${WEBKIT_LIBRARIES_DIR}/tools/scripts/version-stamp.pl ${DERIVED_SOURCES_WEBKIT_DIR} $<TARGET_FILE:WebKit>
60         VERBATIM)
61 endif ()