Hi,

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?

Thanks,

Jeroen Zwartepoorte



-------------------------------------------------------
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