forked from Greedysky/TTKMusicPlayer
-
Notifications
You must be signed in to change notification settings - Fork 0
/
TTKMusicPlayer.pri
106 lines (94 loc) · 3.18 KB
/
TTKMusicPlayer.pri
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
#-------------------------------------------------
#
# Project created by QtCreator 2014-08-08T23:19:41
#
# =================================================
# * This file is part of the TTK Music Player project
# * Copyright (c) 2014 - 2016 Greedysky Studio
# * All rights reserved!
# * Redistribution and use of the source code or any derivative
# * works are strictly forbiden.
# =================================================
QT += core gui xml sql
equals(QT_MAJOR_VERSION, 4){
QT += network script
CONFIG += gcc
include(TTKExtra/Qt4/qmmp.pri)
}
equals(QT_MAJOR_VERSION, 5){
QT += widgets multimediawidgets
include(TTKExtra/Qt5/qmmp.pri)
}
UI_DIR = ./.build/ui/
MOC_DIR = ./.build/moc/
OBJECTS_DIR = ./.build/obj
RCC_DIR = ./.build/rcc
#check Qt version
QT_VER_STRING = $$[QT_VERSION];
QT_VER_STRING = $$split(QT_VER_STRING, ".")
QT_VER_MAJOR = $$member(QT_VER_STRING, 0)
QT_VER_MINOR = $$member(QT_VER_STRING, 1)
QT_VER_PATCH = $$member(QT_VER_STRING, 2)
win32{
LIBS += -lIphlpapi -luser32
equals(QT_MAJOR_VERSION, 5){
greaterThan(QT_VER_MINOR, 2):QT += winextras
msvc{
LIBS += -L../bin -lqmmp1 -lMusicExtras -lzlib
!contains(QMAKE_TARGET.arch, x86_64){
#support on windows XP
QMAKE_LFLAGS_WINDOWS = /SUBSYSTEM:WINDOWS,5.01
QMAKE_LFLAGS_CONSOLE = /SUBSYSTEM:CONSOLE,5.01
}
}
gcc{
LIBS += -L../bin -lqmmp1 -lMusicExtras -lzlib
QMAKE_CXXFLAGS += -std=c++11
QMAKE_CXXFLAGS += -Wunused-function
QMAKE_CXXFLAGS += -Wswitch
}
}
equals(QT_MAJOR_VERSION, 4){
QT += multimedia
gcc{
LIBS += -L../bin -lqmmp0 -lMusicExtras -lzlib
QMAKE_CXXFLAGS += -std=c++11
QMAKE_CXXFLAGS += -Wunused-function
QMAKE_CXXFLAGS += -Wswitch
}
}
}
unix:!mac{
equals(QT_MAJOR_VERSION, 4){
QMAKE_CXXFLAGS += -I/usr/include/QtMultimediaKit \
-I/usr/include/QtMobility
LIBS += -lQtMultimediaKit
}
QMAKE_CXXFLAGS += -std=c++11
QMAKE_CXXFLAGS += -Wunused-function
QMAKE_CXXFLAGS += -Wswitch
LIBS += -L../lib -lqmmp -lMusicExtras -lzlib
}
TTKMusicPlayer = 2.2.12.0
DEFINES += MUSIC_LIBRARY
DEFINES += USE_MULTIPLE_QUERY
contains(CONFIG, TTK_BUILD_LIB){
include(TTKCore/musicUi/MusicUi.pri)
}
#########################################
INCLUDEPATH += ../TTKThirdParty/MusicExtras \
../TTKThirdParty/MusicExtras/kugou \
../TTKThirdParty/MusicExtras/shortcut \
../TTKThirdParty/MusicExtras/qrencode \
../TTKThirdParty/MusicExtras/hz2py \
../TTKThirdParty/zlib
#########################################
include(TTKCore/musicCore/MusicCore.pri)
include(TTKCore/musicWidget/MusicWidget.pri)
include(TTKCore/musicLocalsearch/MusicLocalSearch.pri)
include(TTKCore/musicLrcmanager/MusicLrc.pri)
include(TTKCore/musicRemotewidget/MusicRemote.pri)
include(TTKCore/musicToolsetswidget/MusicToolsSets.pri)
include(TTKCore/musicToolswidget/MusicToolsWidget.pri)
include(TTKCore/musicUsermanager/MusicUser.pri)
include(TTKCore/musicVideokits/MusicVideo.pri)