[Premake-users] Premake updates to allow complicated directory structures and 'links' fixed.
On GitHub now!
Brought to you by:
starkos,
ttk-bandit
From: Ryan P. <rpu...@gm...> - 2007-01-09 19:13:35
|
Hi Jason and group, I have made the Code::Blocks and GNU target updates to allow for complex directory structures. Now there is a problem because the patch is not small and I know it is hard to analyze patches when they are to big, so I was wondering if you would still be willing to accept the patch if I explain the changes. If not I will have to spend a few hours to split the patch apart. Some notes about the changes: - It now can include the directory and add the library to the linker settings all by using the 'links'. You still have to add the directory to the compiler settings because I don't think that all directories should always be searched by the compiler unless the developer actually wants it. - It now only links to the library name. This is a requirement because if you are in Linux the EXACT path to the shared library is written to the library and lakes it impossible to move the created library around. We use a linker setting to put all the shared libraries in a 'lib' directory next to the executable. It makes situations like this impossible when you use the whole path. - Added a new 'path_absolute_with_base()' that takes a starting path. This makes the complex directory structure and including the right relative paths possible. 'path_absolute()' now calls it with the current working directory. - Removed the LDDEPS creation. As far as I can tell it is redundant and not needed. Plus it would be VERY difficult to get working because you need targets defined with the same name used in the LDDEPS and that gets really hairy when they are already defined in the top level "Makefile" and then you have to define them for each 'links' item. Those are the major points. It is working great and you can look at the projects source here: SVN Repository: https://wxformbuilder.svn.sourceforge.net/svnroot/wxformbuilder/3.x/trunk/ ViewCVS: http://wxformbuilder.svn.sourceforge.net/viewvc/wxformbuilder/3.x/trunk/ Premake is a great tool and this makes it be able to create correct project files no matter the projects complexity and amount of extra libraries. wxWidgets here we come! -- Regards, Ryan RJP Computing |