Revision 101:ddc288a7977e

View differences:

.hgignore
1 1
syntax: glob
2 2
Makefile
3
Makefile.vectapp
3
Makefile.*
4 4
*/Makefile
5 5
o/*
6 6
*/o/*
......
18 18
re:^autom4te\.cache/
19 19
re:^qrc_vect\.cpp$
20 20
re:^vect$
21
re:^sonic-vector$
21 22
re:^aclocal\.m4$
22 23
re:^config\.log$
23 24
re:^config\.pri$
24 25
re:^config\.status$
26
*.app
27
Sonic Vector*
28
.DS_Store
29
*.stash
30
cov-int/*
31
*.deb
32
test-svcore-base
33
test-svcore-data-fileio
34
test-svcore-data-model
35
vamp-plugin-sdk
36
svcore
37
svgui
38
svapp
39
checker
40
piper
41
piper-cpp
42
dataquay
43
bqvec
44
bqfft
45
bqresample
46
bqaudioio
47
sv-dependency-builds
48
icons/scalable
49
vamp-plugin-load-checker
50
piper-vamp-simple-server
51
piper-convert
base.pri
1

  
2
SV_INCLUDEPATH = \
3
        . \
4
	bqvec \
5
	bqvec/bqvec \
6
	bqfft \
7
	bqresample \
8
	bqaudioio \
9
	bqaudioio/bqaudioio \
10
	piper-cpp \
11
	checker \
12
	checker/checker \
13
	dataquay \
14
	dataquay/dataquay \
15
	svcore \
16
	svcore/data \
17
	svcore/plugin/api/alsa \
18
	svgui \
19
	svapp \
20
	vamp-plugin-sdk
21

  
22
DEPENDPATH += $$SV_INCLUDEPATH
23
INCLUDEPATH += $$SV_INCLUDEPATH
24

  
25
# Platform defines for RtMidi
26
linux*:   DEFINES += __LINUX_ALSASEQ__
27
macx*:    DEFINES += __MACOSX_CORE__
28
win*:     DEFINES += __WINDOWS_MM__
29
solaris*: DEFINES += __RTMIDI_DUMMY_ONLY__
30

  
31
# Defines for Dataquay
32
DEFINES += USE_SORD
33

  
34
CONFIG += qt thread warn_on stl rtti exceptions c++11
35

  
36
include(bq-files.pri)
37
include(vamp-plugin-sdk-files.pri)
38
include(svcore/files.pri)
39

  
40
DATAQUAY_SOURCES=$$fromfile(dataquay/lib.pro, SOURCES)
41
DATAQUAY_HEADERS=$$fromfile(dataquay/lib.pro, HEADERS)
42

  
43
CHECKER_SOURCES=$$fromfile(checker/checker.pri, SOURCES)
44
CHECKER_HEADERS=$$fromfile(checker/checker.pri, HEADERS)
45
                 
46
CLIENT_HEADERS=$$fromfile(piper-cpp/vamp-client/client.pro, HEADERS)
47

  
48
for (file, BQ_SOURCES)       { SOURCES += $$file }
49
for (file, BQ_HEADERS)       { HEADERS += $$file }
50

  
51
for (file, VAMP_SOURCES)     { SOURCES += $$file }
52
for (file, VAMP_HEADERS)     { HEADERS += $$file }
53

  
54
for (file, DATAQUAY_SOURCES) { SOURCES += $$sprintf("dataquay/%1", $$file) }
55
for (file, DATAQUAY_HEADERS) { HEADERS += $$sprintf("dataquay/%1", $$file) }
56

  
57
for (file, CHECKER_SOURCES)  { SOURCES += $$sprintf("checker/%1",  $$file) }
58
for (file, CHECKER_HEADERS)  { HEADERS += $$sprintf("checker/%1",  $$file) }
59

  
60
for (file, SVCORE_SOURCES)   { SOURCES += $$sprintf("svcore/%1", $$file) }
61
for (file, SVCORE_HEADERS)   { HEADERS += $$sprintf("svcore/%1", $$file) }
62
             
63
for (file, CLIENT_HEADERS) {
64
    HEADERS += $$sprintf("piper-cpp/vamp-client/%1",  $$file)
65
}
66
    
67
SOURCES += piper-cpp/vamp-capnp/piper-capnp.cpp
bq-files.pri
1

  
2
BQ_HEADERS += \
3
	bqvec/bqvec/Allocators.h \
4
	bqvec/bqvec/Barrier.h \
5
	bqvec/bqvec/ComplexTypes.h \
6
	bqvec/bqvec/Restrict.h \
7
	bqvec/bqvec/RingBuffer.h \
8
	bqvec/bqvec/VectorOpsComplex.h \
9
	bqvec/bqvec/VectorOps.h \
10
	bqvec/pommier/neon_mathfun.h \
11
	bqvec/pommier/sse_mathfun.h \
12
        bqfft/bqfft/FFT.h \
13
	bqresample/bqresample/Resampler.h \
14
	bqresample/speex/speex_resampler.h \
15
	bqaudioio/bqaudioio/ApplicationPlaybackSource.h \
16
	bqaudioio/bqaudioio/ApplicationRecordTarget.h \
17
	bqaudioio/bqaudioio/AudioFactory.h \
18
	bqaudioio/bqaudioio/SystemAudioIO.h \
19
	bqaudioio/bqaudioio/SystemPlaybackTarget.h \
20
	bqaudioio/bqaudioio/SystemRecordSource.h \
21
	bqaudioio/src/DynamicJACK.h \
22
	bqaudioio/src/JACKAudioIO.h \
23
	bqaudioio/src/JACKPlaybackTarget.h \
24
	bqaudioio/src/JACKRecordSource.h \
25
	bqaudioio/src/PortAudioIO.h \
26
	bqaudioio/src/PortAudioPlaybackTarget.h \
27
	bqaudioio/src/PortAudioRecordSource.h \
28
	bqaudioio/src/PulseAudioIO.h \
29
	bqaudioio/src/PulseAudioPlaybackTarget.h
30

  
31
BQ_SOURCES += \
32
	bqvec/src/Allocators.cpp \
33
	bqvec/src/Barrier.cpp \
34
	bqvec/src/VectorOpsComplex.cpp \
35
        bqfft/src/FFT.cpp \
36
	bqresample/src/Resampler.cpp \
37
	bqaudioio/src/AudioFactory.cpp \
38
	bqaudioio/src/JACKAudioIO.cpp \
39
	bqaudioio/src/JACKPlaybackTarget.cpp \
40
	bqaudioio/src/JACKRecordSource.cpp \
41
	bqaudioio/src/PortAudioIO.cpp \
42
	bqaudioio/src/PortAudioPlaybackTarget.cpp \
43
	bqaudioio/src/PortAudioRecordSource.cpp \
44
	bqaudioio/src/PulseAudioIO.cpp \
45
	bqaudioio/src/PulseAudioPlaybackTarget.cpp \
46
	bqaudioio/src/SystemPlaybackTarget.cpp \
47
	bqaudioio/src/SystemRecordSource.cpp
48

  
convert.pro
1

  
2
TEMPLATE = app
3

  
4
CONFIG += stl c++11 exceptions console warn_on
5

  
6
CONFIG -= qt
7

  
8
exists(config.pri) {
9
    include(config.pri)
10
}
11

  
12
!exists(config.pri) {
13
    include(noconfig.pri)
14

  
15
    macx*: LIBS -= -framework CoreAudio -framework CoreMidi -framework AudioUnit -framework AudioToolbox -framework CoreFoundation -framework CoreServices -framework Accelerate -lbz2 -lz
16
}
17

  
18
# Can't support this flag with the JSON11 and basen modules as they stand
19
QMAKE_CXXFLAGS -= -Werror
20

  
21
# Using the "console" CONFIG flag above should ensure this happens for
22
# normal Windows builds, but this may be necessary when cross-compiling
23
win32-x-g++: QMAKE_LFLAGS += -Wl,-subsystem,console
24

  
25
macx*: CONFIG -= app_bundle
26

  
27
linux*: LIBS += -ldl
28

  
29
TARGET = piper-convert
30

  
31
OBJECTS_DIR = o
32
MOC_DIR = o
33

  
34
INCLUDEPATH += piper-cpp vamp-plugin-sdk
35

  
36
include(vamp-plugin-sdk-files.pri)
37

  
38
for (file, VAMP_SOURCES) { SOURCES += $$file }
39
for (file, VAMP_HEADERS) { HEADERS += $$file }
40

  
41
HEADERS += \
42
        piper-cpp/vamp-capnp/piper.capnp.h \
43
        piper-cpp/vamp-capnp/VampnProto.h
44

  
45
SOURCES += \
46
        piper-cpp/vamp-capnp/piper-capnp.cpp \
47
        piper-cpp/json11/json11.cpp \
48
        piper-cpp/vamp-server/convert.cpp
noconfig.pri
1

  
2
CONFIG += release
3

  
4
#CONFIG -= release
5
#CONFIG += debug
6

  
7
DEFINES += NDEBUG BUILD_RELEASE
8
DEFINES += NO_TIMING
9

  
10
DEFINES += HAVE_PIPER HAVE_PLUGIN_CHECKER_HELPER
11

  
12
# Full set of defines expected for all platforms when we have the
13
# sv-dependency-builds subrepo available to provide the dependencies.
14

  
15
DEFINES += \
16
        HAVE_BZ2 \
17
	HAVE_FFTW3 \
18
	HAVE_FFTW3F \
19
	HAVE_SNDFILE \
20
	HAVE_SAMPLERATE \
21
	HAVE_RUBBERBAND \
22
	HAVE_LIBLO \
23
	HAVE_MAD \
24
	HAVE_ID3TAG \
25
	HAVE_PORTAUDIO
26

  
27
# Default set of libs for the above. Config sections below may update
28
# these.
29

  
30
LIBS += \
31
        -lbz2 \
32
	-lrubberband \
33
	-lfftw3 \
34
	-lfftw3f \
35
	-lsndfile \
36
	-lFLAC \
37
	-logg \
38
	-lvorbis \
39
	-lvorbisenc \
40
	-lvorbisfile \
41
	-logg \
42
	-lmad \
43
	-lid3tag \
44
	-lportaudio \
45
	-lsamplerate \
46
	-lz \
47
	-lsord-0 \
48
	-lserd-0 \
49
	-llo \
50
	-lcapnp \
51
	-lkj
52

  
53
win32-g++ {
54

  
55
    # This config is currently used for 32-bit Windows builds.
56

  
57
    INCLUDEPATH += sv-dependency-builds/win32-mingw/include
58

  
59
    LIBS += -Lrelease -Lsv-dependency-builds/win32-mingw/lib -L../sonic-visualiser/sv-dependency-builds/win32-mingw/lib
60

  
61
    DEFINES += NOMINMAX _USE_MATH_DEFINES USE_OWN_ALIGNED_MALLOC CAPNP_LITE
62

  
63
    QMAKE_CXXFLAGS_RELEASE += -ffast-math
64

  
65
    # Don't have liblo
66
    DEFINES -= HAVE_LIBLO
67
    LIBS -= -llo
68
    
69
    LIBS += -lwinmm -lws2_32
70
}
71

  
72
win32-msvc* {
73

  
74
    # This config is actually used only for 64-bit Windows builds.
75
    # even though the qmake spec is still called win32-msvc*. If
76
    # we want to do 32-bit builds with MSVC as well, then we'll
77
    # need to add a way to distinguish the two.
78
    
79
    INCLUDEPATH += sv-dependency-builds/win64-msvc/include
80

  
81
## This seems to be intruding even when we're supposed to be release
82
#    CONFIG(debug) {
83
#        LIBS += -NODEFAULTLIB:MSVCRT -Ldebug \
84
#            -L../sonic-visualiser/sv-dependency-builds/win64-msvc/lib/debug \
85
#            -L../sonic-visualiser/sv-dependency-builds/win64-msvc/lib
86
#    }
87
    CONFIG(release) {
88
        LIBS += -Lrelease \
89
            -L../sonic-visualiser/sv-dependency-builds/win64-msvc/lib
90
    }
91

  
92
    DEFINES += NOMINMAX _USE_MATH_DEFINES USE_OWN_ALIGNED_MALLOC CAPNP_LITE
93

  
94
    QMAKE_CXXFLAGS_RELEASE += -fp:fast
95

  
96
    # No Ogg/FLAC support in the sndfile build on this platform yet
97
    LIBS -= -lFLAC -logg -lvorbis -lvorbisenc -lvorbisfile
98

  
99
    # These have different names
100
    LIBS -= -lsord-0 -lserd-0
101
    LIBS += -lsord -lserd
102

  
103
    # Don't have liblo
104
    DEFINES -= HAVE_LIBLO
105
    LIBS -= -llo
106
    
107
    LIBS += -ladvapi32 -lwinmm -lws2_32
108
}
109

  
110
macx* {
111

  
112
    # All Mac builds are 64-bit these days.
113

  
114
    INCLUDEPATH += sv-dependency-builds/osx/include
115
    LIBS += -Lsv-dependency-builds/osx/lib
116

  
117
    QMAKE_CXXFLAGS_RELEASE += -ffast-math
118

  
119
    DEFINES += HAVE_COREAUDIO MALLOC_IS_ALIGNED HAVE_VDSP
120
    LIBS += \
121
        -framework CoreAudio \
122
	-framework CoreMidi \
123
	-framework AudioUnit \
124
	-framework AudioToolbox \
125
	-framework CoreFoundation \
126
	-framework CoreServices \
127
	-framework Accelerate
128
}
129

  
130
linux* {
131

  
132
    message("Building without ./configure on Linux is unlikely to work")
133
    message("If you really want to try it, remove this from noconfig.pri")
134
    error("Refusing to build without ./configure first")
135
}
136

  
server.pro
1

  
2
TEMPLATE = app
3

  
4
CONFIG += stl c++11 exceptions console warn_on
5

  
6
CONFIG -= qt
7

  
8
exists(config.pri) {
9
    include(config.pri)
10
}
11

  
12
!exists(config.pri) {
13
    include(noconfig.pri)
14

  
15
    macx*: LIBS -= -framework CoreAudio -framework CoreMidi -framework AudioUnit -framework AudioToolbox -framework CoreFoundation -framework CoreServices -framework Accelerate -lbz2 -lz
16
}
17

  
18
# Can't support this flag with the JSON11 and basen modules as they stand
19
QMAKE_CXXFLAGS -= -Werror
20

  
21
# Using the "console" CONFIG flag above should ensure this happens for
22
# normal Windows builds, but this may be necessary when cross-compiling
23
win32-x-g++: QMAKE_LFLAGS += -Wl,-subsystem,console
24

  
25
macx*: CONFIG -= app_bundle
26

  
27
linux*: LIBS += -ldl
28

  
29
TARGET = piper-vamp-simple-server
30

  
31
OBJECTS_DIR = o
32
MOC_DIR = o
33

  
34
INCLUDEPATH += piper-cpp vamp-plugin-sdk
35

  
36
include(vamp-plugin-sdk-files.pri)
37

  
38
for (file, VAMP_SOURCES) { SOURCES += $$file }
39
for (file, VAMP_HEADERS) { HEADERS += $$file }
40

  
41
HEADERS += \
42
        piper-cpp/vamp-capnp/piper.capnp.h \
43
        piper-cpp/vamp-capnp/VampnProto.h
44

  
45
SOURCES += \
46
        piper-cpp/vamp-capnp/piper-capnp.cpp \
47
        piper-cpp/json11/json11.cpp \
48
        piper-cpp/vamp-server/simple-server.cpp
test-svcore-base.pro
1

  
2
TEMPLATE = app
3

  
4
exists(config.pri) {
5
    include(config.pri)
6
}
7

  
8
!exists(config.pri) {
9
    include(noconfig.pri)
10
}
11

  
12
include(base.pri)
13

  
14
CONFIG += console
15
QT += network xml testlib
16
QT -= gui
17

  
18
win32-x-g++:QMAKE_LFLAGS += -Wl,-subsystem,console
19
macx*: CONFIG -= app_bundle
20

  
21
TARGET = test-svcore-base
22

  
23
OBJECTS_DIR = o
24
MOC_DIR = o
25

  
26
include(svcore/base/test/files.pri)
27

  
28
for (file, TEST_SOURCES) { SOURCES += $$sprintf("svcore/base/test/%1", $$file) }
29
for (file, TEST_HEADERS) { HEADERS += $$sprintf("svcore/base/test/%1", $$file) }
30

  
31
QMAKE_POST_LINK = ./$${TARGET}$${TARGET_EXT}
test-svcore-data-fileio.pro
1

  
2
TEMPLATE = app
3

  
4
exists(config.pri) {
5
    include(config.pri)
6
}
7

  
8
!exists(config.pri) {
9
    include(noconfig.pri)
10
}
11

  
12
include(base.pri)
13

  
14
CONFIG += console
15
QT += network xml testlib
16
QT -= gui
17

  
18
win32-x-g++:QMAKE_LFLAGS += -Wl,-subsystem,console
19
macx*: CONFIG -= app_bundle
20

  
21
TARGET = test-svcore-data-fileio
22

  
23
OBJECTS_DIR = o
24
MOC_DIR = o
25

  
26
include(svcore/data/fileio/test/files.pri)
27

  
28
for (file, TEST_SOURCES) { SOURCES += $$sprintf("svcore/data/fileio/test/%1", $$file) }
29
for (file, TEST_HEADERS) { HEADERS += $$sprintf("svcore/data/fileio/test/%1", $$file) }
30

  
31
QMAKE_POST_LINK = ./$${TARGET}$${TARGET_EXT}
test-svcore-data-model.pro
1

  
2
TEMPLATE = app
3

  
4
exists(config.pri) {
5
    include(config.pri)
6
}
7

  
8
!exists(config.pri) {
9
    include(noconfig.pri)
10
}
11

  
12
include(base.pri)
13

  
14
CONFIG += console
15
QT += network xml testlib
16
QT -= gui
17

  
18
win32-x-g++:QMAKE_LFLAGS += -Wl,-subsystem,console
19
macx*: CONFIG -= app_bundle
20

  
21
TARGET = test-svcore-data-model
22

  
23
OBJECTS_DIR = o
24
MOC_DIR = o
25

  
26
include(svcore/data/model/test/files.pri)
27

  
28
for (file, TEST_SOURCES) { SOURCES += $$sprintf("svcore/data/model/test/%1", $$file) }
29
for (file, TEST_HEADERS) { HEADERS += $$sprintf("svcore/data/model/test/%1", $$file) }
30

  
31
QMAKE_POST_LINK = ./$${TARGET}$${TARGET_EXT}
vamp-plugin-sdk-files.pri
1

  
2
VAMP_HEADERS += \
3
        vamp-plugin-sdk/vamp-hostsdk/PluginBase.h \
4
        vamp-plugin-sdk/vamp-hostsdk/PluginBufferingAdapter.h \
5
        vamp-plugin-sdk/vamp-hostsdk/PluginChannelAdapter.h \
6
        vamp-plugin-sdk/vamp-hostsdk/Plugin.h \
7
        vamp-plugin-sdk/vamp-hostsdk/PluginHostAdapter.h \
8
        vamp-plugin-sdk/vamp-hostsdk/PluginInputDomainAdapter.h \
9
        vamp-plugin-sdk/vamp-hostsdk/PluginLoader.h \
10
        vamp-plugin-sdk/vamp-hostsdk/PluginSummarisingAdapter.h \
11
        vamp-plugin-sdk/vamp-hostsdk/PluginWrapper.h \
12
        vamp-plugin-sdk/vamp-hostsdk/RealTime.h \
13
        vamp-plugin-sdk/src/vamp-hostsdk/Window.h
14

  
15
VAMP_SOURCES +=  \
16
        vamp-plugin-sdk/src/vamp-hostsdk/PluginBufferingAdapter.cpp \
17
        vamp-plugin-sdk/src/vamp-hostsdk/PluginChannelAdapter.cpp \
18
        vamp-plugin-sdk/src/vamp-hostsdk/PluginHostAdapter.cpp \
19
        vamp-plugin-sdk/src/vamp-hostsdk/PluginInputDomainAdapter.cpp \
20
        vamp-plugin-sdk/src/vamp-hostsdk/PluginLoader.cpp \
21
        vamp-plugin-sdk/src/vamp-hostsdk/PluginSummarisingAdapter.cpp \
22
        vamp-plugin-sdk/src/vamp-hostsdk/PluginWrapper.cpp \
23
        vamp-plugin-sdk/src/vamp-hostsdk/RealTime.cpp \
24
        vamp-plugin-sdk/src/vamp-hostsdk/Files.cpp

Also available in: Unified diff