Make EncryptedMediaAPIEnabled an experimental feature
[WebKit-https.git] / Source / WebKitLegacy / CMakeLists.txt
1 cmake_minimum_required(VERSION 2.8.12)
2 include(WebKitCommon)
3 set_property(DIRECTORY . PROPERTY FOLDER "WebKitLegacy")
4
5 set(WebKitLegacy_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(WebKitLegacy_INCLUDE_DIRECTORIES
20     "${CMAKE_BINARY_DIR}"
21     "${WEBKITLEGACY_DIR}/Storage"
22     "${WEBKITLEGACY_DIR}/WebCoreSupport"
23     "${FORWARDING_HEADERS_DIR}"
24 )
25
26 set(WebKitLegacy_SYSTEM_INCLUDE_DIRECTORIES
27     "${ICU_INCLUDE_DIRS}"
28 )
29
30 set(WebKitLegacy_LIBRARIES
31     PRIVATE JavaScriptCore${DEBUG_SUFFIX}
32     PRIVATE WebCore${DEBUG_SUFFIX}
33     PRIVATE PAL${DEBUG_SUFFIX}
34 )
35
36 WEBKIT_FRAMEWORK_DECLARE(WebKitLegacy)
37 WEBKIT_INCLUDE_CONFIG_FILES_IF_EXISTS()
38
39 if (MSVC)
40     WEBKIT_ADD_PRECOMPILED_HEADER("WebKitPrefix.h" "win/WebKitPrefix.cpp" WebKitLegacy_SOURCES)
41     list(APPEND WebKitLegacy_SOURCES win/WebKit.resources/WebKit.rc)
42     add_definitions(/DWEBKIT_EXPORTS /DFRAMEWORK_NAME=WebKitLegacy)
43 endif ()
44
45 WEBKIT_FRAMEWORK(WebKitLegacy)
46
47 add_dependencies(WebKitLegacy WebCore)
48 if (TARGET WebKitLegacyGUID)
49     add_dependencies(WebKitLegacy WebKitLegacyGUID)
50 endif ()
51
52 if (APPLE)
53     set_target_properties(WebKitLegacy PROPERTIES LINK_FLAGS "-umbrella WebKit")
54 endif ()
55
56 if (MSVC)
57     add_custom_command(
58         TARGET WebKitLegacy
59         POST_BUILD
60         COMMAND ${PERL_EXECUTABLE} ${WEBKIT_LIBRARIES_DIR}/tools/scripts/version-stamp.pl ${DERIVED_SOURCES_WEBKITLEGACY_DIR} $<TARGET_FILE:WebKitLegacy>
61         VERBATIM)
62
63      if (NOT WTF_PLATFORM_WIN_CAIRO)
64          add_subdirectory(win/WebKitQuartzCoreAdditions)
65      endif ()
66 endif ()