[Scons-users] need assistance on 3rd-party scons file
William Johnston
williamj at tenbase2.com
Mon Oct 8 10:55:15 EDT 2012
Hello,
I’ve made some progress. Albeit, not “consistent” progress.
I am NOT able to print the $TARGET or $SOURCE variables consistently.
Here is my python code:
def build(target, source, env):
for item in target:
print 'target: ' + str(item) + '\n'
for item in source:
print 'source: ' + str(item) + '\n'
return None
clone.Command(wrapper, swig_deps, [build, Mkdir(srcdir), swig_cmd])
However, the files are NOT printed when adding a previous debug statement:
print '\nswig_cmd = [' + swig_cmd + ']\n'
Even using the original code file, nothing is now printed from the build function?!?!
Does anyone know how to properly print the $TARGET and $SOURCE variables?
Thanks,
William Johnston
From: Bill Deegan
Sent: Monday, October 01, 2012 5:40 PM
To: SCons users mailing list
Subject: ****SPAM**** Re: [Scons-users] ****SPAM**** Re: need assistance on 3rd-partyscons file
William,
On Mon, Oct 1, 2012 at 5:53 AM, William Johnston <williamj at tenbase2.com> wrote:
Mr. Deegan:
I modified the scons file in two ways.
1. Changed the wrapper statement on line 23 to
wrapper = clone.File(name + '_wrap.cs')
2. Removed the c++ option for the swig command-line args (on line 45) to
swig_cmd = 'swig %s -o "$TARGET" -c++ -csharp -Wall -namespace sml -dllimport %s -outdir "%s" "$SOURCE"' % (incs, name, srcdir)
Again, the source files are both native C++ and C#. I need to create a C# .NET dll.
Do you know what the “$TARGET” and “$SOURCE” variables are?
The TARGET and SOURCE variables are dynamically generated by SCons to be the source and targets for each command.
Have you read the users guide and manpage yet?
-Bill
Attached is the file.
Thank you.
Sincerely,
William Johnston
From: William Deegan
Sent: Friday, September 28, 2012 12:26 PM
To: SCons users mailing list
Subject: ****SPAM**** Re: [Scons-users] need assistance on 3rd-party scons file
William,
On Sep 28, 2012, at 7:50 AM, William Johnston <williamj at tenbase2.com> wrote:
Hello,
Would you please take a look at the attached scons file?
It creates a native C++ dll, and I would like to create a C# .NET dll.
Could anyone advise me on how to do this?
I tried a few hacks, but could not get the project to build.
Can you be more explicit about what the problem is and what you've tried thus far?
Perhaps with some code snippets and output?
-Bill
------------------------------------------------------------------------------
_______________________________________________
Scons-users mailing list
Scons-users at scons.org
http://four.pairlist.net/mailman/listinfo/scons-users
_______________________________________________
Scons-users mailing list
Scons-users at scons.org
http://four.pairlist.net/mailman/listinfo/scons-users
--------------------------------------------------------------------------------
_______________________________________________
Scons-users mailing list
Scons-users at scons.org
http://four.pairlist.net/mailman/listinfo/scons-users
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://four.pairlist.net/pipermail/scons-users/attachments/20121008/6a45596c/attachment.html>
More information about the Scons-users
mailing list