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
|
AUTOMAKE_OPTIONS = 1.7
PLATFORM_VERSION = 2.0
INCLUDES = $(PYTHON_INCLUDES) $(GLIB_CFLAGS) -DPY_SSIZE_T_CLEAN
pkgincludedir = $(includedir)/pygtk-$(PLATFORM_VERSION)
pkginclude_HEADERS = pygobject.h
pkgpyexecdir = $(pyexecdir)/gtk-2.0
# gobject python scripts
pygobjectdir = $(pkgpyexecdir)/gobject
pygobject_PYTHON = \
__init__.py \
option.py \
propertyhelper.py
pygobject_LTLIBRARIES = _gobject.la
nodist_pygobject_PYTHON = constants.py
common_ldflags = -module -avoid-version
if PLATFORM_WIN32
common_ldflags += -no-undefined
endif
constants.py: generate-constants$(EXEEXT) constants.py.in
rm -f constants.py
cp $(srcdir)/constants.py.in constants.py
chmod 644 constants.py
$(top_builddir)/gobject/generate-constants$(EXEEXT) >> constants.py
chmod 444 constants.py
generate_constants_CFLAGS = $(GLIB_CFLAGS)
noinst_PROGRAMS = generate-constants
CLEANFILES = constants.py
EXTRA_DIST = constants.py.in
_gobject_la_CFLAGS = $(GLIB_CFLAGS)
_gobject_la_LDFLAGS = $(common_ldflags) -export-symbols-regex init_gobject
_gobject_la_LIBADD = $(GLIB_LIBS) $(FFI_LIBS)
_gobject_la_SOURCES = \
gobjectmodule.c \
pygboxed.c \
pygenum.c \
pygflags.c \
pygobject.c \
pygobject.h \
pygobject-private.h \
pygmaincontext.c \
pygmainloop.c \
pygparamspec.c \
pygpointer.c \
pygiochannel.c \
pygsource.c \
pygtype.c \
pygoptioncontext.c \
pygoptiongroup.c
_gobject_la_DEPENDENCIES = constants.py
if HAVE_LIBFFI
_gobject_la_SOURCES += ffi-marshaller.c ffi-marshaller.h
endif
if PLATFORM_WIN32
_gobject_la_CFLAGS += -DPLATFORM_WIN32
endif
|