Date: prev next · Thread: first prev next last
2013 Archives by date, by thread · List index


On 23/04/13 00:09, Bjoern Michaelsen wrote:
Hi,

On Mon, Apr 22, 2013 at 09:56:17PM +0200, Michael Stahl wrote:
the only thing the abstractions do here is get in the way.

I dont quite see how the abstractions play a role for the impact on complexity
here. You can even play this without the abstractions in gbuild:

Instead of using the gb_LinkTarget__use_foo voodoo in RepositoryExternal.mk
(your creation btw ;) ) you _could_ make a long spaghetti-code list of
ifeq($(OS),foo)s and hardcoded gb_Library_set_ldflags directly in the
Library_bar.mk that is linking against the external essentially ridding
yourself of all the abstraction.

you are missing the point entirely.  those abstractions are of course
very valuable (that's why i've implemented them :) and not what i'm
talking about.

what i mean that in order to make all the fancy abstractions in gbuild
work, when you write a makefile for an external library itself (i.e.
ExternalProject and UnpackedTarball) you have to be careful not to do
things that break the abstractions such as trample on the global
namespace, or mess with files that are not integrated in the global
dependency graph, which makes ExternalProject files more difficult to
write than the rather free-form dmake equivalents which often liberally
set "LDFLAGS" etc. variables and exported them.


Context


Privacy Policy | Impressum (Legal Info) | Copyright information: Unless otherwise specified, all text and images on this website are licensed under the Creative Commons Attribution-Share Alike 3.0 License. This does not include the source code of LibreOffice, which is licensed under the Mozilla Public License (MPLv2). "LibreOffice" and "The Document Foundation" are registered trademarks of their corresponding registered owners or are in actual use as trademarks in one or more countries. Their respective logos and icons are also subject to international copyright laws. Use thereof is explained in our trademark policy.