KDE/kdelibs/bksys

Ralf Habacker ralf.habacker at freenet.de
Sat Oct 15 15:25:49 CEST 2005


Am Samstag, 15. Oktober 2005 12:24 schrieb David Faure:
> SVN commit 470807 by dfaure:
>
> It was taking the unix detect_lowlevel instead of the osx one, because
> another module before (compiler.py) had put the unix path first. I think we
> need to either: * append platform-specific paths only once and for all in
> generic.py (but then osx needs to always duplicate the unix files... not
> good; 

what about defining a component related list in generic.py, which defines the 
required module pathes. 

	root='bksys'+os.sep
        if sys.platform == 'darwin':
			modules_path['lowlevel'] = root+'osx'		
			modules_path['compiler'] = root+'osx'		
			modules_path['qt4'] = root+'unix'		
			modules_path['kde4'] = root+'osx'		
         elif env['WINDOWS']:
			modules_path['lowlevel'] = root+'win32'		
			modules_path['compiler'] = root+'win32'		
			modules_path['qt4'] = root+'win32'		
			modules_path['kde4'] = root+'win32'		
..
....

                       sys.path.insert(0,modules_path['lowlevel'])
                        from detect_lowlevel import detect

Regards
 Ralf 


More information about the Kde-buildsystem mailing list