1VERSION = 0.195 2 3QT += core gui script scripttools 4TARGET = qchdman 5TEMPLATE = app 6 7# copy Qt translations from base project 8win32 { 9 system(copy ..\\..\\data\\lng\\qt_*.qm translations > NUL) 10} else { 11 system(rm -f translations/qt_*.qm > /dev/null) 12 system(ln ../../data/lng/qt_*.qm translations > /dev/null) 13} 14QMAKE_CLEAN += translations/qt_*.qm 15 16greaterThan(DEBUG, 0) | contains(DEFINES, "QCHDMAN_DEBUG") { 17 !contains(DEFINES, "QCHDMAN_DEBUG"): DEFINES += QCHDMAN_DEBUG 18 !contains(CONFIG, "warn_on debug"): CONFIG += warn_on debug 19} else { 20 !contains(DEFINES, "QCHDMAN_RELEASE"): DEFINES += QCHDMAN_RELEASE 21 !contains(CONFIG, "warn_off release"): CONFIG += warn_off release 22} 23 24greaterThan(SVN_REV, 0) { 25 DEFINES += QCHDMAN_SVN_REV=$$SVN_REV 26} 27 28greaterThan(QT_MAJOR_VERSION, 4) { 29 QT += widgets 30} 31 32macx { 33 QMAKE_INFO_PLIST = Info.plist 34 contains(DEFINES, QCHDMAN_MAC_UNIVERSAL): CONFIG += x86 ppc 35} 36 37win32 { 38 RC_FILE = qchdman.rc 39} 40 41DEFINES += QCHDMAN_VERSION=$$VERSION 42 43SOURCES += main.cpp\ 44 mainwindow.cpp \ 45 projectwindow.cpp \ 46 projectwidget.cpp \ 47 preferencesdialog.cpp \ 48 aboutdialog.cpp \ 49 scriptwidget.cpp \ 50 scriptengine.cpp \ 51 ecmascripthighlighter.cpp \ 52 scripteditor.cpp \ 53 ../../settings.cpp 54 55HEADERS += mainwindow.h \ 56 macros.h \ 57 projectwindow.h \ 58 projectwidget.h \ 59 preferencesdialog.h \ 60 aboutdialog.h \ 61 scriptwidget.h \ 62 scriptengine.h \ 63 ecmascripthighlighter.h \ 64 scripteditor.h \ 65 qchdmansettings.h \ 66 ../../settings.h 67 68FORMS += mainwindow.ui \ 69 projectwidget.ui \ 70 preferencesdialog.ui \ 71 aboutdialog.ui \ 72 scriptwidget.ui 73 74RESOURCES += qchdman.qrc 75 76TRANSLATIONS += translations/qchdman_de.ts \ 77 translations/qchdman_es.ts \ 78 translations/qchdman_el.ts \ 79 translations/qchdman_it.ts \ 80 translations/qchdman_fr.ts \ 81 translations/qchdman_pl.ts \ 82 translations/qchdman_pt.ts \ 83 translations/qchdman_ro.ts \ 84 translations/qchdman_sv.ts \ 85 translations/qchdman_us.ts 86