Break out the share DLLs out of Spring.exe and Unitsync

Break out the share DLLs out of Spring.exe and Unitsync

Requests for features in the spring code.

Moderator: Moderators

Post Reply
tberthel
Posts: 59
Joined: 12 Jan 2008, 06:17

Break out the share DLLs out of Spring.exe and Unitsync

Post by tberthel »

Lua
7zip
miniZip
hpiutil2

They are shared by spring.exe and unitsync, but they both have them inside. So it would save space, ease development, and help my LuaJava push.

If you want to give me repo access to do this I would do Lua and the others shortly after.
Auswaschbar
Spring Developer
Posts: 1254
Joined: 24 Jun 2007, 08:34

Re: Break out the share DLLs out of Spring.exe and Unitsync

Post by Auswaschbar »

You can easily do this using cmake:
1. goto trunk/rts/lib
2. open CMakeLists.txt
3. replace "STATIC" with "SHARED"
4. build
5. ...
5. have both spring and unitsync built using shared libraries Lua, Luabind, Streflop, Minizip, hpiutil2 and 7zip
tberthel
Posts: 59
Joined: 12 Jan 2008, 06:17

Re: Break out the share DLLs out of Spring.exe and Unitsync

Post by tberthel »

CMake build has never worked for me. I have only had working builds with scons. I have built also with VC8, but spring does not work under that build.

So my only attempt will be with scons since that is the only working build.
Auswaschbar
Spring Developer
Posts: 1254
Joined: 24 Jun 2007, 08:34

Re: Break out the share DLLs out of Spring.exe and Unitsync

Post by Auswaschbar »

tberthel wrote:CMake build has never worked for me. I have only had working builds with scons. I have built also with VC8, but spring does not work under that build.

So my only attempt will be with scons since that is the only working build.
What are the errors?
tberthel
Posts: 59
Joined: 12 Jan 2008, 06:17

Re: Break out the share DLLs out of Spring.exe and Unitsync

Post by tberthel »

CMake does not want to include the .cmake scripts in the configuration process. So it errors out on missing boost. I used the CMAKE_MODULE_PATH and other configurations attempts without success to recognize or use the .cmake files in the cmake build directory. I am using the latest CMake 2.6.0.

Note: My build process for most projects is clicking on build in a IDE menu. I use Ant and even Maven, but not Makefiles for like a decade.
Post Reply

Return to “Feature Requests”