[mythtv-commits] Ticket #1295: Patch to allow seperate build directory

MythTV mythtv at cvs.mythtv.org
Wed Feb 15 20:26:52 UTC 2006


#1295: Patch to allow seperate build directory
---------------------+------------------------------------------------------
 Reporter:  Dibblah  |       Owner:  ijr    
     Type:  patch    |      Status:  new    
 Priority:  trivial  |   Milestone:  unknown
Component:  mythtv   |     Version:  head   
 Severity:  low      |  
---------------------+------------------------------------------------------
 This patch allows the following to work:

 {{{
 mkdir ~/mythbuild
 cd ~/mythbuild
 /usr/src/mythtv/configure
 make
 make install
 }}}

 - the source directory is completely seperated from the build directory.
 The source directory is not modified during the build.

 It's fairly hacky, but consistently so:

 qmake, when it include ( )s a file, changes into the directory of that
 file first. This means that it's not possible to easily centralise these
 changes.

 Headers do not seem to get pulled in from the VPATH if they're located
 away from the current build directory - Hence the modifications to the
 INCLUDEPATHs.

 A couple of #include "mythconfig.h" needed changed to #include "config.h"
 to make picking up the configuration from the build directory easier.

 If you are compiling in the same directory as the source, this change has
 no effect at all.

 It has only been tested on x86. I can't see how it'd break other
 architectures, but it is probably worth mentioning.

-- 
Ticket URL: <http://svn.mythtv.org/trac/ticket/1295>
MythTV <http://www.mythtv.org/>
MythTV


More information about the mythtv-commits mailing list