| 1 |
TEMPLATE = app |
| 2 |
|
| •3 |
QMAKE_CPPFLAGS *= $(shell dpkg-buildflags --get CPPFLAGS) |
| 4 |
QMAKE_CFLAGS *= $(shell dpkg-buildflags --get CFLAGS) |
| 5 |
QMAKE_CXXFLAGS *= $(shell dpkg-buildflags --get CXXFLAGS) |
| 6 |
QMAKE_LFLAGS *= $(shell dpkg-buildflags --get LDFLAGS) |
| 7 |
|
| 8 |
CONFIG += warn_on \ |
| 9 |
thread \ |
| 10 |
qt \ |
| 11 |
resources \ |
| 12 |
silent \ |
| 13 |
c++11 |
| 14 |
|
| 15 |
QT += network \ |
| 16 |
gui \ |
| 17 |
widgets \ |
| 18 |
core \ |
| 19 |
xml |
| 20 |
|
| 21 |
SOURCES += src/main.cpp \ |
| 22 |
src/forms/frmprogress.cpp \ |
| 23 |
src/forms/frmlistsubtitles.cpp \ |
| 24 |
src/forms/frmsummary.cpp \ |
| 25 |
src/forms/frmscan.cpp \ |
| 26 |
src/forms/frmoptions.cpp \ |
| 27 |
src/forms/frmabout.cpp \ |
| 28 |
src/forms/frmnapiprojektconfig.cpp \ |
| 29 |
src/forms/frmopensubtitlesconfig.cpp \ |
| 30 |
src/forms/frmnapisy24config.cpp \ |
| 31 |
src/forms/frmconvert.cpp \ |
| 32 |
src/forms/subdatawidget.cpp \ |
| 33 |
src/qcumber/qmanagedrequest.cpp \ |
| 34 |
src/qcumber/qmanagedsocket.cpp \ |
| 35 |
src/qcumber/qsingleapplication.cpp \ |
| 36 |
src/qnapiopendialog.cpp \ |
| 37 |
src/qnapiapp.cpp \ |
| 38 |
src/qnapicli.cpp \ |
| 39 |
src/qnapi.cpp |
| 40 |
|
| 41 |
HEADERS += src/forms/frmprogress.h \ |
| 42 |
src/forms/frmlistsubtitles.h \ |
| 43 |
src/forms/frmsummary.h \ |
| 44 |
src/forms/frmscan.h \ |
| 45 |
src/forms/frmoptions.h \ |
| 46 |
src/forms/frmabout.h \ |
| 47 |
src/forms/frmnapiprojektconfig.h \ |
| 48 |
src/forms/frmopensubtitlesconfig.h \ |
| 49 |
src/forms/frmnapisy24config.h \ |
| 50 |
src/forms/frmconvert.h \ |
| 51 |
src/forms/subdatawidget.h \ |
| 52 |
src/qcumber/qmanagedrequest.h \ |
| 53 |
src/qcumber/qmanagedsocket.h \ |
| 54 |
src/qcumber/qsingleapplication.h \ |
| 55 |
src/qcumber/qcumber.h \ |
| 56 |
src/qcheckedlistwidget.h \ |
| 57 |
src/qnapithread.h \ |
| 58 |
src/qnapiopendialog.h \ |
| 59 |
src/qnapiapp.h \ |
| 60 |
src/qnapicli.h \ |
| 61 |
src/qnapi.h |
| 62 |
|
| 63 |
FORMS += ui/frmprogress.ui \ |
| 64 |
ui/frmlistsubtitles.ui \ |
| 65 |
ui/frmsummary.ui \ |
| 66 |
ui/frmscan.ui \ |
| 67 |
ui/frmoptions.ui \ |
| 68 |
ui/frmabout.ui \ |
| 69 |
ui/frmconvert.ui \ |
| 70 |
ui/subDataWidget.ui \ |
| 71 |
ui/napiprojekt/frmnapiprojektconfig.ui \ |
| 72 |
ui/opensubtitles/frmopensubtitlesconfig.ui \ |
| 73 |
ui/napisy24/frmnapisy24config.ui |
| 74 |
|
| 75 |
RESOURCES += res/resources.qrc |
| 76 |
UI_DIR = tmp |
| 77 |
MOC_DIR = tmp |
| 78 |
RCC_DIR = tmp |
| 79 |
OBJECTS_DIR = tmp |
| 80 |
INCLUDEPATH = src |
| 81 |
|
| 82 |
include(../libqnapi/libqnapi.pri) |
| 83 |
|
| 84 |
unix:!macx { |
| 85 |
TARGET = qnapi |
| 86 |
DESTDIR = ../ |
| 87 |
CONFIG += link_pkgconfig |
| 88 |
PKGCONFIG += libmediainfo |
| 89 |
} |
| 90 |
|
| 91 |
macx { |
| 92 |
SOURCES += src/utils/infoplistdockicon.cpp |
| 93 |
HEADERS += src/utils/infoplistdockicon.h |
| 94 |
|
| 95 |
LIBS += -framework CoreFoundation |
| 96 |
|
| 97 |
TARGET = QNapi |
| 98 |
DESTDIR = ../macx/ |
| 99 |
|
| 100 |
QMAKE_MACOSX_DEPLOYMENT_TARGET = 10.7 |
| 101 |
QMAKE_CXXFLAGS_X86_64 = -mmacosx-version-min=10.7 |
| 102 |
ICON = ../macx/qnapi.icns |
| 103 |
QMAKE_INFO_PLIST = ../macx/Info.plist |
| 104 |
7ZIP_BINARY.files = ../macx/content/7za |
| 105 |
7ZIP_BINARY.path = Contents/Resources |
| 106 |
LIBMEDIAINFO.files = ../deps/libmediainfo/lib/libmediainfo.0.dylib |
| 107 |
LIBMEDIAINFO.path = Contents/MacOS |
| 108 |
QMAKE_BUNDLE_DATA += 7ZIP_BINARY LIBMEDIAINFO |
| 109 |
} |
| 110 |
|
| 111 |
win32 { |
| 112 |
CONFIG += nostrip |
| 113 |
|
| 114 |
SOURCES += src/qcumber/qinterprocesschannel_win32.cpp |
| 115 |
HEADERS += src/qcumber/qinterprocesschannel_win32.h |
| 116 |
|
| 117 |
RC_FILE = ../win32/qnapi.rc |
| 118 |
|
| 119 |
TARGET = qnapi |
| 120 |
|
| 121 |
target.path = ../win32/out |
| 122 |
INSTALLS += target |
| 123 |
} |
| 124 |
|
| 125 |
!win32 { |
| 126 |
SOURCES += src/qcumber/qinterprocesschannel.cpp |
| 127 |
HEADERS += src/qcumber/qinterprocesschannel.h |
| 128 |
} |