| There are good reasons why the different wrapper module filenames cannot be the same (indeed, they used to be the same, but it didn't work).
1. Both Python and Lua have strict naming requirements for wrapper modules -- but the naming requirements are not the same;
therefore, the Python and Lua wrappers simply can't go into the same file.
2. Some people want wrappers for one language, other people want wrappers for another language.
Under these circumstances, it is easier to maintain the build by separating the modules.
3. In some of the builds (e.g. Microsoft Visual Studio) code using the standard C++ library cannot be exported;
in those builds, libraries using the standard C++ library must be static libraries (e.g. csnd, CsoundAC).
4. So, I have factored out the build into the following logical layers:
+---------------------+--------------------+-------------------+
| SWIG Python module | SWIG Java module | SWIG Lua module |
+---------------------+--------------------+-------------------+
| csnd library (static in some builds, shared in other builds) |
+--------------------------------------------------------------+
| Csound API shared library |
+--------------------------------------------------------------+
Hope this helps,
Mike
-----Original Message-----
>From: Felipe Sateler
>Sent: Jun 15, 2008 12:05 PM
>To: Developer discussions
>Subject: Re: [Cs-dev] pyMsgCb.cpp and pyMsgCb_stub.cpp
>
>Hello, anyone?
>
>El 15/06/08 12:05 Felipe Sateler escribió:
>> Why are this two versions needed? The second one is used for the Java
>> module, while the first is used for the rest of the wrappers. Why can't the
>> Java module use the same one? I'm trying to separate all modules, and this
>> means that all common code should go into a shared library. This, of
>> course, should include pyMsgCb.cpp
>
>
>
>--
>Saludos,
>Felipe Sateler
-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists |