Modern IDB: Support populating/extracting database metadata with SQLite backend.
[WebKit-https.git] / Source / WebKit / CMakeLists.txt
1 cmake_minimum_required(VERSION 2.8.12)
2 include(WebKitCommon)
3
4 set(WebKit_SOURCES
5     WebCoreSupport/WebResourceLoadScheduler.cpp
6     WebCoreSupport/WebViewGroup.cpp
7 )
8
9 set(WebKit_INCLUDE_DIRECTORIES
10     WebCoreSupport
11     "${CMAKE_BINARY_DIR}"
12     "${CMAKE_SOURCE_DIR}/Source"
13     "${DERIVED_SOURCES_DIR}"
14     "${DERIVED_SOURCES_DIR}/ForwardingHeaders"
15     "${DERIVED_SOURCES_DIR}/ForwardingHeaders/JavaScriptCore"
16     "${DERIVED_SOURCES_DIR}/ForwardingHeaders/WebCore"
17     "${DERIVED_SOURCES_DIR}/ForwardingHeaders/WebKitLegacy"
18 )
19
20 set(WebKit_SYSTEM_INCLUDE_DIRECTORIES "")
21
22 set(WebKit_LIBRARIES
23     PRIVATE JavaScriptCore${DEBUG_SUFFIX}
24     PRIVATE WTF${DEBUG_SUFFIX}
25     PRIVATE WebCore${DEBUG_SUFFIX}
26 )
27
28 WEBKIT_INCLUDE_CONFIG_FILES_IF_EXISTS()
29
30 include_directories(${WebKit_INCLUDE_DIRECTORIES})
31 include_directories(SYSTEM ${WebKit_SYSTEM_INCLUDE_DIRECTORIES})
32
33 if (MSVC)
34     ADD_PRECOMPILED_HEADER("WebKitPrefix.h" "win/WebKitPrefix.cpp" WebKit_SOURCES)
35     list(APPEND WebKit_SOURCES win/WebKit.resources/WebKit.rc)
36     add_definitions(/DWEBKIT_EXPORTS /DFRAMEWORK_NAME=WebKit)
37 endif ()
38
39 add_library(WebKit ${WebKit_LIBRARY_TYPE} ${WebKit_SOURCES})
40 add_dependencies(WebKit WebCore)
41 target_link_libraries(WebKit ${WebKit_LIBRARIES})
42 set_target_properties(WebKit PROPERTIES FOLDER "WebKit")
43
44 if (WebKit_OUTPUT_NAME)
45     set_target_properties(WebKit PROPERTIES OUTPUT_NAME ${WebKit_OUTPUT_NAME})
46 endif ()
47
48 WEBKIT_FRAMEWORK(WebKit)