Skip to content

Commit

Permalink
More of the same
Browse files Browse the repository at this point in the history
git-svn-id: svn+ssh://svn.last.fm/svn/clientside/trunk/desktop@125295 ab8f4a45-97f9-0310-bbd1-854ce3dcee89
  • Loading branch information
mxcl committed Mar 25, 2009
1 parent f89d848 commit deefd76
Show file tree
Hide file tree
Showing 7 changed files with 61 additions and 66 deletions.
3 changes: 0 additions & 3 deletions .qmake.cache
Expand Up @@ -27,6 +27,3 @@ macx* {
} }


CONFIG( debug, debug|release ):CONFIG -= release CONFIG( debug, debug|release ):CONFIG -= release

release:INSTALL_DIR = $$(DESTDIR)$$(PREFIX)
else:INSTALL_DIR = prefix
4 changes: 0 additions & 4 deletions admin/include.qmake
Expand Up @@ -4,10 +4,6 @@ include( qmake/QtOverride.pro.inc )
include( qmake/3rdparty.pro.inc ) include( qmake/3rdparty.pro.inc )
include( qmake/1stparty.pro.inc ) include( qmake/1stparty.pro.inc )


mac*{
!macx-xcode:CONFIG -= app_bundle
}

linux*{ linux*{
CONFIG += link_pkgconfig CONFIG += link_pkgconfig
# use KDE phonon if installed in preference # use KDE phonon if installed in preference
Expand Down
84 changes: 39 additions & 45 deletions admin/qmake/1stparty.pro.inc
@@ -1,50 +1,44 @@
CONFIG( all_in_one_liblastfm )
{



CONFIG( unicorn ) {
LIBS += -lunicorn
CONFIG += types
QT += gui
} }
else { CONFIG( listener ) {
CONFIG( unicorn ) { LIBS += -llistener
LIBS += -lunicorn CONFIG += types
CONFIG += types }
QT += gui CONFIG( radio ) {
} LIBS += -lradio
CONFIG( listener ) { CONFIG += types
LIBS += -llistener QT += phonon
CONFIG += types }
} CONFIG( scrobble ) {
CONFIG( radio ) { LIBS += -lscrobble
LIBS += -lradio CONFIG += types
CONFIG += types }
QT += phonon CONFIG( fingerprint ) {
} LIBS += -lfingerprint
CONFIG( scrobble ) { CONFIG += types
LIBS += -lscrobble }
CONFIG += types CONFIG( resolver ) {
} LIBS += -lresolver
CONFIG( fingerprint ) { win32:LIBS += -lmpr
LIBS += -lfingerprint INCLUDEPATH += $$ROOT_DIR/app/clientplugins/localresolver
CONFIG += types CONFIG += taglib sqlite3
} }
CONFIG( resolver ) { CONFIG( types ) {
LIBS += -lresolver LIBS += -ltypes
win32:LIBS += -lmpr CONFIG += ws
INCLUDEPATH += $$ROOT_DIR/app/clientplugins/localresolver }
CONFIG += taglib sqlite3 CONFIG( ws ) {
} LIBS += -lws
CONFIG( types ) { CONFIG += core
LIBS += -ltypes QT += network
CONFIG += ws }
} CONFIG( core ) {
CONFIG( ws ) { LIBS += -lcore
LIBS += -lws QT += core xml
CONFIG += core
QT += network
}
CONFIG( core ) {
LIBS += -lcore
QT += core xml
}
} }


# make work: #include <lastfm/*> # make work: #include <lastfm/*>
Expand Down
24 changes: 18 additions & 6 deletions admin/qmake/3rdparty.pro.inc
Expand Up @@ -5,8 +5,12 @@ CONFIG( taglib ) {
} }


CONFIG( mad ) { CONFIG( mad ) {
win32: LIBS += -L$$COMMON_LIBS_DIR/libmad -lmad win32{
else { LIBS += -L$$COMMON_LIBS_DIR/libmad -lmad
}else:CONFIG( app_bundle ){
LIBS += /opt/local/lib/libmad.a
INCLUDEPATH += /opt/local/include
}else{
CONFIG += link_pkgconfig CONFIG += link_pkgconfig
PKGCONFIG += mad PKGCONFIG += mad
} }
Expand All @@ -17,16 +21,24 @@ CONFIG( boost ) {
} }


CONFIG( fftw3f ) { CONFIG( fftw3f ) {
win32: LIBS += -L$$COMMON_LIBS_DIR/libfftw -lfftw3f win32{
else { LIBS += -L$$COMMON_LIBS_DIR/libfftw -lfftw3f
}else:CONFIG( app_bundle ){
LIBS += /opt/local/lib/libfftw3f.a
INCLUDEPATH += /opt/local/include
}else{
CONFIG += link_pkgconfig CONFIG += link_pkgconfig
PKGCONFIG += fftw3f PKGCONFIG += fftw3f
} }
} }


CONFIG( samplerate ) { CONFIG( samplerate ) {
win32: LIBS += -L$$COMMON_LIBS_DIR/libsamplerate -lsamplerate win32{
else: { LIBS += -L$$COMMON_LIBS_DIR/libsamplerate -lsamplerate
}else:CONFIG( app_bundle ){
LIBS += /opt/local/lib/libsamplerate.a
INCLUDEPATH += /opt/local/include
}else{
CONFIG += link_pkgconfig CONFIG += link_pkgconfig
PKGCONFIG += samplerate PKGCONFIG += samplerate
} }
Expand Down
2 changes: 1 addition & 1 deletion admin/qmake/debug.pro.inc
Expand Up @@ -14,5 +14,5 @@ CONFIG( debug, debug|release ) {
else { else {
CONFIG += warn_off CONFIG += warn_off
DEFINES += NDEBUG DEFINES += NDEBUG
CONFIG += ppc x86 #macx*:CONFIG += ppc x86
} }
4 changes: 2 additions & 2 deletions configure
Expand Up @@ -134,8 +134,8 @@ else
if [ -z "$EXTRA_QMAKE_FLAGS" ]; then if [ -z "$EXTRA_QMAKE_FLAGS" ]; then
EXTRA_QMAKE_FLAGS='NOOP=""' EXTRA_QMAKE_FLAGS='NOOP=""'
fi fi

qmake -config debug -recursive Last.fm.pro "$EXTRA_QMAKE_FLAGS" || die "Configure failed." qmake -config debug -recursive Last.fm.pro "CONFIG -= app_bundle" "$EXTRA_QMAKE_FLAGS" || die "Configure failed."
BUILD_CMD='make' BUILD_CMD='make'
fi;; fi;;


Expand Down
6 changes: 1 addition & 5 deletions lib/unicorn/widgets/UpdateDialog.cpp
Expand Up @@ -64,11 +64,7 @@ UpdateDialog::UpdateDialog( QWidget* parent ) : QDialog( parent ), checking( 0 )
#endif #endif


QUrl url( "http://cdn.last.fm/client/" + qApp->applicationName().toLower() + PLATFORM + qApp->applicationVersion() + ".txt" ); QUrl url( "http://cdn.last.fm/client/" + qApp->applicationName().toLower() + PLATFORM + qApp->applicationVersion() + ".txt" );
<<<<<<< .mine
//QUrl url( "http://static.last.fm/client/update_test/200.txt" );
=======
// QUrl url( "http://static.last.fm/client/update_test/201.txt" ); // QUrl url( "http://static.last.fm/client/update_test/201.txt" );
>>>>>>> .r124078
checking = nam.get( QNetworkRequest(url) ); checking = nam.get( QNetworkRequest(url) );
checking->setParent( this ); checking->setParent( this );


Expand Down Expand Up @@ -160,7 +156,7 @@ UpdateDialog::install()
if (tmpFileName.endsWith(".msi")) { if (tmpFileName.endsWith(".msi")) {
// to do a so-called "minor upgrade", we need to use msiexec // to do a so-called "minor upgrade", we need to use msiexec
// see: http://www.tramontana.co.hu/wix/lesson4.php // see: http://www.tramontana.co.hu/wix/lesson4.php
// msiexec /i SampleUpgrade2.msi REINSTALL=ALL REINSTALLMODE=vomus // msiexec /i SampleUpgrade2.msi REINSTALL=ALL REINSTALLMODE=vomus
if (-1 != _wspawnlp(_P_NOWAIT, L"msiexec.exe", if (-1 != _wspawnlp(_P_NOWAIT, L"msiexec.exe",
L"msiexec.exe", L"/i", tmpFileName.toStdWString().data(), L"msiexec.exe", L"/i", tmpFileName.toStdWString().data(),
L"REINSTALL=ALL", L"REINSTALLMODE=vomus", L"REINSTALL=ALL", L"REINSTALLMODE=vomus",
Expand Down

0 comments on commit deefd76

Please sign in to comment.