aboutsummaryrefslogtreecommitdiff
path: root/qmmp.pro
blob: 19e80d706e076754e080038bb9e65b491bbbdd15 (plain) (blame)
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
CONFIG += ordered

include (qmmp.pri)

TEMPLATE = subdirs
SUBDIRS = src/qmmp src/qmmpui src/plugins src/app


unix:exists($$[QT_INSTALL_BINS]/lrelease){
LRELEASE_EXECUTABLE = $$[QT_INSTALL_BINS]/lrelease
}

unix:exists($$[QT_INSTALL_BINS]/lrelease-qt4){
LRELEASE_EXECUTABLE = $$[QT_INSTALL_BINS]/lrelease-qt4
}


win32:exists($$[QT_INSTALL_BINS]/lrelease.exe){
LRELEASE_EXECUTABLE = $$[QT_INSTALL_BINS]/lrelease.exe
}


isEmpty(LRELEASE_EXECUTABLE){
error(Could not find lrelease executable)
}
else {
message(Found lrelease executable: $$LRELEASE_EXECUTABLE)
}

message(generating translations)

unix {
    system(find . -name *.ts | xargs $$LRELEASE_EXECUTABLE -compress)
    QMAKE_DISTCLEAN += $$system(find . -name *.qm)
    QMAKE_DISTCLEAN += r lib
}

win32:system(for /r %B in (*.ts) do $$LRELEASE_EXECUTABLE -compress %B)

message("******* BUILD CONFIGURATION *******")
for(out, CONFIG):message($$out)
message("*** END OF BUILD CONFIGURATION ****")