Unreviewed, fix GTK/EFL build after r197575 and add mandatory GnuTLS dependency
[WebKit-https.git] / Source / WebKit / CMakeLists.txt
1 cmake_minimum_required(VERSION 2.8.12)
2 include(WebKitCommon)
3
4 set(WebKit_SOURCES
5     Storage/StorageAreaImpl.cpp
6     Storage/StorageAreaSync.cpp
7     Storage/StorageNamespaceImpl.cpp
8     Storage/StorageSyncManager.cpp
9     Storage/StorageThread.cpp
10     Storage/StorageTracker.cpp
11     Storage/WebDatabaseProvider.cpp
12     Storage/WebStorageNamespaceProvider.cpp
13
14     WebCoreSupport/WebResourceLoadScheduler.cpp
15     WebCoreSupport/WebViewGroup.cpp
16 )
17
18 set(WebKit_INCLUDE_DIRECTORIES
19     Storage
20     WebCoreSupport
21
22     "${CMAKE_BINARY_DIR}"
23     "${CMAKE_SOURCE_DIR}/Source"
24     "${DERIVED_SOURCES_DIR}"
25     "${DERIVED_SOURCES_DIR}/ForwardingHeaders"
26     "${DERIVED_SOURCES_DIR}/ForwardingHeaders/JavaScriptCore"
27     "${DERIVED_SOURCES_DIR}/ForwardingHeaders/WebCore"
28     "${DERIVED_SOURCES_DIR}/ForwardingHeaders/WebKitLegacy"
29 )
30
31 set(WebKit_SYSTEM_INCLUDE_DIRECTORIES "")
32
33 set(WebKit_LIBRARIES
34     PRIVATE JavaScriptCore${DEBUG_SUFFIX}
35     PRIVATE WTF${DEBUG_SUFFIX}
36     PRIVATE WebCore${DEBUG_SUFFIX}
37 )
38
39 WEBKIT_INCLUDE_CONFIG_FILES_IF_EXISTS()
40
41 if (MSVC)
42     ADD_PRECOMPILED_HEADER("WebKitPrefix.h" "win/WebKitPrefix.cpp" WebKit_SOURCES)
43     list(APPEND WebKit_SOURCES win/WebKit.resources/WebKit.rc)
44     add_definitions(/DWEBKIT_EXPORTS /DFRAMEWORK_NAME=WebKit)
45 endif ()
46
47 WEBKIT_FRAMEWORK(WebKit)
48
49 add_dependencies(WebKit WebCore)
50 if (WIN32)
51     add_dependencies(WebKit WebKitGUID)
52 endif ()