You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Aug 8, 2023. It is now read-only.
Repository navigation
This repository was archived by the owner on Aug 8, 2023. It is now read-only.
Don't force a shader/style rebuild if they haven't changed #151
gyp currently always executes the build_shader and build_stylesheet actions, regardless of whether the input files actually changed. You can observe this by looking at the
@springmeyer, can we instruct gyp to not execute the action if the input files haven't changed and the output file exists (i.e. minimum mtime of all output files is newer than maximum mtime of all input files)?
The trick here is to let gyp manage the results of build actions by placing the ouputs of action in <(SHARED_INTERMEDIATE_DIR). This way gyp then knows about the generated files and automatically stops recreating them unless the inputs have changed. The drawback is that then includes are stored in a second spot and defines/cflags need to add this path as well. See 5b694d5 for a commit against master that gets this working for just os x and just shaders. I propose we hold on this until the uv branch is merged since the uv branch already started along this track.
Thanks for looking at this! The only drawback to this approach I'm seeing is that this makes it difficult in IDEs to get correct autocompletion since the include file isn't present.
I'm not sure that I'll ever merge the uv branch; I'm probably going to continue to port parts of it to the master branch as we need them.
@kkaefer - can you take a look at #245? It should include the headers for autocompletion as well - so there should be no drawback. But would be good for you to confirm.
Activity
springmeyer commentedon Apr 16, 2014
yeah, should be doable. I'll take a look when I have a moment.
kkaefer commentedon Apr 16, 2014
Yeah, not urgent. Thanks!
springmeyer commentedon Apr 23, 2014
The trick here is to let gyp manage the results of build actions by placing the
ouputs ofactionin<(SHARED_INTERMEDIATE_DIR). This way gyp then knows about the generated files and automatically stops recreating them unless the inputs have changed. The drawback is that then includes are stored in a second spot and defines/cflags need to add this path as well. See 5b694d5 for a commit against master that gets this working for just os x and just shaders. I propose we hold on this until theuvbranch is merged since theuvbranch already started along this track.kkaefer commentedon Apr 24, 2014
Thanks for looking at this! The only drawback to this approach I'm seeing is that this makes it difficult in IDEs to get correct autocompletion since the include file isn't present.
I'm not sure that I'll ever merge the uv branch; I'm probably going to continue to port parts of it to the master branch as we need them.
springmeyer commentedon May 12, 2014
Noting to look into more:
make llmris failing first run still on travis (https://magnum.travis-ci.com/mapbox/llmr-native/jobs/5284450#L361):fix #232, refs #151
Address #151 at the same time
springmeyer commentedon May 24, 2014
@kkaefer - can you take a look at #245? It should include the headers for autocompletion as well - so there should be no drawback. But would be good for you to confirm.
springmeyer commentedon May 27, 2014
#245 is merged, closing. If any remaining issues come up we can create new issues.
Change NativeMapView to use 0 instead of throwing IllegalArgumentExce…