Hi Ian,

Unfortunately, your workaround doesn't seem to work. When i add this:

        <arg value="${gtk-sharp.libs}"/>

The gtk-sharp references get added as a string (surrounded with double
quotes). The double quotes prevent mcs from interpreting it correctly:

[csc] Starting '/home/jeroen/built/bin/mono ("/home/jeroen/built/lib/
mono/1.0/mcs.exe" @"/tmp/tmp4d323b31" "-r:/home/jeroen/built/lib/mono/
gtk-sharp/glib-sharp.dll -r:/home/jeroen/built/lib/mono/gtk-sharp/pango-
sharp.dll -r:/home/jeroen/built/lib/mono/gtk-sharp/atk-sharp.dll -r:/
home/jeroen/built/lib/mono/gtk-sharp/gdk-sharp.dll -r:/home/jeroen/
built/lib/mono/gtk-sharp/gtk-sharp.dll  " -r:log4net.dll)' in '/home/
jeroen/Projects/monodevelop/src/Plugins/Node'

error CS0006: Cannot find assembly `/home/jeroen/built/lib/mono/gtk-
sharp/glib-sharp.dll -r:/home/jeroen/built/lib/mono/gtk-sharp/pango-
sharp.dll -r:/home/jeroen/built/lib/mono/gtk-sharp/atk-sharp.dll -r:/
home/jeroen/built/lib/mono/gtk-sharp/gdk-sharp.dll -r:/home/jeroen/
built/lib/mono/gtk-sharp/gtk-sharp.dll  '

If i remove the quotes around the pkg-config statement, mcs works fine.

Any ideas how to fix this?

Thanks,

Jeroen

On Fri, 2004-06-25 at 15:02 +0900, Ian MacLean wrote:
> >I'm trying to write a nant buildfile for a Mono application which uses
> >Gtk#. I'm already using the pkg-config functions in nant to check for
> >the package and to get the link flags (pkg-config --libs gtk-sharp).
> >
> >However, when i try to use that result to pass it along in a <csc> task,
> >it won't work since the link flags already contain the "-r:" parameter
> >which nant wants to add by itself. Here's the task i currently have:
> >
> ><property name="gtk-sharp.libs" value="${pkg-config::get-link-flags
> >('gtk-sharp')}"/>
> >
> ><csc target="library" output="${plugin.dir}/node.dll" debug="${build.
> >debug}">
> >            <sources>
> >                <include name="*.cs"/>
> >            </sources>
> >            <references basedir="${build.dir}">
> >                <include name="bin/monodevelop.exe"/>
> >                <include name="${gtk-sharp.libs}/>
> >            </references>
> >        </csc>
> >
> >This is what pkg-config returns:
> >
> >[EMAIL PROTECTED] generated]$ pkg-config --libs gtk-sharp
> >-r:/home/jeroen/built/lib/mono/gtk-sharp/glib-sharp.dll -r:/home/jeroen/
> >built/lib/mono/gtk-sharp/pango-sharp.dll -r:/home/jeroen/built/lib/mono/
> >gtk-sharp/atk-sharp.dll -r:/home/jeroen/built/lib/mono/gtk-sharp/gdk-
> >sharp.dll -r:/home/jeroen/built/lib/mono/gtk-sharp/gtk-sharp.dll
> >
> >So am i using nant correctly here and is this a bug i'm encountering? If
> >so, can this be fixed soon or is there a workaround?
> >
> >  
> >
> the workaround is to use an <arg> child element to pass the 
> gtk-sharp.libs and don't add it to the references fileset.
> 
> Ian
> 
> 
> 
> -------------------------------------------------------
> This SF.Net email sponsored by Black Hat Briefings & Training.
> Attend Black Hat Briefings & Training, Las Vegas July 24-29 - 
> digital self defense, top technical experts, no vendor pitches, 
> unmatched networking opportunities. Visit www.blackhat.com
> _______________________________________________
> Nant-users mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/nant-users
> 



-------------------------------------------------------
This SF.Net email sponsored by Black Hat Briefings & Training.
Attend Black Hat Briefings & Training, Las Vegas July 24-29 - 
digital self defense, top technical experts, no vendor pitches, 
unmatched networking opportunities. Visit www.blackhat.com
_______________________________________________
Nant-users mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/nant-users

Reply via email to