Drop pd-lib-builder tests
This commit is contained in:
parent
f2ed62ce3f
commit
95e3f1d3a1
52 changed files with 0 additions and 763 deletions
|
|
@ -1,15 +0,0 @@
|
||||||
# recursively build all example projects in the subdirectories
|
|
||||||
|
|
||||||
|
|
||||||
makefiledirs := $(filter-out _%, $(dir $(wildcard */Makefile)))
|
|
||||||
|
|
||||||
PDLIBBUILDER_DIR = ../
|
|
||||||
include $(PDLIBBUILDER_DIR)/Makefile.pdlibbuilder
|
|
||||||
|
|
||||||
buildcheck installcheck: $(makefiledirs)
|
|
||||||
|
|
||||||
runcheck:
|
|
||||||
PDBINDIR=$(PDBINDIR) ./test-patches.sh $(makefiledirs:%=%*.pd)
|
|
||||||
|
|
||||||
projects:
|
|
||||||
@echo $(makefiledirs)
|
|
||||||
|
|
@ -1,24 +0,0 @@
|
||||||
# Makefile to build class '_template_' for Pure Data.
|
|
||||||
# Needs Makefile.pdlibbuilder as helper makefile for platform-dependent build
|
|
||||||
# settings and rules.
|
|
||||||
|
|
||||||
# library name
|
|
||||||
lib.name = _template_
|
|
||||||
|
|
||||||
# input source file (class name == source file basename)
|
|
||||||
class.sources = _template_.c
|
|
||||||
|
|
||||||
# all extra files to be included in binary distribution of the library
|
|
||||||
datafiles = _template_-help.pd _template_-meta.pd
|
|
||||||
|
|
||||||
# include Makefile.pdlibbuilder
|
|
||||||
# (for real-world projects see the "Project Management" section
|
|
||||||
# in tips-tricks.md)
|
|
||||||
PDLIBBUILDER_DIR=../..
|
|
||||||
include $(PDLIBBUILDER_DIR)/Makefile.pdlibbuilder
|
|
||||||
|
|
||||||
# simplistic tests whether all expected files have been produced/installed
|
|
||||||
buildcheck: all
|
|
||||||
test -e _template_.$(extension)
|
|
||||||
installcheck: install
|
|
||||||
test -e $(installpath)/_template_.$(extension)
|
|
||||||
|
|
@ -1,4 +0,0 @@
|
||||||
#N canvas 335 160 450 300 12;
|
|
||||||
#X obj 143 125 _template_;
|
|
||||||
#X msg 143 93 7;
|
|
||||||
#X connect 1 0 0 0;
|
|
||||||
|
|
@ -1,9 +0,0 @@
|
||||||
#N canvas 966 322 200 200 10;
|
|
||||||
#N canvas 19 51 420 300 META 0;
|
|
||||||
#X text 10 10 META this is a prototype of a libdir meta file;
|
|
||||||
#X text 10 51 AUTHOR IOhannes m zmolnig;
|
|
||||||
#X text 10 110 VERSION 1.0.0;
|
|
||||||
#X text 10 90 LICENSE CC0;
|
|
||||||
#X text 10 70 DESCRIPTION Example "_template_" external.;
|
|
||||||
#X text 10 30 NAME _template_;
|
|
||||||
#X restore 10 10 pd META;
|
|
||||||
|
|
@ -1,13 +0,0 @@
|
||||||
#include <m_pd.h>
|
|
||||||
t_class*_template__class;
|
|
||||||
static void _template__float(t_object*x, t_float f1) {
|
|
||||||
pd_error(x, "%s got %f", __FUNCTION__, f1);
|
|
||||||
}
|
|
||||||
static void*_template__new(void) {
|
|
||||||
return pd_new(_template__class);
|
|
||||||
}
|
|
||||||
void _template__setup(void) {
|
|
||||||
post("%s", __FUNCTION__);
|
|
||||||
_template__class = class_new(gensym("_template_"), _template__new, 0, sizeof(t_object), 0, A_NULL);
|
|
||||||
class_addfloat(_template__class, _template__float);
|
|
||||||
}
|
|
||||||
|
|
@ -1,46 +0,0 @@
|
||||||
#!/bin/sh
|
|
||||||
|
|
||||||
template=_template_
|
|
||||||
template_dir=${0%/*}/${template}
|
|
||||||
|
|
||||||
outdir=$1
|
|
||||||
outdir=${outdir%/}
|
|
||||||
outname=${outdir##*/}
|
|
||||||
|
|
||||||
|
|
||||||
usage() {
|
|
||||||
cat 1>&2 <<EOL
|
|
||||||
usage: $0 <outdir>
|
|
||||||
creates a new test-directory <outdir> from _template_;
|
|
||||||
<outdir> must not exist yet.
|
|
||||||
EOL
|
|
||||||
if [ "x$@" != "x" ]; then
|
|
||||||
echo
|
|
||||||
echo " $@" 1>&2
|
|
||||||
fi
|
|
||||||
exit 1
|
|
||||||
}
|
|
||||||
|
|
||||||
if [ "x${outdir}" = "x" ]; then
|
|
||||||
usage
|
|
||||||
fi
|
|
||||||
|
|
||||||
if [ -d "${outdir}" ]; then
|
|
||||||
usage "output directory '${outdir}' already exists!"
|
|
||||||
fi
|
|
||||||
|
|
||||||
if [ ! -d "${template_dir}" ]; then
|
|
||||||
echo "unable to find '${template_dir}'" 1>&2
|
|
||||||
exit 1
|
|
||||||
fi
|
|
||||||
|
|
||||||
mkdir -p "${outdir}" || usage "unable to create '${outdir}'!"
|
|
||||||
rmdir "${outdir}"
|
|
||||||
cp -r "${template_dir}" "${outdir}"
|
|
||||||
find "${outdir}" -type f -exec sed -e "s|${template}|${outname}|g" -i {} +
|
|
||||||
for f in "${outdir}"/*; do
|
|
||||||
g=$(echo $f | sed -e "s|${template}|${outname}|g")
|
|
||||||
if [ "x${f}" != "x${g}" ]; then
|
|
||||||
mv "${f}" "${g}"
|
|
||||||
fi
|
|
||||||
done
|
|
||||||
|
|
@ -1,39 +0,0 @@
|
||||||
# Makefile to build class 'multifor' for Pure Data.
|
|
||||||
# Needs Makefile.pdlibbuilder as helper makefile for platform-dependent build
|
|
||||||
# settings and rules.
|
|
||||||
|
|
||||||
# library name
|
|
||||||
lib.name = multifor
|
|
||||||
|
|
||||||
# input source file (class name == source file basename)
|
|
||||||
class.sources = multiforA.c
|
|
||||||
|
|
||||||
# additional classes
|
|
||||||
define forLinux
|
|
||||||
class.sources += multiforB.c
|
|
||||||
endef
|
|
||||||
define forDarwin
|
|
||||||
class.sources += multiforB.c
|
|
||||||
endef
|
|
||||||
define forWindows
|
|
||||||
class.sources += multiforB.c
|
|
||||||
endef
|
|
||||||
|
|
||||||
# all extra files to be included in binary distribution of the library
|
|
||||||
datafiles = multifor-help.pd multifor-meta.pd
|
|
||||||
|
|
||||||
# include Makefile.pdlibbuilder
|
|
||||||
# (for real-world projects see the "Project Management" section
|
|
||||||
# in tips-tricks.md)
|
|
||||||
PDLIBBUILDER_DIR=../..
|
|
||||||
include $(PDLIBBUILDER_DIR)/Makefile.pdlibbuilder
|
|
||||||
|
|
||||||
# simplistic tests whether all expected files have been produced/installed
|
|
||||||
buildcheck: all
|
|
||||||
test -e multiforA.$(extension)
|
|
||||||
test -e multiforB.$(extension)
|
|
||||||
installcheck: install
|
|
||||||
test -e $(installpath)/multiforA.$(extension)
|
|
||||||
test -e $(installpath)/multiforB.$(extension)
|
|
||||||
test -e $(installpath)/multifor-help.pd
|
|
||||||
test -e $(installpath)/multifor-meta.pd
|
|
||||||
|
|
@ -1,9 +0,0 @@
|
||||||
multifor
|
|
||||||
========
|
|
||||||
|
|
||||||
minimal pd-lib-builder project that shows how to compile
|
|
||||||
a library that contains multiple C-files that are compiled into
|
|
||||||
multiple binaries each containing a different Pd-objectclass.
|
|
||||||
some of the objectclasses are only compiled on specific platforms.
|
|
||||||
|
|
||||||
this is a special case of the one-object-per-binary library structure.
|
|
||||||
|
|
@ -1,7 +0,0 @@
|
||||||
#N canvas 335 160 450 300 12;
|
|
||||||
#X msg 143 93 7;
|
|
||||||
#X obj 143 125 multiforA;
|
|
||||||
#X obj 223 125 multiforB;
|
|
||||||
#X msg 223 93 12;
|
|
||||||
#X connect 0 0 1 0;
|
|
||||||
#X connect 3 0 2 0;
|
|
||||||
|
|
@ -1,9 +0,0 @@
|
||||||
#N canvas 966 322 200 200 10;
|
|
||||||
#N canvas 19 51 420 300 META 0;
|
|
||||||
#X text 10 10 META this is a prototype of a libdir meta file;
|
|
||||||
#X text 10 51 AUTHOR IOhannes m zmolnig;
|
|
||||||
#X text 10 110 VERSION 1.0.0;
|
|
||||||
#X text 10 90 LICENSE CC0;
|
|
||||||
#X text 10 70 DESCRIPTION Example "multifor" external.;
|
|
||||||
#X text 10 30 NAME multifor;
|
|
||||||
#X restore 10 10 pd META;
|
|
||||||
|
|
@ -1,13 +0,0 @@
|
||||||
#include <m_pd.h>
|
|
||||||
t_class*multiforA_class;
|
|
||||||
static void multiforA_float(t_object*x, t_float f1) {
|
|
||||||
pd_error(x, "%s got %f", __FUNCTION__, f1);
|
|
||||||
}
|
|
||||||
static void*multiforA_new(void) {
|
|
||||||
return pd_new(multiforA_class);
|
|
||||||
}
|
|
||||||
void multiforA_setup(void) {
|
|
||||||
post("%s", __FUNCTION__);
|
|
||||||
multiforA_class = class_new(gensym("multiforA"), multiforA_new, 0, sizeof(t_object), 0, A_NULL);
|
|
||||||
class_addfloat(multiforA_class, multiforA_float);
|
|
||||||
}
|
|
||||||
|
|
@ -1,13 +0,0 @@
|
||||||
#include <m_pd.h>
|
|
||||||
t_class*multiforB_class;
|
|
||||||
static void multiforB_float(t_object*x, t_float f1) {
|
|
||||||
pd_error(x, "%s got %f", __FUNCTION__, f1);
|
|
||||||
}
|
|
||||||
static void*multiforB_new(void) {
|
|
||||||
return pd_new(multiforB_class);
|
|
||||||
}
|
|
||||||
void multiforB_setup(void) {
|
|
||||||
post("%s", __FUNCTION__);
|
|
||||||
multiforB_class = class_new(gensym("multiforB"), multiforB_new, 0, sizeof(t_object), 0, A_NULL);
|
|
||||||
class_addfloat(multiforB_class, multiforB_float);
|
|
||||||
}
|
|
||||||
|
|
@ -1,32 +0,0 @@
|
||||||
# Makefile to build class 'multilib' for Pure Data.
|
|
||||||
# Needs Makefile.pdlibbuilder as helper makefile for platform-dependent build
|
|
||||||
# settings and rules.
|
|
||||||
|
|
||||||
# library name
|
|
||||||
lib.name = multilib
|
|
||||||
|
|
||||||
make-lib-executable=yes
|
|
||||||
|
|
||||||
# input source file (class name == source file basename)
|
|
||||||
class.sources = multilibA.c multilibB.c
|
|
||||||
|
|
||||||
# glue for building a multi-object library
|
|
||||||
lib.setup.sources = $(lib.name).c
|
|
||||||
|
|
||||||
# all extra files to be included in binary distribution of the library
|
|
||||||
datafiles = multilib-help.pd multilib-meta.pd
|
|
||||||
|
|
||||||
# include Makefile.pdlibbuilder
|
|
||||||
# (for real-world projects see the "Project Management" section
|
|
||||||
# in tips-tricks.md)
|
|
||||||
PDLIBBUILDER_DIR=../..
|
|
||||||
include $(PDLIBBUILDER_DIR)/Makefile.pdlibbuilder
|
|
||||||
|
|
||||||
|
|
||||||
# simplistic tests whether all expected files have been produced/installed
|
|
||||||
buildcheck: all
|
|
||||||
test -e multilib.$(extension)
|
|
||||||
installcheck: install
|
|
||||||
test -e $(installpath)/multilib.$(extension)
|
|
||||||
test -e $(installpath)/multilib-help.pd
|
|
||||||
test -e $(installpath)/multilib-meta.pd
|
|
||||||
|
|
@ -1,8 +0,0 @@
|
||||||
multilib
|
|
||||||
========
|
|
||||||
|
|
||||||
minimal pd-lib-builder project that shows how to compile
|
|
||||||
a library that contains multiple C-files that are compiled into
|
|
||||||
a single binary containing different Pd-objectclasses.
|
|
||||||
|
|
||||||
this is the general case of the single-binary library structure.
|
|
||||||
|
|
@ -1,9 +0,0 @@
|
||||||
#N canvas 335 160 450 300 12;
|
|
||||||
#X declare -lib multilib;
|
|
||||||
#X msg 143 93 7;
|
|
||||||
#X obj 143 125 multilibA;
|
|
||||||
#X obj 223 125 multilibB;
|
|
||||||
#X msg 223 93 12;
|
|
||||||
#X obj 136 47 declare -lib multilib;
|
|
||||||
#X connect 0 0 1 0;
|
|
||||||
#X connect 3 0 2 0;
|
|
||||||
|
|
@ -1,9 +0,0 @@
|
||||||
#N canvas 966 322 200 200 10;
|
|
||||||
#N canvas 19 51 420 300 META 0;
|
|
||||||
#X text 10 10 META this is a prototype of a libdir meta file;
|
|
||||||
#X text 10 51 AUTHOR IOhannes m zmolnig;
|
|
||||||
#X text 10 110 VERSION 1.0.0;
|
|
||||||
#X text 10 90 LICENSE CC0;
|
|
||||||
#X text 10 70 DESCRIPTION Example "multiple" external.;
|
|
||||||
#X text 10 30 NAME multiple;
|
|
||||||
#X restore 10 10 pd META;
|
|
||||||
|
|
@ -1,8 +0,0 @@
|
||||||
|
|
||||||
void multilibA_setup(void);
|
|
||||||
void multilibB_setup(void);
|
|
||||||
|
|
||||||
void multilib_setup(void) {
|
|
||||||
multilibA_setup();
|
|
||||||
multilibB_setup();
|
|
||||||
}
|
|
||||||
|
|
@ -1,13 +0,0 @@
|
||||||
#include <m_pd.h>
|
|
||||||
t_class*multilibA_class;
|
|
||||||
static void multilibA_float(t_object*x, t_float f1) {
|
|
||||||
pd_error(x, "%s got %f", __FUNCTION__, f1);
|
|
||||||
}
|
|
||||||
static void*multilibA_new(void) {
|
|
||||||
return pd_new(multilibA_class);
|
|
||||||
}
|
|
||||||
void multilibA_setup(void) {
|
|
||||||
post("%s", __FUNCTION__);
|
|
||||||
multilibA_class = class_new(gensym("multilibA"), multilibA_new, 0, sizeof(t_object), 0, A_NULL);
|
|
||||||
class_addfloat(multilibA_class, multilibA_float);
|
|
||||||
}
|
|
||||||
|
|
@ -1,13 +0,0 @@
|
||||||
#include <m_pd.h>
|
|
||||||
t_class*multilibB_class;
|
|
||||||
static void multilibB_float(t_object*x, t_float f1) {
|
|
||||||
pd_error(x, "%s got %f", __FUNCTION__, f1);
|
|
||||||
}
|
|
||||||
static void*multilibB_new(void) {
|
|
||||||
return pd_new(multilibB_class);
|
|
||||||
}
|
|
||||||
void multilibB_setup(void) {
|
|
||||||
post("%s", __FUNCTION__);
|
|
||||||
multilibB_class = class_new(gensym("multilibB"), multilibB_new, 0, sizeof(t_object), 0, A_NULL);
|
|
||||||
class_addfloat(multilibB_class, multilibB_float);
|
|
||||||
}
|
|
||||||
|
|
@ -1,28 +0,0 @@
|
||||||
# Makefile to build class 'multiple' for Pure Data.
|
|
||||||
# Needs Makefile.pdlibbuilder as helper makefile for platform-dependent build
|
|
||||||
# settings and rules.
|
|
||||||
|
|
||||||
# library name
|
|
||||||
lib.name = multiple
|
|
||||||
|
|
||||||
# input source file (class name == source file basename)
|
|
||||||
class.sources = multipleA.c multipleB.c
|
|
||||||
|
|
||||||
# all extra files to be included in binary distribution of the library
|
|
||||||
datafiles = multiple-help.pd multiple-meta.pd
|
|
||||||
|
|
||||||
# include Makefile.pdlibbuilder
|
|
||||||
# (for real-world projects see the "Project Management" section
|
|
||||||
# in tips-tricks.md)
|
|
||||||
PDLIBBUILDER_DIR=../..
|
|
||||||
include $(PDLIBBUILDER_DIR)/Makefile.pdlibbuilder
|
|
||||||
|
|
||||||
# simplistic tests whether all expected files have been produced/installed
|
|
||||||
buildcheck: all
|
|
||||||
test -e multipleA.$(extension)
|
|
||||||
test -e multipleB.$(extension)
|
|
||||||
installcheck: install
|
|
||||||
test -e $(installpath)/multipleA.$(extension)
|
|
||||||
test -e $(installpath)/multipleB.$(extension)
|
|
||||||
test -e $(installpath)/multiple-help.pd
|
|
||||||
test -e $(installpath)/multiple-meta.pd
|
|
||||||
|
|
@ -1,8 +0,0 @@
|
||||||
multiple
|
|
||||||
========
|
|
||||||
|
|
||||||
minimal pd-lib-builder project that shows how to compile
|
|
||||||
a library that contains multiple C-files that are compiled into
|
|
||||||
multiple binaries each containing a different Pd-objectclass.
|
|
||||||
|
|
||||||
this is the general case of the one-object-per-binary library structure.
|
|
||||||
|
|
@ -1,7 +0,0 @@
|
||||||
#N canvas 335 160 450 300 12;
|
|
||||||
#X msg 143 93 7;
|
|
||||||
#X obj 143 125 multipleA;
|
|
||||||
#X obj 223 125 multipleB;
|
|
||||||
#X msg 223 93 12;
|
|
||||||
#X connect 0 0 1 0;
|
|
||||||
#X connect 3 0 2 0;
|
|
||||||
|
|
@ -1,9 +0,0 @@
|
||||||
#N canvas 966 322 200 200 10;
|
|
||||||
#N canvas 19 51 420 300 META 0;
|
|
||||||
#X text 10 10 META this is a prototype of a libdir meta file;
|
|
||||||
#X text 10 51 AUTHOR IOhannes m zmolnig;
|
|
||||||
#X text 10 110 VERSION 1.0.0;
|
|
||||||
#X text 10 90 LICENSE CC0;
|
|
||||||
#X text 10 70 DESCRIPTION Example "multiple" external.;
|
|
||||||
#X text 10 30 NAME multiple;
|
|
||||||
#X restore 10 10 pd META;
|
|
||||||
|
|
@ -1,13 +0,0 @@
|
||||||
#include <m_pd.h>
|
|
||||||
t_class*multipleA_class;
|
|
||||||
static void multipleA_float(t_object*x, t_float f1) {
|
|
||||||
pd_error(x, "%s got %f", __FUNCTION__, f1);
|
|
||||||
}
|
|
||||||
static void*multipleA_new(void) {
|
|
||||||
return pd_new(multipleA_class);
|
|
||||||
}
|
|
||||||
void multipleA_setup(void) {
|
|
||||||
post("%s", __FUNCTION__);
|
|
||||||
multipleA_class = class_new(gensym("multipleA"), multipleA_new, 0, sizeof(t_object), 0, A_NULL);
|
|
||||||
class_addfloat(multipleA_class, multipleA_float);
|
|
||||||
}
|
|
||||||
|
|
@ -1,13 +0,0 @@
|
||||||
#include <m_pd.h>
|
|
||||||
t_class*multipleB_class;
|
|
||||||
static void multipleB_float(t_object*x, t_float f1) {
|
|
||||||
pd_error(x, "%s got %f", __FUNCTION__, f1);
|
|
||||||
}
|
|
||||||
static void*multipleB_new(void) {
|
|
||||||
return pd_new(multipleB_class);
|
|
||||||
}
|
|
||||||
void multipleB_setup(void) {
|
|
||||||
post("%s", __FUNCTION__);
|
|
||||||
multipleB_class = class_new(gensym("multipleB"), multipleB_new, 0, sizeof(t_object), 0, A_NULL);
|
|
||||||
class_addfloat(multipleB_class, multipleB_float);
|
|
||||||
}
|
|
||||||
|
|
@ -1,28 +0,0 @@
|
||||||
# Makefile to build class 'multiplexx' for Pure Data.
|
|
||||||
# Needs Makefile.pdlibbuilder as helper makefile for platform-dependent build
|
|
||||||
# settings and rules.
|
|
||||||
|
|
||||||
# library name
|
|
||||||
lib.name = multiplexx
|
|
||||||
|
|
||||||
# input source file (class name == source file basename)
|
|
||||||
class.sources = multiplexxA.cpp multiplexxB.c
|
|
||||||
|
|
||||||
# all extra files to be included in binary distribution of the library
|
|
||||||
datafiles = multiplexx-help.pd multiplexx-meta.pd
|
|
||||||
|
|
||||||
# include Makefile.pdlibbuilder
|
|
||||||
# (for real-world projects see the "Project Management" section
|
|
||||||
# in tips-tricks.md)
|
|
||||||
PDLIBBUILDER_DIR=../..
|
|
||||||
include $(PDLIBBUILDER_DIR)/Makefile.pdlibbuilder
|
|
||||||
|
|
||||||
# simplistic tests whether all expected files have been produced/installed
|
|
||||||
buildcheck: all
|
|
||||||
test -e multiplexxA.$(extension)
|
|
||||||
test -e multiplexxB.$(extension)
|
|
||||||
installcheck: install
|
|
||||||
test -e $(installpath)/multiplexxA.$(extension)
|
|
||||||
test -e $(installpath)/multiplexxB.$(extension)
|
|
||||||
test -e $(installpath)/multiplexx-help.pd
|
|
||||||
test -e $(installpath)/multiplexx-meta.pd
|
|
||||||
|
|
@ -1,8 +0,0 @@
|
||||||
multiplexx
|
|
||||||
========
|
|
||||||
|
|
||||||
minimal pd-lib-builder project that shows how to compile
|
|
||||||
a library that contains multiplexx C-files that are compiled into
|
|
||||||
multiplexx binaries each containing a different Pd-objectclass.
|
|
||||||
|
|
||||||
this is the general case of the one-object-per-binary library structure.
|
|
||||||
|
|
@ -1,7 +0,0 @@
|
||||||
#N canvas 335 160 450 300 12;
|
|
||||||
#X msg 143 93 7;
|
|
||||||
#X obj 143 125 multiplexxA;
|
|
||||||
#X obj 223 125 multiplexxB;
|
|
||||||
#X msg 223 93 12;
|
|
||||||
#X connect 0 0 1 0;
|
|
||||||
#X connect 3 0 2 0;
|
|
||||||
|
|
@ -1,9 +0,0 @@
|
||||||
#N canvas 966 322 200 200 10;
|
|
||||||
#N canvas 19 51 420 300 META 0;
|
|
||||||
#X text 10 10 META this is a prototype of a libdir meta file;
|
|
||||||
#X text 10 51 AUTHOR IOhannes m zmolnig;
|
|
||||||
#X text 10 110 VERSION 1.0.0;
|
|
||||||
#X text 10 90 LICENSE CC0;
|
|
||||||
#X text 10 70 DESCRIPTION Example "multiplexx" external.;
|
|
||||||
#X text 10 30 NAME multiplexx;
|
|
||||||
#X restore 10 10 pd META;
|
|
||||||
|
|
@ -1,19 +0,0 @@
|
||||||
#include <m_pd.h>
|
|
||||||
#include <iostream>
|
|
||||||
t_class*multiplexxA_class;
|
|
||||||
static void multiplexxA_float(t_object*x, t_float f1) {
|
|
||||||
pd_error(x, "%s got %f", __FUNCTION__, f1);
|
|
||||||
}
|
|
||||||
static void*multiplexxA_new(void) {
|
|
||||||
return pd_new(multiplexxA_class);
|
|
||||||
}
|
|
||||||
#if defined(_LANGUAGE_C_PLUS_PLUS) || defined(__cplusplus)
|
|
||||||
extern "C" {
|
|
||||||
void multiplexxA_setup(void);
|
|
||||||
}
|
|
||||||
#endif
|
|
||||||
void multiplexxA_setup(void) {
|
|
||||||
std::cerr << __FUNCTION__ << std::endl;
|
|
||||||
multiplexxA_class = class_new(gensym("multiplexxA"), multiplexxA_new, 0, sizeof(t_object), 0, A_NULL);
|
|
||||||
class_addfloat(multiplexxA_class, multiplexxA_float);
|
|
||||||
}
|
|
||||||
|
|
@ -1,13 +0,0 @@
|
||||||
#include <m_pd.h>
|
|
||||||
t_class*multiplexxB_class;
|
|
||||||
static void multiplexxB_float(t_object*x, t_float f1) {
|
|
||||||
pd_error(x, "%s got %f", __FUNCTION__, f1);
|
|
||||||
}
|
|
||||||
static void*multiplexxB_new(void) {
|
|
||||||
return pd_new(multiplexxB_class);
|
|
||||||
}
|
|
||||||
void multiplexxB_setup(void) {
|
|
||||||
post("%s", __FUNCTION__);
|
|
||||||
multiplexxB_class = class_new(gensym("multiplexxB"), multiplexxB_new, 0, sizeof(t_object), 0, A_NULL);
|
|
||||||
class_addfloat(multiplexxB_class, multiplexxB_float);
|
|
||||||
}
|
|
||||||
|
|
@ -1,41 +0,0 @@
|
||||||
# Makefile to build class 'multishared' for Pure Data.
|
|
||||||
# Needs Makefile.pdlibbuilder as helper makefile for platform-dependent build
|
|
||||||
# settings and rules.
|
|
||||||
|
|
||||||
# library name
|
|
||||||
lib.name = multishared
|
|
||||||
|
|
||||||
# common functions
|
|
||||||
shared.sources = shared.c
|
|
||||||
|
|
||||||
# input source file (class name == source file basename)
|
|
||||||
class.sources = multisharedA.c multisharedB.c
|
|
||||||
|
|
||||||
# all extra files to be included in binary distribution of the library
|
|
||||||
datafiles = multishared-help.pd multishared-meta.pd
|
|
||||||
|
|
||||||
# include Makefile.pdlibbuilder
|
|
||||||
# (for real-world projects see the "Project Management" section
|
|
||||||
# in tips-tricks.md)
|
|
||||||
PDLIBBUILDER_DIR=../..
|
|
||||||
include $(PDLIBBUILDER_DIR)/Makefile.pdlibbuilder
|
|
||||||
|
|
||||||
# simplistic tests whether all expected files have been produced/installed
|
|
||||||
buildcheck: all
|
|
||||||
ifeq ($(shared.extension), $(extension))
|
|
||||||
test -e lib$(lib.name).$(shared.extension)
|
|
||||||
else
|
|
||||||
test -e lib$(lib.name).$(extension).$(shared.extension)
|
|
||||||
endif
|
|
||||||
test -e multisharedA.$(extension)
|
|
||||||
test -e multisharedB.$(extension)
|
|
||||||
installcheck: install
|
|
||||||
ifeq ($(shared.extension), $(extension))
|
|
||||||
test -e $(installpath)/lib$(lib.name).$(shared.extension)
|
|
||||||
else
|
|
||||||
test -e $(installpath)/lib$(lib.name).$(extension).$(shared.extension)
|
|
||||||
endif
|
|
||||||
test -e $(installpath)/multisharedA.$(extension)
|
|
||||||
test -e $(installpath)/multisharedB.$(extension)
|
|
||||||
test -e $(installpath)/multishared-help.pd
|
|
||||||
test -e $(installpath)/multishared-meta.pd
|
|
||||||
|
|
@ -1,9 +0,0 @@
|
||||||
multishared
|
|
||||||
===========
|
|
||||||
|
|
||||||
minimal pd-lib-builder project that shows how to compile
|
|
||||||
a library that contains multiple C-files that are compiled into
|
|
||||||
multiple binaries each containing a different Pd-objectclass.
|
|
||||||
a local shared library is used for common components.
|
|
||||||
|
|
||||||
this is an extended case of the one-object-per-binary library structure.
|
|
||||||
|
|
@ -1,7 +0,0 @@
|
||||||
#N canvas 335 160 450 300 12;
|
|
||||||
#X msg 143 93 7;
|
|
||||||
#X obj 143 125 multisharedA;
|
|
||||||
#X obj 223 125 multisharedB;
|
|
||||||
#X msg 223 93 12;
|
|
||||||
#X connect 0 0 1 0;
|
|
||||||
#X connect 3 0 2 0;
|
|
||||||
|
|
@ -1,9 +0,0 @@
|
||||||
#N canvas 966 322 200 200 10;
|
|
||||||
#N canvas 19 51 420 300 META 0;
|
|
||||||
#X text 10 10 META this is a prototype of a libdir meta file;
|
|
||||||
#X text 10 51 AUTHOR IOhannes m zmolnig;
|
|
||||||
#X text 10 110 VERSION 1.0.0;
|
|
||||||
#X text 10 90 LICENSE CC0;
|
|
||||||
#X text 10 70 DESCRIPTION Example "multishared" external.;
|
|
||||||
#X text 10 30 NAME multishared;
|
|
||||||
#X restore 10 10 pd META;
|
|
||||||
|
|
@ -1,3 +0,0 @@
|
||||||
#include <m_pd.h>
|
|
||||||
|
|
||||||
void multishared_foo(t_float f);
|
|
||||||
|
|
@ -1,14 +0,0 @@
|
||||||
#include "multishared.h"
|
|
||||||
t_class*multisharedA_class;
|
|
||||||
static void multisharedA_float(t_object*x, t_float f1) {
|
|
||||||
pd_error(x, "%s got %f", __FUNCTION__, f1);
|
|
||||||
multishared_foo(f1);
|
|
||||||
}
|
|
||||||
static void*multisharedA_new(void) {
|
|
||||||
return pd_new(multisharedA_class);
|
|
||||||
}
|
|
||||||
void multisharedA_setup(void) {
|
|
||||||
post("%s", __FUNCTION__);
|
|
||||||
multisharedA_class = class_new(gensym("multisharedA"), multisharedA_new, 0, sizeof(t_object), 0, A_NULL);
|
|
||||||
class_addfloat(multisharedA_class, multisharedA_float);
|
|
||||||
}
|
|
||||||
|
|
@ -1,14 +0,0 @@
|
||||||
#include "multishared.h"
|
|
||||||
t_class*multisharedB_class;
|
|
||||||
static void multisharedB_float(t_object*x, t_float f1) {
|
|
||||||
pd_error(x, "%s got %f", __FUNCTION__, f1);
|
|
||||||
multishared_foo(f1);
|
|
||||||
}
|
|
||||||
static void*multisharedB_new(void) {
|
|
||||||
return pd_new(multisharedB_class);
|
|
||||||
}
|
|
||||||
void multisharedB_setup(void) {
|
|
||||||
post("%s", __FUNCTION__);
|
|
||||||
multisharedB_class = class_new(gensym("multisharedB"), multisharedB_new, 0, sizeof(t_object), 0, A_NULL);
|
|
||||||
class_addfloat(multisharedB_class, multisharedB_float);
|
|
||||||
}
|
|
||||||
|
|
@ -1,5 +0,0 @@
|
||||||
#include "multishared.h"
|
|
||||||
|
|
||||||
void multishared_foo(t_float f) {
|
|
||||||
post("%s(%f)", __FUNCTION__, f);
|
|
||||||
}
|
|
||||||
|
|
@ -1,24 +0,0 @@
|
||||||
# Makefile to build class 'single' for Pure Data.
|
|
||||||
# Needs Makefile.pdlibbuilder as helper makefile for platform-dependent build
|
|
||||||
# settings and rules.
|
|
||||||
|
|
||||||
# library name
|
|
||||||
lib.name = single
|
|
||||||
|
|
||||||
# input source file (class name == source file basename)
|
|
||||||
class.sources = single.c
|
|
||||||
|
|
||||||
# all extra files to be included in binary distribution of the library
|
|
||||||
datafiles = single-help.pd single-meta.pd
|
|
||||||
|
|
||||||
# include Makefile.pdlibbuilder
|
|
||||||
# (for real-world projects see the "Project Management" section
|
|
||||||
# in tips-tricks.md)
|
|
||||||
PDLIBBUILDER_DIR=../..
|
|
||||||
include $(PDLIBBUILDER_DIR)/Makefile.pdlibbuilder
|
|
||||||
|
|
||||||
# simplistic tests whether all expected files have been produced/installed
|
|
||||||
buildcheck: all
|
|
||||||
test -e single.$(extension)
|
|
||||||
installcheck: install
|
|
||||||
test -e $(installpath)/single.$(extension)
|
|
||||||
|
|
@ -1,8 +0,0 @@
|
||||||
single
|
|
||||||
======
|
|
||||||
|
|
||||||
minimal pd-lib-builder project that shows how to compile
|
|
||||||
a library that contains a single C-file that is compiled into
|
|
||||||
a single binary containing a single Pd-objectclass.
|
|
||||||
|
|
||||||
this is a degenerate case of the one-object-per-binary library structure.
|
|
||||||
|
|
@ -1,4 +0,0 @@
|
||||||
#N canvas 335 160 450 300 12;
|
|
||||||
#X obj 143 125 single;
|
|
||||||
#X msg 143 93 7;
|
|
||||||
#X connect 1 0 0 0;
|
|
||||||
|
|
@ -1,9 +0,0 @@
|
||||||
#N canvas 966 322 200 200 10;
|
|
||||||
#N canvas 19 51 420 300 META 0;
|
|
||||||
#X text 10 10 META this is a prototype of a libdir meta file;
|
|
||||||
#X text 10 51 AUTHOR IOhannes m zmolnig;
|
|
||||||
#X text 10 110 VERSION 1.0.0;
|
|
||||||
#X text 10 90 LICENSE CC0;
|
|
||||||
#X text 10 70 DESCRIPTION Example "single" external.;
|
|
||||||
#X text 10 30 NAME single;
|
|
||||||
#X restore 10 10 pd META;
|
|
||||||
|
|
@ -1,13 +0,0 @@
|
||||||
#include <m_pd.h>
|
|
||||||
t_class*single_class;
|
|
||||||
static void single_float(t_object*x, t_float f1) {
|
|
||||||
pd_error(x, "%s got %f", __FUNCTION__, f1);
|
|
||||||
}
|
|
||||||
static void*single_new(void) {
|
|
||||||
return pd_new(single_class);
|
|
||||||
}
|
|
||||||
void single_setup(void) {
|
|
||||||
post("%s", __FUNCTION__);
|
|
||||||
single_class = class_new(gensym("single"), single_new, 0, sizeof(t_object), 0, A_NULL);
|
|
||||||
class_addfloat(single_class, single_float);
|
|
||||||
}
|
|
||||||
|
|
@ -1,27 +0,0 @@
|
||||||
# Makefile to build class 'subdir' for Pure Data.
|
|
||||||
# Needs Makefile.pdlibbuilder as helper makefile for platform-dependent build
|
|
||||||
# settings and rules.
|
|
||||||
|
|
||||||
# library name
|
|
||||||
lib.name = subdir
|
|
||||||
|
|
||||||
# input source file (class name == source file basename)
|
|
||||||
class.sources = src/subdir.c src/subdir~.c
|
|
||||||
|
|
||||||
# all extra files to be included in binary distribution of the library
|
|
||||||
datafiles = subdir-help.pd subdir-meta.pd
|
|
||||||
|
|
||||||
# include Makefile.pdlibbuilder
|
|
||||||
# (for real-world projects see the "Project Management" section
|
|
||||||
# in tips-tricks.md)
|
|
||||||
|
|
||||||
PDLIBBUILDER_DIR=../..
|
|
||||||
include $(PDLIBBUILDER_DIR)/Makefile.pdlibbuilder
|
|
||||||
|
|
||||||
# simplistic tests whether all expected files have been produced/installed
|
|
||||||
buildcheck: all
|
|
||||||
test -e subdir.$(extension)
|
|
||||||
test -e subdir~.$(extension)
|
|
||||||
installcheck: install
|
|
||||||
test -e $(installpath)/subdir.$(extension)
|
|
||||||
test -e $(installpath)/subdir~.$(extension)
|
|
||||||
|
|
@ -1,8 +0,0 @@
|
||||||
subdir
|
|
||||||
======
|
|
||||||
|
|
||||||
pd-lib-builder project that shows how to compile
|
|
||||||
a library that contains a single C-file in a separate src/ directory,
|
|
||||||
that is compiled into a single binary containing a subdir Pd-objectclass.
|
|
||||||
|
|
||||||
this is a special case of the one-object-per-binary library structure.
|
|
||||||
|
|
@ -1,13 +0,0 @@
|
||||||
#include <m_pd.h>
|
|
||||||
t_class*subdir_class;
|
|
||||||
static void subdir_float(t_object*x, t_float f1) {
|
|
||||||
pd_error(x, "%s got %f", __FUNCTION__, f1);
|
|
||||||
}
|
|
||||||
static void*subdir_new(void) {
|
|
||||||
return pd_new(subdir_class);
|
|
||||||
}
|
|
||||||
void subdir_setup(void) {
|
|
||||||
post("%s", __FUNCTION__);
|
|
||||||
subdir_class = class_new(gensym("subdir"), subdir_new, 0, sizeof(t_object), 0, A_NULL);
|
|
||||||
class_addfloat(subdir_class, subdir_float);
|
|
||||||
}
|
|
||||||
|
|
@ -1,13 +0,0 @@
|
||||||
#include <m_pd.h>
|
|
||||||
t_class*subdir_tilde_class;
|
|
||||||
static void subdir_tilde_float(t_object*x, t_float f1) {
|
|
||||||
pd_error(x, "%s got %f", __FUNCTION__, f1);
|
|
||||||
}
|
|
||||||
static void*subdir_tilde_new(void) {
|
|
||||||
return pd_new(subdir_tilde_class);
|
|
||||||
}
|
|
||||||
void subdir_tilde_setup(void) {
|
|
||||||
post("%s", __FUNCTION__);
|
|
||||||
subdir_tilde_class = class_new(gensym("subdir~"), subdir_tilde_new, 0, sizeof(t_object), 0, A_NULL);
|
|
||||||
class_addfloat(subdir_tilde_class, subdir_tilde_float);
|
|
||||||
}
|
|
||||||
|
|
@ -1,4 +0,0 @@
|
||||||
#N canvas 335 160 450 300 12;
|
|
||||||
#X obj 143 125 subdir;
|
|
||||||
#X msg 143 93 7;
|
|
||||||
#X connect 1 0 0 0;
|
|
||||||
|
|
@ -1,9 +0,0 @@
|
||||||
#N canvas 966 322 200 200 10;
|
|
||||||
#N canvas 19 51 420 300 META 0;
|
|
||||||
#X text 10 10 META this is a prototype of a libdir meta file;
|
|
||||||
#X text 10 51 AUTHOR IOhannes m zmolnig;
|
|
||||||
#X text 10 110 VERSION 1.0.0;
|
|
||||||
#X text 10 90 LICENSE CC0;
|
|
||||||
#X text 10 70 DESCRIPTION Example "subdir" external.;
|
|
||||||
#X text 10 30 NAME subdir;
|
|
||||||
#X restore 10 10 pd META;
|
|
||||||
|
|
@ -1,4 +0,0 @@
|
||||||
#N canvas 335 160 450 300 12;
|
|
||||||
#X obj 143 125 subdir~;
|
|
||||||
#X msg 143 93 7;
|
|
||||||
#X connect 1 0 0 0;
|
|
||||||
|
|
@ -1,70 +0,0 @@
|
||||||
#!/bin/sh
|
|
||||||
|
|
||||||
## simple script to open patches via Pd, and check for errors
|
|
||||||
## - each patch is opened separately
|
|
||||||
## - if an error is encountered, the Pd-printout is displayed
|
|
||||||
## (else it is suppressed)
|
|
||||||
## - if any of the patches encountered an error, the script will
|
|
||||||
## exit with a non-0 code
|
|
||||||
|
|
||||||
if [ "x${PD}" = "x" ]; then
|
|
||||||
if [ "x${PDBINDIR}" != "x" ]; then
|
|
||||||
for exe in pd.com pd pd.exe; do
|
|
||||||
if [ -x "${PDBINDIR}/${exe}" ]; then
|
|
||||||
PD="${PDBINDIR}/${exe}"
|
|
||||||
break
|
|
||||||
fi
|
|
||||||
done
|
|
||||||
if [ "x${PD}" = "x" ]; then
|
|
||||||
echo "WARNING: couldn't find a usable Pd in '${PDBINDIR}'" 1>&2
|
|
||||||
fi
|
|
||||||
fi
|
|
||||||
fi
|
|
||||||
if [ "x${PD}" = "x" ]; then
|
|
||||||
PD=pd
|
|
||||||
fi
|
|
||||||
echo "using Pd: ${PD}"
|
|
||||||
|
|
||||||
failed=0
|
|
||||||
failed_tests=""
|
|
||||||
succeeded=0
|
|
||||||
|
|
||||||
open1patch() {
|
|
||||||
logfile=$(mktemp)
|
|
||||||
local patch=$1
|
|
||||||
local patchdir=${patch%%/*}
|
|
||||||
local patchfile=${patch#*/}
|
|
||||||
patchfile=${patchfile#/}
|
|
||||||
#echo "INFO: running ${patchfile} in ${patchdir}"
|
|
||||||
cd "${patchdir}" && \
|
|
||||||
${PD} -batch -nrt -noprefs -nostdpath -open "${patchfile}" -send "pd quit" \
|
|
||||||
>"${logfile}" 2>&1
|
|
||||||
ret=$?
|
|
||||||
if grep "error: ... couldn't create" "${logfile}" >/dev/null; then
|
|
||||||
ret=1
|
|
||||||
fi
|
|
||||||
if [ "x${ret}" != "x0" ]; then
|
|
||||||
echo ""
|
|
||||||
cat "${logfile}"
|
|
||||||
echo "FAILED[$ret]: ${patch}"
|
|
||||||
else
|
|
||||||
echo "SUCCEEDED: ${patch}"
|
|
||||||
fi
|
|
||||||
rm "${logfile}"
|
|
||||||
return $ret
|
|
||||||
}
|
|
||||||
|
|
||||||
for p in "${@}"; do
|
|
||||||
if (open1patch "${p}"); then
|
|
||||||
succeeded=$((succeeded+1))
|
|
||||||
else
|
|
||||||
failed=$((failed+1))
|
|
||||||
failed_tests="${failed_tests} ${p}"
|
|
||||||
fi
|
|
||||||
done
|
|
||||||
|
|
||||||
echo ""
|
|
||||||
echo "SUCCESS: ${succeeded}"
|
|
||||||
echo "FAILURE: ${failed}"
|
|
||||||
test ${failed} -eq 0 || echo "FAILS :${failed_tests}"
|
|
||||||
test ${failed} -eq 0
|
|
||||||
Loading…
Reference in a new issue