summaryrefslogtreecommitdiff
path: root/README.md
diff options
context:
space:
mode:
authorKonstantin Käfer <github@kkaefer.com>2014-01-07 16:52:23 +0100
committerKonstantin Käfer <github@kkaefer.com>2014-01-07 16:52:23 +0100
commit528eaf475e084508cb2d2d26df7d4136f1eb5e04 (patch)
tree87f9a7ecec23cb7cc37450e7cd5f34fa6248f750 /README.md
parent044a7b5dcd92b1ba095f0768d24aa504fdf71a16 (diff)
downloadqtlocation-mapboxgl-528eaf475e084508cb2d2d26df7d4136f1eb5e04.tar.gz
emscripten support
Diffstat (limited to 'README.md')
-rw-r--r--README.md30
1 files changed, 30 insertions, 0 deletions
diff --git a/README.md b/README.md
new file mode 100644
index 0000000000..47db97996c
--- /dev/null
+++ b/README.md
@@ -0,0 +1,30 @@
+
+
+# Build instructions
+
+## Mac OS X
+
+```
+make
+```
+
+
+## Emscripten
+
+```
+emmake make emscripten
+```
+
+Note that mousewheel support requires a hacked emscripten:
+
+In `src/library_glfw.js`, replace the first part of the mousewheel function with
+
+```js
+ GLFW.wheelPos = (event.detail || -event.deltaY);
+```
+
+In `system/include/GL/glfw.h`, replace the wheel callback typedef with
+
+```c
+typedef void (GLFWCALL * GLFWmousewheelfun)(float);
+```