Mercurial > hg > piper-cpp
comparison Makefile @ 60:8a4bcb3dc3a6
Replace exceptions throughout the JSON-handling and adapter code with string-arg error handling. No longer need exception handling enabled in Emscripten (with its consequent runtime overhead - though we still need to check whether this error handling regime is actually faster).
author | Chris Cannam <c.cannam@qmul.ac.uk> |
---|---|
date | Tue, 20 Sep 2016 16:35:47 +0100 |
parents | 38780f15ac8d |
children | 302a8e35248c |
comparison
equal
deleted
inserted
replaced
59:77833938f0f8 | 60:8a4bcb3dc3a6 |
---|---|
4 | 4 |
5 LDFLAGS := vamp-plugin-sdk/libvamp-hostsdk.a -L/usr/local/lib -lcapnp -lkj -ldl | 5 LDFLAGS := vamp-plugin-sdk/libvamp-hostsdk.a -L/usr/local/lib -lcapnp -lkj -ldl |
6 | 6 |
7 #!!! todo: proper dependencies | 7 #!!! todo: proper dependencies |
8 | 8 |
9 all: bin/vamp-json-cli bin/vamp-json-to-capnp bin/vampipe-convert bin/vampipe-server | 9 all: bin/vampipe-convert bin/vampipe-server |
10 | 10 |
11 bin/vampipe-convert: o/vampipe-convert.o o/json11.o o/vamp.capnp.o | 11 bin/vampipe-convert: o/vampipe-convert.o o/json11.o o/vamp.capnp.o |
12 c++ $(CXXFLAGS) $^ -o $@ $(LDFLAGS) | 12 c++ $(CXXFLAGS) $^ -o $@ $(LDFLAGS) |
13 | 13 |
14 bin/vampipe-server: o/vampipe-server.o o/vamp.capnp.o | 14 bin/vampipe-server: o/vampipe-server.o o/vamp.capnp.o |
15 c++ $(CXXFLAGS) $^ -o $@ $(LDFLAGS) | |
16 | |
17 bin/vamp-json-to-capnp: o/json-to-capnp.o o/json11.o | |
18 c++ $(CXXFLAGS) $^ -o $@ $(LDFLAGS) | |
19 | |
20 bin/vamp-json-cli: o/json-cli.o o/json11.o | |
21 c++ $(CXXFLAGS) $^ -o $@ $(LDFLAGS) | 15 c++ $(CXXFLAGS) $^ -o $@ $(LDFLAGS) |
22 | 16 |
23 capnproto/vamp.capnp.h: capnproto/vamp.capnp | 17 capnproto/vamp.capnp.h: capnproto/vamp.capnp |
24 capnp compile $< -oc++ | 18 capnp compile $< -oc++ |
25 | 19 |
33 c++ $(CXXFLAGS) $(INCFLAGS) -c $< -o $@ | 27 c++ $(CXXFLAGS) $(INCFLAGS) -c $< -o $@ |
34 | 28 |
35 o/vampipe-server.o: utilities/vampipe-server.cpp capnproto/vamp.capnp.h capnproto/VampnProto.h | 29 o/vampipe-server.o: utilities/vampipe-server.cpp capnproto/vamp.capnp.h capnproto/VampnProto.h |
36 c++ $(CXXFLAGS) $(INCFLAGS) -c $< -o $@ | 30 c++ $(CXXFLAGS) $(INCFLAGS) -c $< -o $@ |
37 | 31 |
38 o/json-to-capnp.o: utilities/json-to-capnp.cpp capnproto/vamp.capnp.h capnproto/VampnProto.h json/VampJson.h | |
39 c++ $(CXXFLAGS) $(INCFLAGS) -c $< -o $@ | |
40 | |
41 o/json-cli.o: utilities/json-cli.cpp json/VampJson.h | |
42 c++ $(CXXFLAGS) $(INCFLAGS) -c $< -o $@ | |
43 | |
44 test: all | 32 test: all |
45 VAMP_PATH=./vamp-plugin-sdk/examples test/test-json-cli.sh | 33 test/test-vampipe-server.sh |
46 VAMP_PATH=./vamp-plugin-sdk/examples test/test-json-to-capnp.sh | |
47 | 34 |
48 clean: | 35 clean: |
49 rm -f */*.o capnproto/vamp.capnp.h capnproto/vamp.capnp.c++ | 36 rm -f */*.o capnproto/vamp.capnp.h capnproto/vamp.capnp.c++ |
50 | 37 |
51 distclean: clean | 38 distclean: clean |