Commit aadbb808 authored by Jelte Jansen's avatar Jelte Jansen
Browse files

Proposal for the symlink include and pythonpath to get around the sourcetree layout we chose.

The reason is so that we can omit /cpp/ from #include statements, and that
we can have common base names for python modules (like isc) from different directories.

This extension creates, in the build directory, two directories that contain symlinks. The relevant symlinks are made one by one, as i haven't thought of a way to derive that information automatically. If we add a directory that contains stuff another part depends on, we'll need to add it here.

It currently is not used by the python scripts and cpp makefiles. To do so do the following:


In your, change 
AM_CPPFLAGS = -I$(top_srcdir)/src/lib
AM_CPPFLAGS = -I$(top_builddir)/include

and remove all /cpp parts from the relevant include statements


change your startup script .in file to have PYTHONPATH=@top_builddir@/pyshared instead of the paths with the /python at the end.

git-svn-id: svn:// e5f2f494-b856-4b98-b285-d166d9295462
parent 85f3b0c5
......@@ -30,3 +30,28 @@ report-coverage:
coverage: clean-coverage perform-coverage report-coverage
mkdir pyshared
mkdir pyshared/isc
ln -s ${abs_top_srcdir}/src/lib/config/python/isc/config pyshared/isc/config
ln -s ${abs_top_srcdir}/src/lib/cc/python/ISC/CC pyshared/isc/cc
mkdir include
ln -s ${abs_top_srcdir}/src/lib/cc/cpp include/cc
ln -s ${abs_top_srcdir}/src/lib/config/cpp include/config
ln -s ${abs_top_srcdir}/src/lib/dns/cpp include/dns
stree_symlinks: pyshared include
.PHONY: stree_symlinks
all: stree_symlinks
rm pyshared/isc/config
rm pyshared/isc/cc
rmdir pyshared/isc
rmdir pyshared
rm include/cc
rm include/config
rm include/dns
rmdir include
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment