QWS removal, part 2
[profile/ivi/qtbase.git] / src / gui / dialogs / dialogs.pri
1 # Qt dialogs module
2
3 HEADERS += \
4         dialogs/qabstractprintdialog.h \
5         dialogs/qabstractprintdialog_p.h \
6         dialogs/qabstractpagesetupdialog.h \
7         dialogs/qabstractpagesetupdialog_p.h \
8         dialogs/qcolordialog.h \
9         dialogs/qcolordialog_p.h \
10         dialogs/qfscompleter_p.h \
11         dialogs/qdialog.h \
12         dialogs/qdialog_p.h \
13         dialogs/qerrormessage.h \
14         dialogs/qfiledialog.h \
15         dialogs/qfiledialog_p.h \
16         dialogs/qfontdialog.h \
17         dialogs/qfontdialog_p.h \
18         dialogs/qinputdialog.h \
19         dialogs/qmessagebox.h \
20         dialogs/qpagesetupdialog.h \
21         dialogs/qprintdialog.h \
22         dialogs/qprogressdialog.h \
23         dialogs/qsidebar_p.h \
24         dialogs/qfilesystemmodel.h \
25         dialogs/qfilesystemmodel_p.h \
26         dialogs/qfileinfogatherer_p.h \
27         dialogs/qwizard.h \
28         dialogs/qprintpreviewdialog.h
29
30 !qpa:mac {
31     OBJECTIVE_SOURCES += dialogs/qfiledialog_mac.mm \
32                          dialogs/qfontdialog_mac.mm \
33                          dialogs/qnspanelproxy_mac.mm \
34                          dialogs/qpagesetupdialog_mac.mm \
35                          dialogs/qprintdialog_mac.mm
36
37 # Compile qcolordialog_mac.mm with exception support, disregarding the -no-exceptions 
38 # configure option. (qcolordialog_mac needs to catch exceptions thrown by cocoa)
39     EXCEPTION_SOURCES = dialogs/qcolordialog_mac.mm
40     exceptions_compiler.commands = $$QMAKE_CXX -c
41     exceptions_compiler.commands += $(CXXFLAGS) $(INCPATH) ${QMAKE_FILE_IN} -o ${QMAKE_FILE_OUT}
42     exceptions_compiler.commands += -fexceptions
43     exceptions_compiler.dependency_type = TYPE_C
44     exceptions_compiler.output = ${QMAKE_VAR_OBJECTS_DIR}${QMAKE_FILE_BASE}$${first(QMAKE_EXT_OBJ)}
45     exceptions_compiler.input = EXCEPTION_SOURCES
46     exceptions_compiler.variable_out = OBJECTS
47     exceptions_compiler.name = compiling[exceptopns] ${QMAKE_FILE_IN}
48     silent:exceptions_compiler.commands = @echo compiling[exceptopns] ${QMAKE_FILE_IN} && $$exceptions_compiler.commands
49     QMAKE_EXTRA_COMPILERS += exceptions_compiler
50 }
51
52 win32 {
53     HEADERS += dialogs/qwizard_win_p.h \
54                dialogs/qfiledialog_win_p.h
55     SOURCES += dialogs/qdialogsbinarycompat_win.cpp \
56                dialogs/qfiledialog_win.cpp \
57                dialogs/qpagesetupdialog_win.cpp \
58                dialogs/qprintdialog_win.cpp \
59                dialogs/qwizard_win.cpp
60
61     !win32-borland:!wince*: LIBS += -lshell32   # the filedialog needs this library
62 }
63
64 !mac:!symbian:unix|qpa {
65         HEADERS += dialogs/qpagesetupdialog_unix_p.h
66         SOURCES += dialogs/qprintdialog_unix.cpp \
67                    dialogs/qpagesetupdialog_unix.cpp
68         FORMS += dialogs/qprintsettingsoutput.ui \
69         dialogs/qprintwidget.ui \
70         dialogs/qprintpropertieswidget.ui
71 }
72
73 wince*|symbian: FORMS += dialogs/qfiledialog_embedded.ui
74 else: FORMS += dialogs/qfiledialog.ui
75
76 INCLUDEPATH += $$PWD
77 SOURCES += \
78         dialogs/qabstractprintdialog.cpp \
79         dialogs/qabstractpagesetupdialog.cpp \
80         dialogs/qcolordialog.cpp \
81         dialogs/qdialog.cpp \
82         dialogs/qerrormessage.cpp \
83         dialogs/qfiledialog.cpp \
84         dialogs/qfontdialog.cpp \
85         dialogs/qinputdialog.cpp \
86         dialogs/qmessagebox.cpp \
87         dialogs/qprogressdialog.cpp \
88         dialogs/qsidebar.cpp \
89         dialogs/qfilesystemmodel.cpp \
90         dialogs/qfileinfogatherer.cpp \
91         dialogs/qpagesetupdialog.cpp \
92         dialogs/qwizard.cpp \
93         dialogs/qprintpreviewdialog.cpp
94
95 symbian:contains(QT_CONFIG, s60) {
96     LIBS += -lCommonDialogs
97     SOURCES += dialogs/qfiledialog_symbian.cpp \
98                dialogs/qcolordialog_symbian.cpp
99 }
100
101 FORMS += dialogs/qpagesetupwidget.ui
102 RESOURCES += dialogs/qprintdialog.qrc
103 RESOURCES += dialogs/qmessagebox.qrc
104
105 # Compensate for lack of platform defines in Symbian3
106 symbian: DEFINES += SYMBIAN_VERSION_$$upper($$replace(SYMBIAN_VERSION,\\.,_))