Open johnmurrayvi opened 10 years ago
I agree. However, with build.sh this will not work as expected, as we clean on each build currently. Maybe we should also change that?
That's true... I was thinking it could be implemented as a make rule. Is it really necessary to recompile everything in build.sh for every build? What if there's a conditional that if a new deps or vendor archive is downloaded, then clobber the compile dir?
I think we should make getting dependencies their own step, needed for building. So factoring them out into their own script and maybe enhance them with automatically downloading debug deps, if --enable-debug
is set...
If people want to use build.sh to build (which will do everything if you just want to build nightingale in a fresh clone of the repo), they can.
To make an incremental build instead, you'll only have to do make clobber && make
(which you're already able to, btw)
@freaktechnik: you should be able to just use make
, without clobber imho (which should be quite a lot faster).
@rsjtdrjgfuzkfg actually, that works for me.
I've tried it (it's in the dependencies/Makefile.in), however this would need more than just a check if extraction is needed, as the XULRunner stub (nightingale-bin or nightingale.exe) gets moved out of the xulrunner dir each time.
That's what I ran into when I briefly tried it. I don't know why I didn't think of this then, but what about just changing the move to a copy?
Because dist should be as stripped as possible? Best would probably be to add a variable like INSTALL_XULRUNNER, which is then used to determine all the actions regarding correctly installing XULR to the dir. But I'd have to read further into the makefile in order to find out what exactly would make the most sense.
Yeah that's true. I had figured the extra one could be pruned out before a release, but that's a bad solution. I'm going to ping you on IRC
So wie could stage XULR in compiled, however that adds copying all XULR files to dist.
Yeah, the initial build would take longer, but subsequent ones would be much faster... Anybody have any thoughts, opinions or opposition to this?
Throwing out an idea here.. I've noticed that a significant amount of build time (for me at least) is spent on extracting the xulrunner archive into compiled/dist/xulrunner, particularly for the debug builds. It would seem somewhat sensible to not extract every build, especially once an initial clean compilation has been finished. The most obvious solution I can think of would be to just check if the compiled/dist/xulrunner directory exists, since it's very unlikely that the or its contents would be modified or deleted after the initial build, except for a "make clean".
Any thoughts, ideas, or problems that would make this a bad idea?