diff options
author | Konstantin Käfer <mail@kkaefer.com> | 2018-01-10 16:04:06 -0800 |
---|---|---|
committer | Konstantin Käfer <mail@kkaefer.com> | 2018-01-24 08:35:31 -0800 |
commit | 9d1fa508a34f013573294794028f4ffa5a5f5f3d (patch) | |
tree | eb6ac03a51c5206040a2b46919c2c1433a292775 /scripts/generate-shaders.js | |
parent | 1a2c316f951ad4d19b0eb89eba2559801deaa385 (diff) | |
download | qtlocation-mapboxgl-9d1fa508a34f013573294794028f4ffa5a5f5f3d.tar.gz |
[build] Add temporary modifications to style spec + shaders
This ensures that the generated code matches what is checked in. Remove those temporary modifications once we add the features to master.
Diffstat (limited to 'scripts/generate-shaders.js')
-rwxr-xr-x | scripts/generate-shaders.js | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/scripts/generate-shaders.js b/scripts/generate-shaders.js index cf54b1b100..b4d1033d45 100755 --- a/scripts/generate-shaders.js +++ b/scripts/generate-shaders.js @@ -3,9 +3,15 @@ require('flow-remove-types/register'); const path = require('path'); -const shaders = require('../mapbox-gl-js/src/shaders'); const outputPath = 'src/mbgl/shaders'; +var shaders = require('../mapbox-gl-js/src/shaders'); + +delete shaders.hillshade; +delete shaders.hillshadePrepare; +delete shaders.heatmap; +delete shaders.heatmapTexture; + require('./style-code'); writeIfModified(path.join(outputPath, 'preludes.hpp'), `// NOTE: DO NOT CHANGE THIS FILE. IT IS AUTOMATICALLY GENERATED. |