[CMake] WebCore derived sources should only be referenced inside WebCore
[WebKit-https.git] / Source / cmake / OptionsWinCairo.cmake
1 set(WTF_PLATFORM_WIN_CAIRO 1)
2
3 include(OptionsWin)
4
5 find_package(Cairo 1.15.12 REQUIRED)
6 find_package(CURL 7.60.0 REQUIRED)
7 find_package(JPEG 1.5.2 REQUIRED)
8 find_package(LibXml2 2.9.7 REQUIRED)
9 find_package(OpenSSL 2.0.0 REQUIRED)
10 find_package(PNG 1.6.34 REQUIRED)
11 find_package(Sqlite 3.23.1 REQUIRED)
12 find_package(ZLIB 1.2.11 REQUIRED)
13 find_package(LibPSL 0.20.2 REQUIRED)
14
15 find_package(WebP 1.0.0)
16
17 if (WEBP_FOUND)
18     SET_AND_EXPOSE_TO_BUILD(USE_WEBP ON)
19 endif ()
20
21 if (ENABLE_XSLT)
22     find_package(LibXslt 1.1.32 REQUIRED)
23 endif ()
24
25 SET_AND_EXPOSE_TO_BUILD(USE_CAIRO ON)
26 SET_AND_EXPOSE_TO_BUILD(USE_CF ON)
27 SET_AND_EXPOSE_TO_BUILD(USE_CURL ON)
28 SET_AND_EXPOSE_TO_BUILD(USE_TEXTURE_MAPPER ON)
29 SET_AND_EXPOSE_TO_BUILD(USE_TEXTURE_MAPPER_GL ON)
30 SET_AND_EXPOSE_TO_BUILD(USE_MEDIA_FOUNDATION ON)
31
32 set(ENABLE_GRAPHICS_CONTEXT_3D ON)
33 set(ENABLE_WEBKIT ON)
34
35 set(COREFOUNDATION_LIBRARY CFlite)
36
37 SET_AND_EXPOSE_TO_BUILD(ENABLE_DEVELOPER_MODE ${DEVELOPER_MODE})
38
39 add_definitions(-DWTF_PLATFORM_WIN_CAIRO=1)
40
41 # Override headers directories
42 set(WTF_FRAMEWORK_HEADERS_DIR ${CMAKE_BINARY_DIR}/WTF/Headers)
43 set(JavaScriptCore_FRAMEWORK_HEADERS_DIR ${CMAKE_BINARY_DIR}/JavaScriptCore/Headers)
44 set(JavaScriptCore_PRIVATE_FRAMEWORK_HEADERS_DIR ${CMAKE_BINARY_DIR}/JavaScriptCore/PrivateHeaders)
45 set(PAL_FRAMEWORK_HEADERS_DIR ${CMAKE_BINARY_DIR}/PAL/Headers)
46 set(WebCore_PRIVATE_FRAMEWORK_HEADERS_DIR ${CMAKE_BINARY_DIR}/WebCore/PrivateHeaders)
47 set(WebKitLegacy_FRAMEWORK_HEADERS_DIR ${CMAKE_BINARY_DIR}/WebKitLegacy/Headers)
48 set(WebKit_FRAMEWORK_HEADERS_DIR ${CMAKE_BINARY_DIR}/WebKit/Headers)
49 set(WebKit_PRIVATE_FRAMEWORK_HEADERS_DIR ${CMAKE_BINARY_DIR}/WebKit/PrivateHeaders)
50
51 # Override derived sources directories
52 set(WTF_DERIVED_SOURCES_DIR ${CMAKE_BINARY_DIR}/WTF/DerivedSources)
53 set(JavaScriptCore_DERIVED_SOURCES_DIR ${CMAKE_BINARY_DIR}/JavaScriptCore/DerivedSources)
54 set(WebCore_DERIVED_SOURCES_DIR ${CMAKE_BINARY_DIR}/WebCore/DerivedSources)
55
56 # Override scripts directories
57 set(JavaScriptCore_SCRIPTS_DIR ${CMAKE_BINARY_DIR}/JavaScriptCore/Scripts)