summaryrefslogtreecommitdiffstats
path: root/src/platformsupport/fontdatabases/CMakeLists.txt
blob: be1047eb13ca59061661e37c7d7896c8cc4ff380 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
find_package(Freetype) # special case
find_package(Fontconfig) # special case

#####################################################################
## FontDatabaseSupport Module:
#####################################################################

add_qt_module(FontDatabaseSupport
    STATIC
    DEFINES
        QT_NO_CAST_FROM_ASCII
    LIBRARIES
        Qt::CorePrivate
        Qt::GuiPrivate
)

#### Keys ignored in scope 1:.:fontdatabases.pro:<NONE>:
# CONFIG = "static" "internal_module"
# MODULE = "fontdatabase_support"
# PRECOMPILED_HEADER = "../../corelib/global/qt_pch.h"
# _LOADED = "qt_module"

## Scopes:
#####################################################################

extend_target(FontDatabaseSupport CONDITION APPLE
    SOURCES
        mac/qcoretextfontdatabase.mm mac/qcoretextfontdatabase_p.h
        mac/qfontengine_coretext.mm mac/qfontengine_coretext_p.h
    LIBRARIES
        ${FWCoreFoundation}
        ${FWCoreGraphics}
        ${FWCoreText}
        ${FWFoundation}
)

#### Keys ignored in scope 2:.:fontdatabases.pro:APPLE:
# CONFIG = "watchos_coretext"

extend_target(FontDatabaseSupport CONDITION APPLE AND QT_FEATURE_freetype
    SOURCES
        freetype/qfontengine_ft.cpp freetype/qfontengine_ft_p.h
    LIBRARIES
        Freetype::Freetype
)

extend_target(FontDatabaseSupport CONDITION APPLE_OSX
    LIBRARIES
        ${FWAppKit}
)

extend_target(FontDatabaseSupport CONDITION APPLE AND NOT APPLE_OSX
    LIBRARIES
        ${FWUIKit}
)

extend_target(FontDatabaseSupport CONDITION QT_FEATURE_freetype
    SOURCES
        freetype/qfontengine_ft.cpp freetype/qfontengine_ft_p.h
        freetype/qfreetypefontdatabase.cpp freetype/qfreetypefontdatabase_p.h
    LIBRARIES
        Freetype::Freetype
)

extend_target(FontDatabaseSupport CONDITION UNIX
    SOURCES
        genericunix/qgenericunixfontdatabase_p.h
)

extend_target(FontDatabaseSupport CONDITION QT_FEATURE_fontconfig AND UNIX
    SOURCES
        fontconfig/qfontconfigdatabase.cpp fontconfig/qfontconfigdatabase_p.h
        fontconfig/qfontenginemultifontconfig.cpp fontconfig/qfontenginemultifontconfig_p.h
    LIBRARIES
        Fontconfig::Fontconfig
)

extend_target(FontDatabaseSupport CONDITION WIN32 AND NOT WINRT
    SOURCES
        windows/qwindowsfontdatabase.cpp windows/qwindowsfontdatabase_p.h
        windows/qwindowsfontengine.cpp windows/qwindowsfontengine_p.h
        windows/qwindowsnativeimage.cpp windows/qwindowsnativeimage_p.h
    LIBRARIES
        Qt::GuiPrivate
        advapi32
        gdi32
        ole32
        user32
)

extend_target(FontDatabaseSupport CONDITION QT_FEATURE_freetype AND WIN32 AND NOT WINRT
    SOURCES
        windows/qwindowsfontdatabase_ft.cpp windows/qwindowsfontdatabase_ft_p.h
)

extend_target(FontDatabaseSupport CONDITION QT_FEATURE_directwrite AND WIN32 AND NOT WINRT
    SOURCES
        windows/qwindowsfontenginedirectwrite.cpp windows/qwindowsfontenginedirectwrite_p.h
)

extend_target(FontDatabaseSupport CONDITION QT_FEATURE_directwrite AND QT_FEATURE_directwrite2 AND WIN32 AND NOT WINRT
    DEFINES
        QT_USE_DIRECTWRITE2
)

extend_target(FontDatabaseSupport CONDITION WIN32 AND NOT QT_FEATURE_directwrite AND NOT WINRT
    DEFINES
        QT_NO_DIRECTWRITE
)

extend_target(FontDatabaseSupport CONDITION WIN32 AND mingw AND NOT WINRT
    LIBRARIES
        uuid
)

extend_target(FontDatabaseSupport CONDITION WINRT
    SOURCES
        winrt/qwinrtfontdatabase.cpp winrt/qwinrtfontdatabase_p.h
    DEFINES
        __WRL_NO_DEFAULT_LIB__
    LIBRARIES
        Qt::GuiPrivate
        dwrite
        ws2_32
)