-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMediaSpy.pro
104 lines (99 loc) · 2.95 KB
/
MediaSpy.pro
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
# -------------------------------------------------
# Project created by QtCreator 2009-06-26T13:39:09
# -------------------------------------------------
QT += sql \
webkit \
network
TARGET = mediaspy
TEMPLATE = app
UI_DIR = build/ui
MOC_DIR = build/moc
RCC_DIR = build/rcc
OBJECTS_DIR = build
SOURCES += src/main.cpp \
src/mediaspy.cpp \
src/collection.cpp \
src/collectiondialog.cpp \
src/databasemanager.cpp \
src/editmediadialog.cpp \
src/optionsdialog.cpp \
src/updatethread.cpp \
src/info/imdbthread.cpp \
src/info/infomanager.cpp \
src/info/infoimdb.cpp \
src/info/infosupplier.cpp \
src/media/mediacollection.cpp \
src/media/media.cpp \
src/media/moviemedia.cpp \
src/qtElements/myqlineedit.cpp \
src/qtElements/myqsqltablemodel.cpp \
src/qtElements/myqsortfilterproxymodel.cpp \
src/qtElements/myqlistview.cpp \
src/options.cpp
HEADERS += src/mediaspy.h \
src/collection.h \
src/collectiondialog.h \
src/databasemanager.h \
src/editmediadialog.h \
src/optionsdialog.h \
src/updatethread.h \
src/info/imdbthread.h \
src/info/infomanager.h \
src/info/infoimdb.h \
src/info/infosupplier.h \
src/media/mediacollection.h \
src/media/media.h \
src/media/moviemedia.h \
src/qtElements/myqlineedit.h \
src/qtElements/myqsqltablemodel.h \
src/qtElements/myqsortfilterproxymodel.h \
src/qtElements/myqlistview.h \
src/options.h
FORMS += src/ui/mediaspy.ui \
src/ui/collectiondialog.ui \
src/ui/editmediadialog.ui \
src/ui/optionsdialog.ui
RESOURCES += src/resources/MediaSpy.qrc
TRANSLATIONS += translations/mediaspy_fr.ts \
translations/mediaspy_en.ts \
translations/mediaspy_ta.ts
OTHER_FILES += README.txt \
LICENSE.txt \
TODO.txt \
CHANGELOG.txt
# define some useful values
PACKAGE_VERSION = 0.7.3-testing
QMAKE_TARGET_PRODUCT = "MediaSpy"
QMAKE_TARGET_COPYRIGHT = "Copyright © 2009 Stéphane Péchard"
win32:QMAKE_TARGET_COPYRIGHT = "Copyright (C) 2009 Stéphane Péchard"
# define variable for source code
DEFINES *= "PACKAGE_NAME=\"\\\"$${QMAKE_TARGET_PRODUCT}\\\"\"" \
"PACKAGE_VERSION=\"\\\"$${PACKAGE_VERSION}\\\"\"" \
"PACKAGE_COPYRIGHTS=\"\\\"$${QMAKE_TARGET_COPYRIGHT}\\\"\"" \
"MEDIASPY_HOME=\"\\\"$(MEDIASPY_HOME)\\\"\""
# install
QMAKE_PROJECT_DEPTH = 1
bin.path = $$(MEDIASPY_HOME)
bin.files = $${TARGET}
bin.CONFIG += no_check_exist
translations.path = $$(MEDIASPY_HOME)/translations
translations.files = translations/mediaspy_*.qm
translations.CONFIG += no_check_exist
INSTALLS += bin \
translations
# git archive
archive.commands = git \
archive \
--format=tar \
--prefix=mediaspy-$${PACKAGE_VERSION}/ \
HEAD \
| \
bzip2 \
> \
mediaspy-$${PACKAGE_VERSION}.tar.bz2
QMAKE_EXTRA_UNIX_TARGETS += archive
# scp to fedora
hosted.commands = scp \
mediaspy-$${PACKAGE_VERSION}.tar.bz2 \
[email protected]:mediaspy
QMAKE_EXTRA_UNIX_TARGETS += hosted