summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorKonstantin Käfer <mail@kkaefer.com>2014-07-09 12:37:59 -0700
committerKonstantin Käfer <mail@kkaefer.com>2014-07-09 12:37:59 -0700
commitd0d68d08f4be9360c5fbeedb2edd08b8e0e8d75e (patch)
tree46d0766f5b87750f00c7e8b0a093d509b9a52e5c /bin
parent5fe36a3cb055dd8be94186dfb75d5be3499956af (diff)
downloadqtlocation-mapboxgl-d0d68d08f4be9360c5fbeedb2edd08b8e0e8d75e.tar.gz
fix automated headless testing on travis
Diffstat (limited to 'bin')
-rwxr-xr-xbin/build-shaders.js12
1 files changed, 7 insertions, 5 deletions
diff --git a/bin/build-shaders.js b/bin/build-shaders.js
index b5072c3707..9679521e6b 100755
--- a/bin/build-shaders.js
+++ b/bin/build-shaders.js
@@ -117,12 +117,14 @@ module.exports = function(shader_type, prefix, suffix) {
code += '\n};\n';
code += suffix + '\n';
- var file_path = path.join(process.argv[2], 'include/llmr/shader/shaders.hpp');
- mkdirp.sync(path.dirname(file_path));
- fs.writeFileSync(file_path, header);
- var header_path = path.join(process.argv[2], 'src/shader/shaders_' + shader_type + '.cpp');
+ var header_path = path.join(process.argv[2], 'include/llmr/shader/shaders.hpp');
mkdirp.sync(path.dirname(header_path));
- fs.writeFileSync(header_path, code);
+ fs.writeFileSync(header_path, header);
+ console.warn('wrote file ' + header_path);
+ var file_path = path.join(process.argv[2], 'src/shader/shaders_' + shader_type + '.cpp');
+ mkdirp.sync(path.dirname(file_path));
+ fs.writeFileSync(file_path, code);
+ console.warn('wrote file ' + file_path);
};