PolymorphicAccess should try to generate a stub only once
[WebKit.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     Storage
21     WebCoreSupport
22
23     "${CMAKE_BINARY_DIR}"
24     "${CMAKE_SOURCE_DIR}/Source"
25     "${DERIVED_SOURCES_DIR}"
26     "${DERIVED_SOURCES_DIR}/ForwardingHeaders"
27     "${DERIVED_SOURCES_DIR}/ForwardingHeaders/JavaScriptCore"
28     "${DERIVED_SOURCES_DIR}/ForwardingHeaders/WebCore"
29     "${DERIVED_SOURCES_DIR}/ForwardingHeaders/WebKitLegacy"
30 )
31
32 set(WebKit_SYSTEM_INCLUDE_DIRECTORIES
33     "${ICU_INCLUDE_DIRS}"
34 )
35
36 set(WebKit_LIBRARIES
37     PRIVATE JavaScriptCore${DEBUG_SUFFIX}
38     PRIVATE WebCore${DEBUG_SUFFIX}
39 )
40
41 WEBKIT_INCLUDE_CONFIG_FILES_IF_EXISTS()
42
43 if (MSVC)
44     ADD_PRECOMPILED_HEADER("WebKitPrefix.h" "win/WebKitPrefix.cpp" WebKit_SOURCES)
45     list(APPEND WebKit_SOURCES win/WebKit.resources/WebKit.rc)
46     add_definitions(/DWEBKIT_EXPORTS /DFRAMEWORK_NAME=WebKit)
47 endif ()
48
49 WEBKIT_FRAMEWORK(WebKit)
50
51 add_dependencies(WebKit WebCore)
52 if (WIN32)
53     add_dependencies(WebKit WebKitGUID)
54 endif ()
55
56 if (APPLE)
57     set_target_properties(WebKit PROPERTIES LINK_FLAGS "-umbrella WebKit")
58 endif ()