parsing of the command line
Frederic-Emmanuel PICCA
piccaf at physics.mcgill.ca
Tue Jan 10 11:28:17 CET 2006
Nagy Thomas wrote:
>>Nagy Thomas wrote:
>>
>>
>>
>>>That variable (ARGUMENTS) could not be accessed
>>>
>>>
>>from a
>>
>>
>>>tool (generic.py), but perhaps you have a
>>>
>>>
>>workaround ?
>>
>>
>>For now I add the ARGUMENTS to the config
>>config = {
>> 'modules' : 'generic cppunit',
>> 'builddir' : 'build', # put all object
>>files under 'build/'
>> 'config.h' : 1, # mechanism should be ok
>> 'rpath' : 1, # incomplete
>> 'bootstrap': 1, # incomplete
>> #'colorful' : not
>>os.environ.has_key('NOCOLORS'), # only with
>>scons >= 0.96.91 - now miniscons
>> 'colorful' : 0,
>> 'arguments' : ARGUMENTS
>> }
>>
>>
>
>Clever trick, i did not think about this :)
>
>
>
>>And in configure I do a:
>>
>>I add the arguments to the env with env(...,
>>ARGS=arguments)
>>
>>I know it is not very clean, but It works.
>>
>>
>
>Looks good enough for me.
>
>Regards,
>Thomas
>
>
>
I can propose a patch for this.
Thomas can you look at the other patch I proposed for the generic module:
cleaning the generic module :) thread from 09.01.2006 10:50.
Have a nice day.
More information about the Kde-buildsystem
mailing list