File: qhimdtransfer.pro

package info (click to toggle)
linux-minidisc 0.9.16-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye, buster, sid, trixie
  • size: 4,644 kB
  • sloc: ansic: 6,389; cpp: 2,731; python: 2,537; perl: 866; sh: 207; makefile: 9
file content (115 lines) | stat: -rw-r--r-- 2,823 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
TEMPLATE = app
CONFIG += link_prl link_pkgconfig

# Mixed case target name for operating systems on which this is convention
win32|mac {
    TARGET = QHiMDTransfer
} else {
    TARGET = qhimdtransfer
}

DEPENDPATH += .
INCLUDEPATH += .

# for Qt5 compatibility
QT += gui core
greaterThan(QT_MAJOR_VERSION, 4): QT += widgets

# determine version number from git
VERSION = $$system(sh ../build/get_version.sh)
VERSTR = '\\"$${VERSION}\\"'  # place quotes around the version string
DEFINES += VER=\"$${VERSTR}\" # create a VER macro containing the version string

# determine build date (Using QMAKE_HOST here to account for cross-compilation case)
equals(QMAKE_HOST.os,Windows) {
    BUILDDATE = $$system(date /T)
} else {
    BUILDDATE = $$system(dpkg-parsechangelog -l ../debian/changelog -S Date | LC_ALL=C date -u -f - +%a\\ %m\\/%d\\/%Y)
}
BDATESTR = '\\"$${BUILDDATE}\\"'  # place quotes around the build date string
DEFINES += BDATE=\"$${BDATESTR}\" # create a BDATE macro containing the build date string

# language logic heavily inspired by Qt Creator's
# share/qtcreator/translations/translations.pro
include(util.pri)
LANGUAGES = de \
    nb \
    sv \
    fr \
    pt \
    pl \
    ru \
    it \
    ja \
    fi \
    ar \
    el \
    da \
    tr \
    es \
    nl \
    cs \
    uk \
    br
TRANSLATIONS = $$bracketAll(LANGUAGES, qhimdtransfer_,.ts)
include(translate.pri)

# Input
HEADERS += qhimdaboutdialog.h \
    qhimdformatdialog.h \
    qhimduploaddialog.h \
    qhimdmainwindow.h \
    qhimddetection.h \
    qmdmodel.h \
    qmdtrack.h \
    qmddevice.h
FORMS += qhimdaboutdialog.ui \
    qhimdformatdialog.ui \
    qhimduploaddialog.ui \
    qhimdmainwindow.ui
SOURCES += main.cpp \
    qhimdaboutdialog.cpp \
    qhimdformatdialog.cpp \
    qhimduploaddialog.cpp \
    qhimdmainwindow.cpp \
    qhimddetection.cpp \
    qmdmodel.cpp \
    qmdtrack.cpp \
    qmddevice.cpp

win32 {
  SOURCES += qhimdwindetection.cpp
} else:mac {
  SOURCES += qhimdmacdetection.cpp
} else {
  SOURCES += qhimddummydetection.cpp
}

RESOURCES += icons.qrc

win32:LIBS += -lsetupapi -lcfgmgr32

SOURCES += wavefilewriter.cpp
HEADERS += wavefilewriter.h

win32:RC_FILE = qhimdtransfer.rc
mac:ICON = qhimdtransfer.icns

# Installing stuff
translations.files = $$bracketAll(LANGUAGES, qhimdtransfer_,.qm)
unix {
    INSTALLS += translations
    HACK = $$system(lrelease $$TRANSLATIONS)
    macx:translations.path = QHiMDTransfer.app/Contents/Resources/translations
    !macx:translations.path = /usr/share/qhimdtransfer/translations
}

include(../libhimd/use_libhimd.pri)
include(../libnetmd/use_libnetmd.prl)
include(../build/libusb.pri)
include(../build/libtaglib.pri)
include(../build/libmad.pri)
include(../build/libid3tag.pri)
include(../build/libz.pri)
include(../build/installunix.pri)
include(../build/common.pri)