Include webgl-debug.js

This commit is contained in:
Tom Payne
2012-07-15 20:42:09 +02:00
parent b6282ba631
commit 7d8d8253a3
3 changed files with 8 additions and 0 deletions

1
.gitignore vendored
View File

@@ -9,3 +9,4 @@
/bin/plovr*.jar
/jsdoc/
/plovr*.jar
/webgl-debug.js

View File

@@ -46,6 +46,9 @@ GSLINT_EXCLUDES= \
src/ol/renderer/TileLayerRenderer.js \
src/ol/renderer/WebGL.js
.PHONY: all
all: build webgl-debug.js
.PHONY: build
build: $(PLOVR_JAR)
java -jar $(PLOVR_JAR) build main.json >api.js
@@ -58,5 +61,8 @@ serve: $(PLOVR_JAR)
lint: $(CLOSURE_LINTER)
gjslint --strict $(filter-out $(GSLINT_EXCLUDES),$(shell find externs src -name \*.js))
webgl-debug.js:
curl https://cvs.khronos.org/svn/repos/registry/trunk/public/webgl/sdk/debug/webgl-debug.js > $@
$(PLOVR_JAR):
curl http://plovr.googlecode.com/files/$(PLOVR_JAR) > $@

View File

@@ -12,6 +12,7 @@
</head>
<body>
<div id="map"></div>
<script src="webgl-debug.js" type="text/javascript"></script>
<script src="http://localhost:9810/compile?id=ol&mode=RAW" type="text/javascript"></script>
<script>