Phonon

Alexander Neundorf neundorf at kde.org
Tue May 17 22:33:56 CEST 2011


On Sunday 15 May 2011, Alexander Neundorf wrote:
> On Friday 11 March 2011, Harald Sitter wrote:
> > On Thu, Mar 10, 2011 at 11:23 PM, Ben Cooksley <bcooksley at kde.org> wrote:
> > > Note that if I don't get a reply, I will be reverting commit
> > > 1602df28e8b82aeeecb7cfb3fe1af52790be02d3 to Phonon in 24 hours in
> > > order to restore my ability to build Phonon.
> > 
> > We are working on a revert, just too much a hassle it is..
> 
> Only slightly related...
> 
> there is the branch with improved cmake stuff from Patrick.
> Do you mind if I have a look at what he did and add this one by one to
> master ?
> I.e. I would start with installing a PhononConfig.cmake when Phonon is
> installed, and then go through the plugins one by one and make them find
> that one properly.
> 
> I just tried to build the plugins and failed, some, e.g. WaveOut and MMF
> have a FindPhonon.cmake, but don't set CMAKE_MODULE_PATH, so it is not
> found at all.
> 
> What is the idea with the PHONON_BUILDSYSTEM_DIR variable ?

Ok, found it.

I'd suggest:
*always* make LIB_INSTALL_DIR, INCLUDE_INSTALL_DIR and SHARE_INSTALL_PREFIX 
relative to CMAKE_INSTALL_PREFIX, i.e. not configurable via the cache anymore.

Advantage: easier handling, and especially under Windows the package can be 
installed easily to arbitrary locations.

This would mean that if CMAKE_INSTALL_PREFIX is e.g. /opt/phonon, the headers 
would always bee in /opt/phonon/include, the libs in /opt/phonon/lib[64], 
share in /opt/phonon/share. (currently you can configure these three locations 
to completely independent locations, which I think is not necessary for a 
library like phonon).

I would suggest to install the buildsystem files not into share/phonon-
buildsystem/, but into share/phonon/buildsystem/.
Then also this generated library thingy file which is currently installed 
directly to CMAKE_INSTALL_PREFIX (I think you don't really mean that) could go 
e.g. into share/phonon/. Or maybe lib/phonon/.

There will be a PhononConfig.cmake file, which will be found by 
find_package(), and it will contain all the information about the installed 
phonon, like e.g. the include dir.
It will be placed in lib/cmake/phonon/.
Alternatively it could also go into lib/phonon/cmake/.

What do you think ?
Objections ?

Alex


More information about the Kde-buildsystem mailing list