diff options
author | Konstantin Käfer <mail@kkaefer.com> | 2019-04-02 14:11:37 +0200 |
---|---|---|
committer | Konstantin Käfer <mail@kkaefer.com> | 2019-04-05 11:49:17 +0200 |
commit | b0c012fdc5979c158be2203c0970ab3d8d399fa9 (patch) | |
tree | 25a60c512e3dc8f7085c38a1419a9eee9b45d5db /scripts | |
parent | 66c020034e8260e5e071481e68ab61cd264723ba (diff) | |
download | qtlocation-mapboxgl-b0c012fdc5979c158be2203c0970ab3d8d399fa9.tar.gz |
[build] don't add gl to outputPath
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/generate-shaders.js | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/scripts/generate-shaders.js b/scripts/generate-shaders.js index fc9088fd21..df01ca4743 100755 --- a/scripts/generate-shaders.js +++ b/scripts/generate-shaders.js @@ -3,7 +3,7 @@ require('flow-remove-types/register'); const path = require('path'); -const outputPath = 'src/mbgl/programs/gl'; +const outputPath = 'src/mbgl/programs'; const zlib = require('zlib'); const crypto = require('crypto'); @@ -79,7 +79,7 @@ const compressed = zlib.deflateSync(concatenated, {level: zlib.Z_BEST_COMPRESSIO .join(',\n ') .trim(); -writeIfModified(path.join(outputPath, 'shader_source.hpp'), `// NOTE: DO NOT CHANGE THIS FILE. IT IS AUTOMATICALLY GENERATED. +writeIfModified(path.join(outputPath, 'gl', 'shader_source.hpp'), `// NOTE: DO NOT CHANGE THIS FILE. IT IS AUTOMATICALLY GENERATED. #pragma once @@ -97,7 +97,7 @@ struct ShaderSource; } // namespace mbgl `); -writeIfModified(path.join(outputPath, 'shader_source.cpp'), `// NOTE: DO NOT CHANGE THIS FILE. IT IS AUTOMATICALLY GENERATED. +writeIfModified(path.join(outputPath, 'gl', 'shader_source.cpp'), `// NOTE: DO NOT CHANGE THIS FILE. IT IS AUTOMATICALLY GENERATED. #include <mbgl/programs/gl/shader_source.hpp> #include <mbgl/util/compression.hpp> @@ -122,7 +122,7 @@ const char* shaderSource() { } // namespace mbgl `); -writeIfModified(path.join(outputPath, 'preludes.hpp'), `// NOTE: DO NOT CHANGE THIS FILE. IT IS AUTOMATICALLY GENERATED. +writeIfModified(path.join(outputPath, 'gl', 'preludes.hpp'), `// NOTE: DO NOT CHANGE THIS FILE. IT IS AUTOMATICALLY GENERATED. #pragma once @@ -147,7 +147,7 @@ for (const key in offsets) { const { shaderName, ShaderName, originalKey } = offsets[key]; - writeIfModified(path.join(outputPath, `${shaderName}.cpp`), `// NOTE: DO NOT CHANGE THIS FILE. IT IS AUTOMATICALLY GENERATED. + writeIfModified(path.join(outputPath, 'gl', `${shaderName}.cpp`), `// NOTE: DO NOT CHANGE THIS FILE. IT IS AUTOMATICALLY GENERATED. #include <mbgl/programs/${shaderName}_program.hpp> #include <mbgl/programs/gl/preludes.hpp> |