WebKit ignores inherited GCC_PREPROCESSOR_DEFINITIONS
[WebKit-https.git] / Source / cmake / OptionsWinCairo.cmake
1 set(WTF_PLATFORM_WIN_CAIRO 1)
2
3 include(OptionsWin)
4
5 # TODO: Move this above OptionsWin when WebKitLegacy is deprecated
6 set(ENABLE_WEBKIT ON)
7
8 find_package(Cairo 1.15.12 REQUIRED)
9 find_package(CURL 7.71.0 REQUIRED)
10 find_package(ICU 61.2 REQUIRED COMPONENTS data i18n uc)
11 find_package(JPEG 1.5.2 REQUIRED)
12 find_package(LibXml2 2.9.7 REQUIRED)
13 find_package(OpenSSL 2.0.0 REQUIRED)
14 find_package(PNG 1.6.34 REQUIRED)
15 find_package(SQLite3 3.23.1 REQUIRED)
16 find_package(ZLIB 1.2.11 REQUIRED)
17 find_package(LibPSL 0.20.2 REQUIRED)
18
19 if (ENABLE_XSLT)
20     find_package(LibXslt 1.1.32 REQUIRED)
21 endif ()
22
23 # Optional packages
24 find_package(OpenJPEG 2.3.1)
25 if (OpenJPEG_FOUND)
26     SET_AND_EXPOSE_TO_BUILD(USE_OPENJPEG ON)
27 endif ()
28
29 find_package(WOFF2 1.0.2 COMPONENTS dec)
30 if (WOFF2_FOUND)
31     SET_AND_EXPOSE_TO_BUILD(USE_WOFF2 ON)
32 endif ()
33
34 find_package(WebP COMPONENTS demux)
35 if (WebP_FOUND)
36     SET_AND_EXPOSE_TO_BUILD(USE_WEBP ON)
37 endif ()
38
39 set(USE_ANGLE_EGL ON)
40 set(USE_ANGLE_WEBGL ON)
41
42 SET_AND_EXPOSE_TO_BUILD(USE_ANGLE ON)
43 SET_AND_EXPOSE_TO_BUILD(USE_CAIRO ON)
44 SET_AND_EXPOSE_TO_BUILD(USE_CF ON)
45 SET_AND_EXPOSE_TO_BUILD(USE_CURL ON)
46 SET_AND_EXPOSE_TO_BUILD(USE_GRAPHICS_LAYER_TEXTURE_MAPPER ON)
47 SET_AND_EXPOSE_TO_BUILD(USE_EGL ON)
48 SET_AND_EXPOSE_TO_BUILD(USE_OPENGL_ES ON)
49 SET_AND_EXPOSE_TO_BUILD(HAVE_OPENGL_ES_3 ON)
50 SET_AND_EXPOSE_TO_BUILD(USE_OPENSSL ON)
51 SET_AND_EXPOSE_TO_BUILD(USE_TEXTURE_MAPPER ON)
52 SET_AND_EXPOSE_TO_BUILD(USE_TEXTURE_MAPPER_GL ON)
53 SET_AND_EXPOSE_TO_BUILD(USE_MEDIA_FOUNDATION ON)
54 SET_AND_EXPOSE_TO_BUILD(USE_INSPECTOR_SOCKET_SERVER ${ENABLE_REMOTE_INSPECTOR})
55
56 SET_AND_EXPOSE_TO_BUILD(ENABLE_DEVELOPER_MODE ${DEVELOPER_MODE})
57
58 SET_AND_EXPOSE_TO_BUILD(HAVE_OS_DARK_MODE_SUPPORT 1)
59
60 set(COREFOUNDATION_LIBRARY CFlite)
61
62 add_definitions(-DWTF_PLATFORM_WIN_CAIRO=1)
63 add_definitions(-DNOCRYPT)
64
65 # Override library types
66 set(WebCore_LIBRARY_TYPE OBJECT)
67 set(WebCoreTestSupport_LIBRARY_TYPE OBJECT)