Uh oh!
There was an error while loading. Please reload this page.
build: automatically generate list of library_files - #3506
build: automatically generate list of library_files#3506chrisdickinson wants to merge 2 commits into
Conversation
There was a problem hiding this comment.
Let us say that my editor creates a temporary file, then if I run ./configure, it will include that as well. Probably, we need to filter out the files which end with .js.
There was a problem hiding this comment.
This should be addressed now. Good catch!
bnoordhuis
commented
Oct 25, 2015
I don't really see the point. If you forget to add a new file, you'll find out soon enough because tests will start failing. Similarly, when you forget to remove a deleted file from the list, the build will fail at the j2sc step. |
chrisdickinson
commented
Oct 25, 2015
I'm mostly scratching an itch, here — the extra step of making sure the file was present in the gypfile is easy to forget (until you recompile and test), wasn't obvious when I was a newcomer, and presents a human-monitored style rule in PRs (I recall there was a comment about putting the files in the correct alphabetical order in the gypfile at some point?) It's definitely not a huge change, but I've run into it enough that I wanted to smooth this corner. |
jbergstroem
commented
Oct 25, 2015
I'm -0 to this PR but there's a pretty convincing argument regarding where to look/edit if you're actually adding a file to |
jasnell
commented
Oct 26, 2015
LGTM, but I'm +0.1 on whether it's needed ;-) |
rvagg
commented
Oct 28, 2015
heh, +0.1 for me too, that gets us to +0.2, lgtm |
Fishrock123
commented
Nov 5, 2015
Uh, what's the reason to not do this programatically? SGTM? (I don't want to sign off because python tho) |
Trott
commented
Feb 28, 2016
@chrisdickinson Is this something you still want? Or would you be inclined to close this? (I have no opinion either way, just trying to tidy up inactive PRs a bit.) |
jasnell
commented
Apr 18, 2016
ping @chrisdickinson |
jbergstroem
commented
May 3, 2016
@Fishrock123 the counter argument would be that we're introducing an additional layer which down the road could be more error prone than just editing the file. Another (far fetched) argument would be that |
Fishrock123
commented
May 3, 2016
Meh. The build will just fail if you don't edit it anyways. let's close unless someone wants to pick it up. |
Automatically generate the list of library_files by using Python's
os.walkso we don't have to remember to specify new files (or remember to remove old ones.)Example output: