[CMake][Win] Conditionally select DLL CRT or static CRT
[WebKit-https.git] / Source / cmake / OptionsAppleWin.cmake
1 # The static runtime is required for AppleWin due to WebKitSystemInterface.lib
2 # being compiled with a static runtime.
3 set(MSVC_STATIC_RUNTIME ON)
4
5 include(OptionsWin)
6
7 SET_AND_EXPOSE_TO_BUILD(USE_CF ON)
8 SET_AND_EXPOSE_TO_BUILD(USE_CFURLCONNECTION ON)
9
10 set(USE_CA 1)
11 set(USE_ICU_UNICODE 1)
12
13 # Libraries where find_package does not work
14 set(COREFOUNDATION_LIBRARY CoreFoundation${DEBUG_SUFFIX})
15 set(LIBXML2_LIBRARIES libxml2${DEBUG_SUFFIX})
16 set(LIBXSLT_LIBRARIES libxslt${DEBUG_SUFFIX})
17 set(SQLITE_LIBRARIES SQLite3${DEBUG_SUFFIX})
18 set(ZLIB_INCLUDE_DIRS "${WEBKIT_LIBRARIES_DIR}/include/zlib")
19 set(ZLIB_LIBRARIES zdll${DEBUG_SUFFIX})
20
21 # Uncomment the following line to try the Direct2D backend.
22 # set(USE_DIRECT2D 1)
23
24 if (${USE_DIRECT2D})
25     add_definitions(-DUSE_DIRECT2D=1)
26 endif ()
27
28 # Warnings as errors (ignore narrowing conversions)
29 add_compile_options(/WX /Wv:18)