[svn] commit: r606 - /branches/parkinglot/Makefile.am
BIND 10 source code commits
bind10-changes at lists.isc.org
Thu Jan 28 23:41:58 UTC 2010
Author: jelte
Date: Thu Jan 28 23:41:57 2010
New Revision: 606
Log:
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:
C++:
In your Makefile.am, change
AM_CPPFLAGS = -I$(top_srcdir)/src/lib
to
AM_CPPFLAGS = -I$(top_builddir)/include
and remove all /cpp parts from the relevant include statements
Python:
change your startup script .in file to have PYTHONPATH=@top_builddir@/pyshared instead of the paths with the /python at the end.
Modified:
branches/parkinglot/Makefile.am
Modified: branches/parkinglot/Makefile.am
==============================================================================
--- branches/parkinglot/Makefile.am (original)
+++ branches/parkinglot/Makefile.am Thu Jan 28 23:41:57 2010
@@ -30,3 +30,28 @@
coverage: clean-coverage perform-coverage report-coverage
+pyshared:
+ 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
+
+include:
+ 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
+clean-local:
+ rm pyshared/isc/config
+ rm pyshared/isc/cc
+ rmdir pyshared/isc
+ rmdir pyshared
+ rm include/cc
+ rm include/config
+ rm include/dns
+ rmdir include
More information about the bind10-changes
mailing list