The python bindings would not build when a separate build directory (VPATH) was used. This patch should fix it.

Jiri.


>From c5336abee1f0f2e336ecd4a9637c873a321ec6f2 Mon Sep 17 00:00:00 2001
From: Jiri Gaisler <j...@gaisler.se>
Date: Wed, 21 Mar 2018 17:35:57 +0100
Subject: [PATCH] Allow python bindings to be built using VPATH.

	* bindings/python/setup.py.in: add necessary paths to allow building in
	  a separate build directory.
---
 urjtag/bindings/python/setup.py.in | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/urjtag/bindings/python/setup.py.in b/urjtag/bindings/python/setup.py.in
index 2babf7c..0b04956 100644
--- a/urjtag/bindings/python/setup.py.in
+++ b/urjtag/bindings/python/setup.py.in
@@ -5,9 +5,9 @@ setup(name="urjtag",
       version="1.0",
       description="urJtag Python Bindings",
       ext_modules=[
-        Extension("urjtag", ["chain.c", "register.c"],
+        Extension("urjtag", ["@srcdir@/chain.c", "@srcdir@/register.c"],
                   define_macros=[('HAVE_CONFIG_H', None)],
-                  include_dirs=['@top_srcdir@', '@top_srcdir@/include'],
+                  include_dirs=['@top_srcdir@', '@top_srcdir@/include', '@top_builddir@'],
                   library_dirs=['@top_builddir@/src/.libs'],
                   libraries=['urjtag'])
          ])
-- 
2.7.4

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
UrJTAG-development mailing list
UrJTAG-development@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/urjtag-development

Reply via email to