forked from mypaint/libmypaint
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile.am
160 lines (131 loc) · 4.2 KB
/
Makefile.am
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
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
ACLOCAL_AMFLAGS = -I m4macros
if WITH_GLIB
libmypaint_glib = glib/mypaint-brush.h
endif
## GObject introspection ##
-include $(INTROSPECTION_MAKEFILE)
INTROSPECTION_GIRS =
INTROSPECTION_SCANNER_ARGS = \
--warn-all \
--pkg="glib-2.0" \
--namespace="MyPaint" \
--nsversion="$(LIBMYPAINT_API_PLATFORM_VERSION)" \
--identifier-prefix="MyPaint" \
--symbol-prefix="mypaint_" \
--add-include-path="$(srcdir)" \
--add-include-path="`$(PKG_CONFIG) --define-variable=datadir="$(datadir)" --variable=girdir gobject-introspection-1.0`"
INTROSPECTION_COMPILER_ARGS = \
--includedir="$(srcdir)" \
--includedir="`$(PKG_CONFIG) --define-variable=datadir="$(datadir)" --variable=girdir gobject-introspection-1.0`"
INTROSPECTION_SCANNER_ENV = CFLAGS="$(CFLAGS)" LDFLAGS="$(LDFLAGS) @LIBS@" CPPFLAGS="$(CPPFLAGS) -I$(srcdir)" CXXFLAGS="$(CXXFLAGS)"
MyPaint_introspectable_headers = \
mypaint-brush.h \
mypaint-brush-settings.h \
mypaint-brush-settings-gen.h \
mypaint-fixed-tiled-surface.h \
mypaint-rectangle.h \
mypaint-surface.h \
mypaint-tiled-surface.h \
fastapprox/fastpow.h \
fastapprox/sse.h \
fastapprox/fastexp.h \
fastapprox/cast.h \
fastapprox/fastlog.h \
$(libmypaint_glib)
if HAVE_INTROSPECTION
introspection_sources = \
$(MyPaint_introspectable_headers) \
brushmodes.c \
libmypaint.c \
mypaint-brush-settings.c \
mypaint-rectangle.c \
operationqueue.c \
utils.c \
fifo.c \
mypaint-mapping.c \
mypaint.c \
mypaint-surface.c \
rng-double.c \
helpers.c \
mypaint-brush.c \
mypaint-fixed-tiled-surface.c \
mypaint-tiled-surface.c \
tilemap.c
# CAUTION: some of these need to use the underscored API version string.
MyPaint-@[email protected]: libmypaint-@[email protected] Makefile
MyPaint_@LIBMYPAINT_API_PLATFORM_VERSION_UL@_gir_INCLUDES = GObject-2.0 GLib-2.0
MyPaint_@LIBMYPAINT_API_PLATFORM_VERSION_UL@_gir_CFLAGS = $(AM_CFLAGS) $(AM_CPPFLAGS)
MyPaint_@LIBMYPAINT_API_PLATFORM_VERSION_UL@_gir_LIBS = libmypaint-@[email protected]
MyPaint_@LIBMYPAINT_API_PLATFORM_VERSION_UL@_gir_FILES = $(introspection_sources)
INTROSPECTION_GIRS += MyPaint-@[email protected]
girdir = $(datadir)/gir-1.0
gir_DATA = $(INTROSPECTION_GIRS)
typelibdir = $(libdir)/girepository-1.0
typelib_DATA = $(INTROSPECTION_GIRS:.gir=.typelib)
CLEANFILES = $(gir_DATA) $(typelib_DATA)
endif # HAVE_INTROSPECTION
## pkg-config file ##
pkgconfigdir = $(libdir)/pkgconfig
pkgconfig_DATA = libmypaint-@[email protected]
## libmypaint-@LIBMYPAINT_API_PLATFORM_VERSION@ ##
AM_CFLAGS = $(JSON_CFLAGS) $(GLIB_CFLAGS)
LIBS = $(JSON_LIBS) $(GLIB_LIBS) @LIBS@
lib_LTLIBRARIES = libmypaint-@[email protected]
libmypaint_@LIBMYPAINT_API_PLATFORM_VERSION@_la_LDFLAGS = \
-version-info @LIBMYPAINT_ABI_VERSION_INFO@ \
-no-undefined
# -release @LIBMYPAINT_API_PLATFORM_VERSION@
libmypaint_publicdir = $(includedir)/libmypaint-$(LIBMYPAINT_API_PLATFORM_VERSION)
nobase_libmypaint_public_HEADERS = \
mypaint-config.h \
mypaint-glib-compat.h \
mypaint-mapping.h \
$(MyPaint_introspectable_headers)
LIBMYPAINT_SOURCES = \
brushmodes.c \
config.h \
fifo.c \
helpers.c \
mypaint-mapping.c \
mypaint.c \
mypaint.h \
mypaint-brush.c \
mypaint-brush-settings.c \
mypaint-fixed-tiled-surface.c \
mypaint-rectangle.c \
mypaint-surface.c \
mypaint-tiled-surface.c \
operationqueue.c \
rng-double.c \
tilemap.c \
utils.c
libmypaint_@LIBMYPAINT_API_PLATFORM_VERSION@_la_SOURCES = $(libmypaint_public_HEADERS) $(LIBMYPAINT_SOURCES)
DISTCLEANFILES = MyPaint-@[email protected]
EXTRA_DIST = \
brushsettings.json \
brushsettings-gen.h \
mypaint-brush-settings-gen.h \
COPYING \
README.md \
CONTRIBUTING.md \
CODE_OF_CONDUCT.md \
brushmodes.h \
fifo.h \
generate.py \
helpers.h \
libmypaint.c \
operationqueue.h \
rng-double.h \
tiled-surface-private.h \
tilemap.h \
utils.h \
glib/mypaint-brush.c
if HAVE_I18N
PODIRS = po
endif
SUBDIRS = \
. \
doc \
gegl \
tests \
$(PODIRS)