[macOS] Select element doesn't show popup if select element had lost focus while...
[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/NetworkStorageSessionMap.cpp
16     WebCoreSupport/WebResourceLoadScheduler.cpp
17     WebCoreSupport/WebViewGroup.cpp
18 )
19
20 set(WebKitLegacy_INCLUDE_DIRECTORIES
21     "${CMAKE_BINARY_DIR}"
22     "${WEBKITLEGACY_DIR}/Storage"
23     "${WEBKITLEGACY_DIR}/WebCoreSupport"
24     "${FORWARDING_HEADERS_DIR}"
25 )
26
27 set(WebKitLegacy_SYSTEM_INCLUDE_DIRECTORIES
28     "${ICU_INCLUDE_DIRS}"
29 )
30
31 set(WebKitLegacy_LIBRARIES
32     PRIVATE JavaScriptCore${DEBUG_SUFFIX}
33     PRIVATE WebCore${DEBUG_SUFFIX}
34     PRIVATE PAL${DEBUG_SUFFIX}
35 )
36
37 WEBKIT_FRAMEWORK_DECLARE(WebKitLegacy)
38 WEBKIT_INCLUDE_CONFIG_FILES_IF_EXISTS()
39
40 if (MSVC)
41     WEBKIT_ADD_PRECOMPILED_HEADER("WebKitPrefix.h" "win/WebKitPrefix.cpp" WebKitLegacy_SOURCES)
42     list(APPEND WebKitLegacy_SOURCES win/WebKit.resources/WebKit.rc)
43     add_definitions(/DWEBKIT_EXPORTS /DFRAMEWORK_NAME=WebKitLegacy)
44 endif ()
45
46 WEBKIT_FRAMEWORK(WebKitLegacy)
47
48 add_dependencies(WebKitLegacy WebCore)
49 if (TARGET WebKitLegacyGUID)
50     add_dependencies(WebKitLegacy WebKitLegacyGUID)
51 endif ()
52
53 if (APPLE)
54     set_target_properties(WebKitLegacy PROPERTIES LINK_FLAGS "-umbrella WebKit")
55 endif ()
56
57 if (MSVC)
58     add_custom_command(
59         TARGET WebKitLegacy
60         POST_BUILD
61         COMMAND ${PERL_EXECUTABLE} ${WEBKIT_LIBRARIES_DIR}/tools/scripts/version-stamp.pl ${DERIVED_SOURCES_WEBKITLEGACY_DIR} $<TARGET_FILE:WebKitLegacy>
62         VERBATIM)
63
64      if (NOT WTF_PLATFORM_WIN_CAIRO)
65          add_subdirectory(win/WebKitQuartzCoreAdditions)
66      endif ()
67 endif ()