[CMake] Make USE_CF conditional within Windows
[WebKit-https.git] / Source / cmake / OptionsAppleWin.cmake
1 include(OptionsWin)
2
3 SET_AND_EXPOSE_TO_BUILD(USE_CF ON)
4 SET_AND_EXPOSE_TO_BUILD(USE_CFURLCONNECTION ON)
5
6 set(USE_CA 1)
7 set(USE_ICU_UNICODE 1)
8
9 # Libraries where find_package does not work
10 set(COREFOUNDATION_LIBRARY CoreFoundation${DEBUG_SUFFIX})
11 set(LIBXML2_LIBRARIES libxml2${DEBUG_SUFFIX})
12 set(LIBXSLT_LIBRARIES libxslt${DEBUG_SUFFIX})
13 set(SQLITE_LIBRARIES SQLite3${DEBUG_SUFFIX})
14 set(ZLIB_INCLUDE_DIRS "${WEBKIT_LIBRARIES_DIR}/include/zlib")
15 set(ZLIB_LIBRARIES zdll${DEBUG_SUFFIX})
16
17 # Uncomment the following line to try the Direct2D backend.
18 # set(USE_DIRECT2D 1)
19
20 if (${USE_DIRECT2D})
21     add_definitions(-DUSE_DIRECT2D=1)
22 endif ()
23
24 # Warnings as errors (ignore narrowing conversions)
25 add_compile_options(/WX /Wv:18)