f8ca43c5e41702fcd940a436ef9319f3c77e59ad
[profile/ivi/qtbase.git] / src / widgets / dialogs / dialogs.pri
1 # Qt dialogs module
2
3 HEADERS += \
4         dialogs/qcolordialog.h \
5         dialogs/qcolordialog_p.h \
6         dialogs/qfscompleter_p.h \
7         dialogs/qdialog.h \
8         dialogs/qdialog_p.h \
9         dialogs/qerrormessage.h \
10         dialogs/qfiledialog.h \
11         dialogs/qfiledialog_p.h \
12         dialogs/qfontdialog.h \
13         dialogs/qfontdialog_p.h \
14         dialogs/qinputdialog.h \
15         dialogs/qmessagebox.h \
16         dialogs/qprogressdialog.h \
17         dialogs/qsidebar_p.h \
18         dialogs/qfilesystemmodel.h \
19         dialogs/qfilesystemmodel_p.h \
20         dialogs/qfileinfogatherer_p.h \
21         dialogs/qwizard.h
22
23 # TODO
24 false:mac {
25     OBJECTIVE_SOURCES += dialogs/qfiledialog_mac.mm \
26                          dialogs/qfontdialog_mac.mm \
27                          dialogs/qnspanelproxy_mac.mm
28
29 # Compile qcolordialog_mac.mm with exception support, disregarding the -no-exceptions 
30 # configure option. (qcolordialog_mac needs to catch exceptions thrown by cocoa)
31     EXCEPTION_SOURCES = dialogs/qcolordialog_mac.mm
32     exceptions_compiler.commands = $$QMAKE_CXX -c
33     exceptions_compiler.commands += $(CXXFLAGS) $(INCPATH) ${QMAKE_FILE_IN} -o ${QMAKE_FILE_OUT}
34     exceptions_compiler.commands += -fexceptions
35     exceptions_compiler.dependency_type = TYPE_C
36     exceptions_compiler.output = ${QMAKE_VAR_OBJECTS_DIR}${QMAKE_FILE_BASE}$${first(QMAKE_EXT_OBJ)}
37     exceptions_compiler.input = EXCEPTION_SOURCES
38     exceptions_compiler.variable_out = OBJECTS
39     exceptions_compiler.name = compiling[exceptopns] ${QMAKE_FILE_IN}
40     silent:exceptions_compiler.commands = @echo compiling[exceptopns] ${QMAKE_FILE_IN} && $$exceptions_compiler.commands
41     QMAKE_EXTRA_COMPILERS += exceptions_compiler
42 }
43
44 win32 {
45     HEADERS += dialogs/qwizard_win_p.h
46     SOURCES += dialogs/qwizard_win.cpp
47 }
48
49 wince*: FORMS += dialogs/qfiledialog_embedded.ui
50 else: FORMS += dialogs/qfiledialog.ui
51
52 INCLUDEPATH += $$PWD
53 SOURCES += \
54         dialogs/qcolordialog.cpp \
55         dialogs/qdialog.cpp \
56         dialogs/qerrormessage.cpp \
57         dialogs/qfiledialog.cpp \
58         dialogs/qfontdialog.cpp \
59         dialogs/qinputdialog.cpp \
60         dialogs/qmessagebox.cpp \
61         dialogs/qprogressdialog.cpp \
62         dialogs/qsidebar.cpp \
63         dialogs/qfilesystemmodel.cpp \
64         dialogs/qfileinfogatherer.cpp \
65         dialogs/qwizard.cpp \
66
67 RESOURCES += dialogs/qmessagebox.qrc