[Scons-users] how can I assign the name of .def file in a project?

prife goprife at gmail.com
Mon Feb 18 13:38:12 EST 2013


It works. Many thanks!

2013/2/19 Dirk Bächle <tshortik at gmx.de>


> Hi,

>

>

> On 18.02.2013 17:29, prife wrote:

>

>> Hi, I want to build an dll with some functions exported, so I want to use

>> an DEF file to do this work. how can I assign the name of .def file in a

>> project in SCons?

>>

>> I got the following variables in SCons's user guide.

>>

>> WINDOWSDEFPREFIX

>> The prefix used for Windows .def file names.

>> WINDOWSDEFSUFFIX

>> The suffix used for Windows .def file names.

>>

>>

> please don't change these variables. If your DEF file follows the usual

> naming conventions, for example it is named 'mytest.def', you should be

> able to simply add the DEF file to your list of sources:

>

> env = Environment()

> env.SharedLibrary('mytest', Glob('*.cpp') + ['mytest.def'])

>

>

> SCons detects that you added a DEF file (based on the .def suffix of the

> file) and should then do the rest automatically.

>

> Best regards,

>

> Dirk

>

> ______________________________**_________________

> Scons-users mailing list

> Scons-users at scons.org

> http://four.pairlist.net/**mailman/listinfo/scons-users<http://four.pairlist.net/mailman/listinfo/scons-users>

>




--
把有限的时间投入到无限的学习中去
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://four.pairlist.net/pipermail/scons-users/attachments/20130219/9d6be909/attachment.htm>


More information about the Scons-users mailing list