-
Notifications
You must be signed in to change notification settings - Fork 45
/
addon_config.mk
86 lines (74 loc) · 3.02 KB
/
addon_config.mk
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
# All variables and this file are optional, if they are not present the PG and the
# makefiles will try to parse the correct values from the file system.
#
# Variables that specify exclusions can use % as a wildcard to specify that anything in
# that position will match. A partial path can also be specified to, for example, exclude
# a whole folder from the parsed paths from the file system
#
# Variables can be specified using = or +=
# = will clear the contents of that variable both specified from the file or the ones parsed
# from the file system
# += will add the values to the previous ones in the file or the ones parsed from the file
# system
#
# The PG can be used to detect errors in this file, just create a new project with this addon
# and the PG will write to the console the kind of error and in which line it is
meta:
ADDON_NAME = ofxPd
ADDON_DESCRIPTION = Addon for running the Pure Data audio engine in an OF app
ADDON_AUTHOR = Dan Wilcox
ADDON_TAGS = "sound" "audio" "computer music"
ADDON_URL = http://github.com/danomatika/ofxPd
common:
# required for libpd
ADDON_CFLAGS = -DPD -DUSEAPI_DUMMY -DPD_INTERNAL -DHAVE_UNISTD_H -DHAVE_ALLOCA_H -DLIBPD_EXTRA
# uncomment this for multiple instance support, ie. for pdMultiExample
#ADDON_CFLAGS += -DPDINSTANCE -DPDTHREADS
# this is included directly in pd~.c, don't build twice
ADDON_SOURCES_EXCLUDE = libs/libpd/pure-data/extra/pd~/binarymsg.c
linux64:
ADDON_LIBS_EXCLUDE = libs/libpd/libs
# support dynamic loading
ADDON_CFLAGS += -DHAVE_LIBDL -DHAVE_ENDIAN_H
linux:
ADDON_LIBS_EXCLUDE = libs/libpd/libs
# support dynamic loading
ADDON_CFLAGS += -DHAVE_LIBDL -DHAVE_ENDIAN_H
linuxarmv6l:
ADDON_LIBS_EXCLUDE = libs/libpd/libs
# support dynamic loading
ADDON_CFLAGS += -DHAVE_LIBDL -DHAVE_ENDIAN_H
linuxarmv7l:
ADDON_LIBS_EXCLUDE = libs/libpd/libs
# support dynamic loading
ADDON_CFLAGS += -DHAVE_LIBDL -DHAVE_ENDIAN_H
msys2:
# support dynamic loading
ADDON_CFLAGS += -DHAVE_LIBDL
# this assumes 64 bit builds only at this point...
ADDON_DLLS_TO_COPY = libs/libpd/libs/mingw64/libwinpthread-1.dll
vs:
# support dynamic loading
ADDON_CFLAGS += -DHAVE_LIBDL
# this assumes 64 bit builds only at this point...
ADDON_DLLS_TO_COPY = libs/libpd/libs/mingw64/libwinpthread-1.dll
android/armeabi:
ADDON_LIBS_EXCLUDE = libs/libpd/libs
# support dynamic loading
ADDON_CFLAGS += -DHAVE_LIBDL -DHAVE_ENDIAN_H
android/armeabi-v7a:
ADDON_LIBS_EXCLUDE = libs/libpd/libs
# support dynamic loading
ADDON_CFLAGS += -DHAVE_LIBDL -DHAVE_ENDIAN_H
osx:
ADDON_LIBS_EXCLUDE = libs/libpd/libs
# support dynamic loading
ADDON_CFLAGS += -DHAVE_LIBDL -DHAVE_MACHINE_ENDIAN_H -D_DARWIN_C_SOURCE -D_DARWIN_UNLIMITED_SELECT
# fix dispatch.h error with macOS SDK 10.13+
ADDON_CPPFLAGS += -DHAVE_UNISTD_H=1
ios:
ADDON_LIBS_EXCLUDE = libs/libpd/libs
# set No common blocks option to avoid duplicate symbols link error
ADDON_CFLAGS += -fcommon -DHAVE_MACHINE_ENDIAN_H -D_DARWIN_C_SOURCE -D_DARWIN_UNLIMITED_SELECT
# fix dispatch.h error with macOS SDK 10.13+
ADDON_CPPFLAGS += -DHAVE_UNISTD_H=1