1# Qt core io module
2
3HEADERS +=  \
4        io/qabstractfileengine_p.h \
5        io/qbuffer.h \
6        io/qdataurl_p.h \
7        io/qdebug.h \
8        io/qdebug_p.h \
9        io/qdir.h \
10        io/qdir_p.h \
11        io/qdiriterator.h \
12        io/qfile.h \
13        io/qfiledevice.h \
14        io/qfiledevice_p.h \
15        io/qfileinfo.h \
16        io/qfileinfo_p.h \
17        io/qipaddress_p.h \
18        io/qiodevice.h \
19        io/qiodevice_p.h \
20        io/qlockfile.h \
21        io/qlockfile_p.h \
22        io/qnoncontiguousbytedevice_p.h \
23        io/qtemporarydir.h \
24        io/qtemporaryfile.h \
25        io/qtemporaryfile_p.h \
26        io/qresource_p.h \
27        io/qresource_iterator_p.h \
28        io/qsavefile.h \
29        io/qstandardpaths.h \
30        io/qstorageinfo.h \
31        io/qstorageinfo_p.h \
32        io/qurl.h \
33        io/qurl_p.h \
34        io/qurlquery.h \
35        io/qurltlds_p.h \
36        io/qtldurl_p.h \
37        io/qfsfileengine_p.h \
38        io/qfsfileengine_iterator_p.h \
39        io/qfilesystementry_p.h \
40        io/qfilesystemengine_p.h \
41        io/qfilesystemmetadata_p.h \
42        io/qfilesystemiterator_p.h \
43        io/qfileselector.h \
44        io/qfileselector_p.h \
45        io/qloggingcategory.h \
46        io/qloggingregistry_p.h
47
48SOURCES += \
49        io/qabstractfileengine.cpp \
50        io/qbuffer.cpp \
51        io/qdataurl.cpp \
52        io/qtldurl.cpp \
53        io/qdebug.cpp \
54        io/qdir.cpp \
55        io/qdiriterator.cpp \
56        io/qfile.cpp \
57        io/qfiledevice.cpp \
58        io/qfileinfo.cpp \
59        io/qipaddress.cpp \
60        io/qiodevice.cpp \
61        io/qlockfile.cpp \
62        io/qnoncontiguousbytedevice.cpp \
63        io/qstorageinfo.cpp \
64        io/qtemporarydir.cpp \
65        io/qtemporaryfile.cpp \
66        io/qresource.cpp \
67        io/qresource_iterator.cpp \
68        io/qsavefile.cpp \
69        io/qstandardpaths.cpp \
70        io/qurl.cpp \
71        io/qurlidna.cpp \
72        io/qurlquery.cpp \
73        io/qurlrecode.cpp \
74        io/qfsfileengine.cpp \
75        io/qfsfileengine_iterator.cpp \
76        io/qfilesystementry.cpp \
77        io/qfilesystemengine.cpp \
78        io/qfileselector.cpp \
79        io/qloggingcategory.cpp \
80        io/qloggingregistry.cpp
81
82qtConfig(zstd): QMAKE_USE_PRIVATE += zstd
83
84qtConfig(filesystemwatcher) {
85    HEADERS += \
86        io/qfilesystemwatcher.h \
87        io/qfilesystemwatcher_p.h \
88        io/qfilesystemwatcher_polling_p.h
89    SOURCES += \
90        io/qfilesystemwatcher.cpp \
91        io/qfilesystemwatcher_polling.cpp
92
93    win32 {
94        SOURCES += io/qfilesystemwatcher_win.cpp
95        HEADERS += io/qfilesystemwatcher_win_p.h
96    } else:macos {
97        OBJECTIVE_SOURCES += io/qfilesystemwatcher_fsevents.mm
98        HEADERS += io/qfilesystemwatcher_fsevents_p.h
99    } else:qtConfig(inotify) {
100        SOURCES += io/qfilesystemwatcher_inotify.cpp
101        HEADERS += io/qfilesystemwatcher_inotify_p.h
102    } else {
103        freebsd|darwin|openbsd|netbsd {
104            SOURCES += io/qfilesystemwatcher_kqueue.cpp
105            HEADERS += io/qfilesystemwatcher_kqueue_p.h
106        }
107    }
108}
109
110qtConfig(processenvironment) {
111    SOURCES += \
112        io/qprocess.cpp
113    HEADERS += \
114        io/qprocess.h \
115        io/qprocess_p.h
116
117    win32:!winrt: \
118        SOURCES += io/qprocess_win.cpp
119    else: unix: \
120        SOURCES += io/qprocess_unix.cpp
121}
122
123qtConfig(settings) {
124    SOURCES += \
125        io/qsettings.cpp
126    HEADERS += \
127        io/qsettings.h \
128        io/qsettings_p.h
129
130    win32 {
131        !winrt {
132            SOURCES += io/qsettings_win.cpp
133        } else {
134            SOURCES += io/qsettings_winrt.cpp
135        }
136    } else: darwin:!nacl {
137        SOURCES += io/qsettings_mac.cpp
138    }
139    wasm : SOURCES += io/qsettings_wasm.cpp
140}
141
142win32 {
143        SOURCES += io/qfsfileengine_win.cpp
144        SOURCES += io/qlockfile_win.cpp
145        SOURCES += io/qfilesystemengine_win.cpp
146
147        qtConfig(filesystemiterator) {
148            SOURCES += io/qfilesystemiterator_win.cpp
149        }
150
151    !winrt {
152        HEADERS += \
153            io/qwindowspipereader_p.h \
154            io/qwindowspipewriter_p.h
155
156        SOURCES += \
157            io/qstandardpaths_win.cpp \
158            io/qstorageinfo_win.cpp \
159            io/qwindowspipereader.cpp \
160            io/qwindowspipewriter.cpp
161
162        LIBS += -lmpr -luserenv
163        QMAKE_USE_PRIVATE += netapi32
164    } else {
165        SOURCES += \
166                io/qstandardpaths_winrt.cpp \
167                io/qstorageinfo_stub.cpp
168    }
169} else:unix {
170        SOURCES += \
171                io/qfsfileengine_unix.cpp \
172                io/qfilesystemengine_unix.cpp \
173                io/qlockfile_unix.cpp \
174                io/qfilesystemiterator_unix.cpp
175
176        !integrity:!uikit:!rtems {
177            SOURCES += io/forkfd_qt.cpp
178            HEADERS += \
179                     ../3rdparty/forkfd/forkfd.h
180            INCLUDEPATH += ../3rdparty/forkfd
181        }
182        mac {
183            SOURCES += io/qstorageinfo_mac.cpp
184            qtConfig(processenvironment): \
185                OBJECTIVE_SOURCES += io/qprocess_darwin.mm
186            OBJECTIVE_SOURCES += \
187                io/qstandardpaths_mac.mm \
188                io/qfilesystemengine_mac.mm
189            osx {
190                LIBS += -framework DiskArbitration -framework IOKit
191            } else {
192                LIBS += -framework MobileCoreServices
193            }
194        } else:android:!android-embedded {
195            SOURCES += \
196                io/qstandardpaths_android.cpp \
197                io/qstorageinfo_unix.cpp
198        } else:haiku {
199            SOURCES += \
200                io/qstandardpaths_haiku.cpp \
201                io/qstorageinfo_unix.cpp
202            LIBS += -lbe
203        } else {
204            SOURCES += \
205                io/qstandardpaths_unix.cpp \
206                io/qstorageinfo_unix.cpp
207        }
208}
209
210