{
}
for ( Iterator i = defs.iterator(); i.hasNext(); )
{
LinkerArgument arg = new LinkerArgument();
arg.setValue( "/def:" + i.next() );
linker.addConfiguredLinkerArg( arg );
}
}
// FIXME, this should be done in CPPTasks at some point, and may not be necessary, but was for VS 2010 beta 2
if ( os.equals( OS.WINDOWS ) && getName( null, null ).equals( "msvc" ) && !getVersion().startsWith( "6." ) )
{
LinkerArgument arg = new LinkerArgument();
arg.setValue( "/MANIFEST" );
linker.addConfiguredLinkerArg( arg );
}
// Add options to linker
if ( options != null )
{
for ( Iterator i = options.iterator(); i.hasNext(); )
{
LinkerArgument arg = new LinkerArgument();
arg.setValue( (String) i.next() );
linker.addConfiguredLinkerArg( arg );
}
}
if ( optionSet != null )
{
String[] opts = optionSet.split( "\\s" );
for ( int i = 0; i < opts.length; i++ )
{
LinkerArgument arg = new LinkerArgument();
arg.setValue( opts[i] );
linker.addConfiguredLinkerArg( arg );
}
}
if ( !clearDefaultOptions )
{
String option = NarProperties.getInstance(mojo.getMavenProject()).getProperty( prefix + "options" );
if ( option != null )
{
String[] opt = option.split( " " );
for ( int i = 0; i < opt.length; i++ )
{
LinkerArgument arg = new LinkerArgument();
arg.setValue( opt[i] );
linker.addConfiguredLinkerArg( arg );
}
}
}