From 9b758508df283a533a4cfc605545a35f77bc9d5f Mon Sep 17 00:00:00 2001 From: Tavian Barnes Date: Mon, 13 Jun 2011 00:16:27 -0600 Subject: Use Cython for the Python module. --- libdimension-python/Makefile.am | 29 ++++++++--------------------- 1 file changed, 8 insertions(+), 21 deletions(-) (limited to 'libdimension-python/Makefile.am') diff --git a/libdimension-python/Makefile.am b/libdimension-python/Makefile.am index 9919a1a..c1f5274 100644 --- a/libdimension-python/Makefile.am +++ b/libdimension-python/Makefile.am @@ -1,5 +1,5 @@ ########################################################################### -## Copyright (C) 2009-2011 Tavian Barnes ## +## Copyright (C) 2011 Tavian Barnes ## ## ## ## This file is part of The Dimension Build Suite. ## ## ## @@ -25,26 +25,13 @@ INCLUDES = -I$(top_srcdir)/libdimension AM_CFLAGS = $(Python_CFLAGS) AM_LDFLAGS = $(Python_LDFLAGS) +dimension.c: dimension.pyx dimension.pxd + cython --line-directives dimension.pyx + pyexec_LTLIBRARIES = dimension.la -dimension_la_SOURCES = Camera.c \ - Camera.h \ - Canvas.c \ - Canvas.h \ - Color.c \ - Color.h \ - Matrix.c \ - Matrix.h \ - Object.c \ - Object.h \ - PerspectiveCamera.c \ - PerspectiveCamera.h \ - Scene.c \ - Scene.h \ - Sphere.c \ - Sphere.h \ - Vector.c \ - Vector.h \ - dimension.c \ - dimension-python.h +dimension_la_SOURCES = dimension.c dimension_la_LDFLAGS = -avoid-version -module dimension_la_LIBADD = $(top_builddir)/libdimension/libdimension.la + +EXTRA_DIST = dimension.pyx \ + dimension.pxd -- cgit v1.2.3