src/gui/dialogs/dialogs.pri
changeset 3 41300fa6a67c
parent 0 1918ee327afb
child 30 5dc02b23752f
equal deleted inserted replaced
2:56cd8111b7f7 3:41300fa6a67c
    26         dialogs/qfileinfogatherer_p.h \
    26         dialogs/qfileinfogatherer_p.h \
    27 	dialogs/qwizard.h \
    27 	dialogs/qwizard.h \
    28         dialogs/qprintpreviewdialog.h
    28         dialogs/qprintpreviewdialog.h
    29 
    29 
    30 !embedded:mac {
    30 !embedded:mac {
    31     OBJECTIVE_SOURCES += dialogs/qcolordialog_mac.mm \
    31     OBJECTIVE_SOURCES += dialogs/qfiledialog_mac.mm \
    32                          dialogs/qfiledialog_mac.mm \
       
    33                          dialogs/qfontdialog_mac.mm \
    32                          dialogs/qfontdialog_mac.mm \
    34                          dialogs/qnspanelproxy_mac.mm \
    33                          dialogs/qnspanelproxy_mac.mm \
    35                          dialogs/qpagesetupdialog_mac.mm \
    34                          dialogs/qpagesetupdialog_mac.mm \
    36                          dialogs/qprintdialog_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
    37 }
    50 }
       
    51 
    38 win32 {
    52 win32 {
    39     HEADERS += dialogs/qwizard_win_p.h
    53     HEADERS += dialogs/qwizard_win_p.h
    40     SOURCES += dialogs/qdialogsbinarycompat_win.cpp \
    54     SOURCES += dialogs/qdialogsbinarycompat_win.cpp \
    41                dialogs/qfiledialog_win.cpp \
    55                dialogs/qfiledialog_win.cpp \
    42                dialogs/qpagesetupdialog_win.cpp \
    56                dialogs/qpagesetupdialog_win.cpp \