changeset 133:d012c0dafa36

OS/X build using sv-dependency-builds
author Chris Cannam
date Thu, 09 Oct 2014 14:48:43 +0100
parents c24270fc6635
children 565bc0c2295d
files .hgsub .hgsubstate platform-dataquay.pri runner.pro version.h
diffstat 5 files changed, 34 insertions(+), 8 deletions(-) [+]
line wrap: on
line diff
--- a/.hgsub	Thu Oct 09 13:18:06 2014 +0100
+++ b/.hgsub	Thu Oct 09 14:48:43 2014 +0100
@@ -1,2 +1,4 @@
 svcore = https://code.soundsoftware.ac.uk/hg/svcore
 dataquay = https://bitbucket.org/breakfastquay/dataquay
+sv-dependency-builds = https://code.soundsoftware.ac.uk/hg/sv-dependency-builds
+
--- a/.hgsubstate	Thu Oct 09 13:18:06 2014 +0100
+++ b/.hgsubstate	Thu Oct 09 14:48:43 2014 +0100
@@ -1,2 +1,3 @@
 d16f0fd6db6104d87882bc43788a3bb1b0f8c528 dataquay
+879bdc878826bebec67130326f99397c430419b1 sv-dependency-builds
 60e2927b1475b752d14615da9516d893332878a3 svcore
--- a/platform-dataquay.pri	Thu Oct 09 13:18:06 2014 +0100
+++ b/platform-dataquay.pri	Thu Oct 09 14:48:43 2014 +0100
@@ -10,10 +10,17 @@
 EXTRALIBS -= -lrdf
 
 DEFINES += USE_SORD
-QMAKE_CXXFLAGS += -I/usr/local/include/sord-0 -I/usr/local/include/serd-0 -I/usr/include/sord-0 -I/usr/include/serd-0
-EXTRALIBS += -lsord-0 -lserd-0
+# Libraries and paths should be added by config.pri
 
-win32-g++: {
+win32-g++ {
     INCLUDEPATH += ../sv-dependency-builds/win32-mingw/include
     LIBS += -L../../sv-dependency-builds/win32-mingw/lib
 }
+win32-msvc* {
+    INCLUDEPATH += ../sv-dependency-builds/win32-msvc/include
+    LIBS += -L../../sv-dependency-builds/win32-msvc/lib
+}
+mac* {
+    INCLUDEPATH += ../sv-dependency-builds/osx/include
+    LIBS += -L../sv-dependency-builds/osx/lib
+}
--- a/runner.pro	Thu Oct 09 13:18:06 2014 +0100
+++ b/runner.pro	Thu Oct 09 14:48:43 2014 +0100
@@ -8,14 +8,30 @@
     INCLUDEPATH += sv-dependency-builds/win32-msvc/include
     LIBS += -Lsv-dependency-builds/win32-msvc/lib
 }
+mac* {
+    INCLUDEPATH += sv-dependency-builds/osx/include
+    LIBS += -L../vamp-plugin-sdk -Lsv-dependency-builds/osx/lib
+}
 
 exists(config.pri) {
     include(config.pri)
 }
-win* {
-    !exists(config.pri) {
-        DEFINES += HAVE_BZ2 HAVE_FFTW3 HAVE_FFTW3F HAVE_SNDFILE HAVE_SAMPLERATE HAVE_VAMP HAVE_VAMPHOSTSDK HAVE_DATAQUAY HAVE_MAD HAVE_ID3TAG 
-        LIBS += -lbz2 -lvamp-hostsdk -lfftw3 -lfftw3f -lsndfile -lFLAC -logg -lvorbis -lvorbisenc -lvorbisfile -logg -lmad -lid3tag -lsamplerate -lz -lsord-0 -lserd-0 -lwinmm -lws2_32
+
+!exists(config.pri) {
+
+    CONFIG += release
+    DEFINES += NDEBUG BUILD_RELEASE NO_TIMING
+
+    DEFINES += HAVE_BZ2 HAVE_FFTW3 HAVE_FFTW3F HAVE_SNDFILE HAVE_SAMPLERATE HAVE_VAMP HAVE_VAMPHOSTSDK HAVE_DATAQUAY HAVE_MAD HAVE_ID3TAG
+
+    LIBS += -lbz2 -lvamp-hostsdk -lfftw3 -lfftw3f -lsndfile -lFLAC -logg -lvorbis -lvorbisenc -lvorbisfile -logg -lmad -lid3tag -lsamplerate -lz -lsord-0 -lserd-0
+
+    win* {
+        LIBS += -lwinmm -lws2_32
+    }
+    macx* {
+        DEFINES += HAVE_COREAUDIO
+        LIBS += -framework CoreAudio -framework CoreMidi -framework AudioUnit -framework AudioToolbox -framework CoreFoundation -framework CoreServices -framework Accelerate
     }
 }
 
--- a/version.h	Thu Oct 09 13:18:06 2014 +0100
+++ b/version.h	Thu Oct 09 14:48:43 2014 +0100
@@ -1,1 +1,1 @@
-#define RUNNER_VERSION "1.1"
+#define RUNNER_VERSION "1.1-hg"