blob: 801b78a8d2b418b9b71ecf17329fd22cef0827dc (
plain)
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
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
|
## Process this file with automake to produce Makefile.in
libgimpui = $(top_builddir)/libgimp/libgimpui-$(GIMP_API_VERSION).la
libgimpconfig = $(top_builddir)/libgimpconfig/libgimpconfig-$(GIMP_API_VERSION).la
libgimpwidgets = $(top_builddir)/libgimpwidgets/libgimpwidgets-$(GIMP_API_VERSION).la
libgimp = $(top_builddir)/libgimp/libgimp-$(GIMP_API_VERSION).la
libgimpcolor = $(top_builddir)/libgimpcolor/libgimpcolor-$(GIMP_API_VERSION).la
libgimpbase = $(top_builddir)/libgimpbase/libgimpbase-$(GIMP_API_VERSION).la
libgimpmath = $(top_builddir)/libgimpmath/libgimpmath-$(GIMP_API_VERSION).la
libgimpthumb = $(top_builddir)/libgimpthumb/libgimpthumb-$(GIMP_API_VERSION).la
SUBDIRS = plug-ins
if PLATFORM_WIN32
no_undefined = -no-undefined
shrext = -shrext .pyd
path_separator = ;
else
path_separator = :
endif
AM_CFLAGS = $(PYGIMP_EXTRA_CFLAGS)
AM_CPPFLAGS = \
-I$(top_srcdir) \
$(PYTHON_INCLUDES) \
$(PYGTK_CFLAGS) \
$(PYCAIRO_CFLAGS) \
$(GTK_CFLAGS) \
$(GEGL_CFLAGS)
pygimpbase = python
pygimpdir = $(gimpplugindir)/$(pygimpbase)
pygimp_LTLIBRARIES = gimp.la _gimpenums.la gimpcolor.la _gimpui.la \
gimpthumb.la
gimp_la_SOURCES = \
gimpmodule.c \
pygimp-item.c \
pygimp-display.c \
pygimp-drawable.c \
pygimp-image.c \
pygimp-parasite.c \
pygimp-pdb.c \
pygimp-tile.c \
pygimp-vectors.c \
pygimp.h \
pygimp-api.h \
pygimp-intl.h \
pygimp-util.h
gimp_la_LDFLAGS = -module -avoid-version $(no_undefined) $(shrext) \
-export-symbols-regex initgimp
gimp_la_LIBADD = \
$(libgimp) \
$(libgimpcolor) \
$(libgimpbase) \
$(libgimpui) \
$(GLIB_LIBS) \
$(GEGL_LIBS) \
$(PYLINK_LIBS) \
$(RT_LIBS)
_gimpenums_la_SOURCES = \
gimpenumsmodule.c
_gimpenums_la_LDFLAGS = -module -avoid-version $(no_undefined) $(shrext) \
-export-symbols-regex init_gimpenums
_gimpenums_la_LIBADD = \
$(libgimp) \
$(libgimpcolor) \
$(libgimpbase) \
$(GLIB_LIBS) \
$(PYLINK_LIBS) \
$(RT_LIBS)
gimpcolor_la_SOURCES = \
gimpcolormodule.c \
pygimp-colors.c \
pygimpcolor.h \
pygimpcolor-api.h
gimpcolor_la_LDFLAGS = -module -avoid-version $(no_undefined) $(shrext) \
-export-symbols-regex initgimpcolor
gimpcolor_la_LIBADD = \
$(libgimpcolor) \
$(GLIB_LIBS) \
$(PYLINK_LIBS)
_gimpui_la_SOURCES = \
gimpuimodule.c \
gimpui.c
_gimpui_la_LDFLAGS = -module -avoid-version $(no_undefined) $(shrext) \
-export-symbols-regex init_gimpui
_gimpui_la_LIBADD = \
$(libgimpui) \
$(libgimpwidgets) \
$(libgimpconfig) \
$(libgimpmath) \
$(libgimp) \
$(libgimpcolor) \
$(libgimpbase) \
$(GTK_LIBS) \
$(PYLINK_LIBS) \
$(RT_LIBS) \
$(INTLLIBS)
gimpthumb_la_SOURCES = \
gimpthumbmodule.c \
gimpthumb.c
gimpthumb_la_LDFLAGS = -module -avoid-version $(no_undefined) $(shrext) \
-export-symbols-regex initgimpthumb
gimpthumb_la_LIBADD = \
$(libgimpthumb) \
$(GDK_PIXBUF_LIBS) \
$(PYLINK_LIBS)
pygimp_PYTHON = \
gimpenums.py \
gimpfu.py \
gimpplugin.py \
gimpshelf.py \
gimpui.py
pygimp_DATA = pygimp-logo.png
codegen_files = \
gimp-types.defs \
gimpcolor-types.defs \
gimpenums-types.defs \
gimpthumb.defs \
gimpthumb.override \
gimpui.defs \
gimpui.override
pyenvdir = $(gimpplugindir)/environ
pyinterpdir = $(gimpplugindir)/interpreters
pyenvfile = $(pyenvdir)/pygimp.env
pyinterpfile = $(pyinterpdir)/pygimp.interp
install-env-file:
$(mkinstalldirs) '$(DESTDIR)$(pyenvdir)'
echo '$(path_separator) PYTHONPATH=$${gimp_plug_in_dir}/$(pygimpbase)' > '$(DESTDIR)$(pyenvfile)'
install-interp-file:
$(mkinstalldirs) '$(DESTDIR)$(pyinterpdir)'
echo 'python=$(PYBIN_PATH)' > '$(DESTDIR)$(pyinterpfile)'
echo 'python2=$(PYBIN_PATH)' >> '$(DESTDIR)$(pyinterpfile)'
echo '/usr/bin/python=$(PYBIN_PATH)' >> '$(DESTDIR)$(pyinterpfile)'
echo ":Python:E::py::`basename $(PYTHON)`:" >> '$(DESTDIR)$(pyinterpfile)'
install-data-local: install-env-file install-interp-file
uninstall-local:
rm -f '$(DESTDIR)$(pyenvfile)' '$(DESTDIR)$(pyinterpfile)'
EXTRA_DIST = \
$(pygimp_DATA) \
$(codegen_files)
gimpui.c: gimpui.defs gimpui.override gimp-types.defs gimpcolor-types.defs gimpenums-types.defs
gimpthumb.c: gimpthumb.defs gimpthumb.override
CLEANFILES = gimpui.c gimpthumb.c
.defs.c:
(cd $(srcdir) \
&& $(PYGTK_CODEGEN) \
--override $*.override \
--register $(PYGTK_DEFSDIR)/gdk-types.defs \
--register $(PYGTK_DEFSDIR)/gtk-types.defs \
--register gimp-types.defs \
--register gimpcolor-types.defs \
--register gimpenums-types.defs \
--prefix $* $*.defs) > gen-$*.c \
&& cp gen-$*.c $*.c \
&& rm -f gen-$*.c
|