aboutsummaryrefslogtreecommitdiff
path: root/paludis/Makefile.am.m4
diff options
context:
space:
mode:
Diffstat (limited to 'paludis/Makefile.am.m4')
-rw-r--r--paludis/Makefile.am.m416
1 files changed, 15 insertions, 1 deletions
diff --git a/paludis/Makefile.am.m4 b/paludis/Makefile.am.m4
index b8dcd71f1..685ab4051 100644
--- a/paludis/Makefile.am.m4
+++ b/paludis/Makefile.am.m4
@@ -77,7 +77,8 @@ DEFS= \
-DSYSCONFDIR=\"$(sysconfdir)\" \
-DLIBEXECDIR=\"$(libexecdir)\" \
-DDATADIR=\"$(datadir)\" \
- -DLIBDIR=\"$(libdir)\"
+ -DLIBDIR=\"$(libdir)\" \
+ -DPYTHONINSTALLDIR=\"$(PYTHON_INSTALL_DIR)\"
EXTRA_DIST = about.hh.in Makefile.am.m4 paludis.hh.m4 files.m4 \
testscriptlist srlist srcleanlist selist secleanlist \
repository_blacklist.txt hooker.bash
@@ -87,6 +88,10 @@ BUILT_SOURCES = srcleanlist secleanlist
libpaludis_la_SOURCES = filelist
libpaludis_la_LDFLAGS = -version-info @VERSION_LIB_CURRENT@:@VERSION_LIB_REVISION@:0 $(PTHREAD_LIBS)
+libpaludispythonhooks_la_SOURCES = python_hooks.cc
+libpaludispythonhooks_la_CXXFLAGS = $(AM_CXXFLAGS) -I@PYTHON_INCLUDE_DIR@
+libpaludispythonhooks_la_LDFLAGS = -version-info @VERSION_LIB_CURRENT@:@VERSION_LIB_REVISION@:0 @BOOST_PYTHON_LIB@ -lpython@PYTHON_VERSION@
+
libpaludismanpagethings_la_SOURCES = name.cc
libpaludissohooks_TEST_la_SOURCES = sohooks_TEST.cc
@@ -125,8 +130,13 @@ else
lib_LTLIBRARIES = libpaludis.la
noinst_LTLIBRARIES = libpaludismanpagethings.la
+if ENABLE_PYTHON
+lib_LTLIBRARIES += libpaludispythonhooks.la
+endif
+
endif
+
paludis_includedir = $(includedir)/paludis-$(PALUDIS_PC_SLOT)/paludis/
paludis_include_HEADERS = headerlist srheaderlist seheaderlist
@@ -157,5 +167,9 @@ TESTS_ENVIRONMENT = env \
PALUDIS_REPOSITORY_SO_DIR="$(top_builddir)/paludis/repositories" \
TEST_SCRIPT_DIR="$(srcdir)/" \
SO_SUFFIX=@VERSION_LIB_CURRENT@ \
+ PYTHONPATH="$(top_builddir)/python/" \
+ PALUDIS_PYTHON_DIR="$(top_srcdir)/python/" \
+ LD_LIBRARY_PATH="`echo $$LD_LIBRARY_PATH: | sed -e 's,^:,,'`` \
+ $(top_srcdir)/paludis/repositories/e/ebuild/utils/canonicalise $(top_builddir)/paludis/.libs/`" \
bash $(top_srcdir)/test/run_test.sh