diff options
author | Konstantin Käfer <mail@kkaefer.com> | 2014-07-16 18:53:56 -0700 |
---|---|---|
committer | Konstantin Käfer <mail@kkaefer.com> | 2014-07-16 18:53:56 -0700 |
commit | 4ea281c750c5afcc68f2832bb42d98a1cbce6735 (patch) | |
tree | 60bc7d3ccba2c54859e2e023997cc027cc67aea7 /bin | |
parent | c1a64dc5fa73b54cc5de77629781dfc74302a1e7 (diff) | |
download | qtlocation-mapboxgl-4ea281c750c5afcc68f2832bb42d98a1cbce6735.tar.gz |
rename llmr => mbgl
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/build-shaders.js | 17 | ||||
-rw-r--r-- | bin/package.json | 2 |
2 files changed, 10 insertions, 9 deletions
diff --git a/bin/build-shaders.js b/bin/build-shaders.js index 9679521e6b..9105be32b3 100755 --- a/bin/build-shaders.js +++ b/bin/build-shaders.js @@ -83,10 +83,10 @@ module.exports = function(shader_type, prefix, suffix) { } var header = '// NOTE: DO NOT CHANGE THIS FILE. IT IS AUTOMATICALLY GENERATED.\n\n'; - header += '#ifndef LLMR_SHADER_SHADERS\n'; - header += '#define LLMR_SHADER_SHADERS\n'; + header += '#ifndef MBGL_SHADER_SHADERS\n'; + header += '#define MBGL_SHADER_SHADERS\n'; header += '\n'; - header += 'namespace llmr {\n'; + header += 'namespace mbgl {\n'; header += '\n'; header += 'struct shader_source {\n'; header += ' const char *vertex;\n'; @@ -106,18 +106,19 @@ module.exports = function(shader_type, prefix, suffix) { var code = '// NOTE: DO NOT CHANGE THIS FILE. IT IS AUTOMATICALLY GENERATED.\n'; - code += '#include <llmr/platform/gl.hpp>\n'; + code += '#include <mbgl/platform/gl.hpp>\n'; code += prefix + '\n'; - code += '#include <llmr/shader/shaders.hpp>\n'; + code += '#include <mbgl/shader/shaders.hpp>\n'; code += '\n'; - code += 'using namespace llmr;\n'; + code += 'namespace mbgl {\n'; code += '\n'; - code += 'const shader_source llmr::shaders[SHADER_COUNT] = {\n'; + code += 'const shader_source shaders[SHADER_COUNT] = {\n'; code += lines.join(',\n'); code += '\n};\n'; + code += '\n}\n'; code += suffix + '\n'; - var header_path = path.join(process.argv[2], 'include/llmr/shader/shaders.hpp'); + var header_path = path.join(process.argv[2], 'include/mbgl/shader/shaders.hpp'); mkdirp.sync(path.dirname(header_path)); fs.writeFileSync(header_path, header); console.warn('wrote file ' + header_path); diff --git a/bin/package.json b/bin/package.json index 4431471e99..483e0535b8 100644 --- a/bin/package.json +++ b/bin/package.json @@ -1,5 +1,5 @@ { - "name": "llmr-native", + "name": "mbgl-native", "version": "0.0.1", "dependencies": { "glsl-optimizer": "git://github.com/kkaefer/glsl-optimizer.git#amalgamation" |