Re: Coding period - 1st week progress
James Aylett <[email protected]>
| Newsgroups | gmane.comp.search.xapian.devel |
|---|---|
| Message-ID | <[email protected]> |
On Thu, Jun 02, 2016 at 01:32:16PM +0530, Richhiey Thomas wrote: > I've updated my project timeline till the mid-term evaluation up on > https://trac.xapian.org/wiki/GSoC2016/Clustering That's great -- can you also please remember to update your journal, which is an important part of evaluating how you're doing. (Both for you and for the mentors!) > I have made two files named cluster.cc and cluster.h. cluster.h is placed > in xapian-core/include/ and cluster.cc is placed in xapian-core/cluster. > The problem I am facing is, I cannot figure out how place this in the > makefile and build it to test the code that ive written. Could anyone > please help me out with this? In order for someone to help you, it'd probably be helpful if you committed your changes to a branch and pushed up to github. You also should fill out the REPO LINK on trac so people can find it easily. Broadly speaking, to add a new subdirectory to the xapian-core build (which is what you're doing) you need to add an `include <dir>/Makefile.mk` line to xapian-core/Makefile.am, and also add the `Makefile.mk`; the one in `xapian-core/weight` should give you a good idea of how to tackle this. If you haven't already, please note that you'll probably want to use PIMPL for some of the API classes, which probably means internal headers (in `xapian-core/cluster`) that are in the `noinst_HEADERS` list. (Again, `xapian-core/weight` has an example of this.) J -- James Aylett, occasional trouble-maker xapian.org