Merge pull request #69 from elemoine/exports-files
Granularize the exports
This commit is contained in:
17
Makefile
17
Makefile
@@ -4,6 +4,7 @@ PHANTOMJS = phantomjs
|
||||
PLOVR_JAR = bin/plovr-b254c26318c5.jar
|
||||
SPEC = $(shell find test/spec -name \*.js)
|
||||
SRC = $(shell find externs src/ol -name \*.js)
|
||||
EXPORTS = $(filter-out src/objectliterals.exports, $(shell find src -name \*.exports))
|
||||
INTERNAL_SRC = \
|
||||
build/src/internal/src/requireall.js \
|
||||
build/src/internal/src/types.js
|
||||
@@ -40,25 +41,25 @@ build-all: build/ol-all.js
|
||||
build/ol-all.js: $(PLOVR_JAR) $(SRC) $(INTERNAL_SRC) base.json build/ol-all.json
|
||||
java -jar $(PLOVR_JAR) build build/ol-all.json >$@ || ( rm -f $@ ; false )
|
||||
|
||||
build/src/external/externs/types.js: bin/generate-exports src/ol/exports.txt
|
||||
build/src/external/externs/types.js: bin/generate-exports src/objectliterals.exports
|
||||
mkdir -p $(dir $@)
|
||||
bin/generate-exports --externs src/ol/exports.txt >$@ || ( rm -f $@ ; false )
|
||||
bin/generate-exports --externs src/objectliterals.exports >$@ || ( rm -f $@ ; false )
|
||||
|
||||
build/src/external/src/exports.js: bin/generate-exports src/ol/exports.txt
|
||||
build/src/external/src/exports.js: bin/generate-exports src/objectliterals.exports $(EXPORTS)
|
||||
mkdir -p $(dir $@)
|
||||
bin/generate-exports --exports src/ol/exports.txt >$@ || ( rm -f $@ ; false )
|
||||
bin/generate-exports --exports src/objectliterals.exports $(EXPORTS) >$@ || ( rm -f $@ ; false )
|
||||
|
||||
build/src/external/src/types.js: bin/generate-exports src/ol/exports.txt
|
||||
build/src/external/src/types.js: bin/generate-exports src/objectliterals.exports
|
||||
mkdir -p $(dir $@)
|
||||
bin/generate-exports --typedef src/ol/exports.txt >$@ || ( rm -f $@ ; false )
|
||||
bin/generate-exports --typedef src/objectliterals.exports >$@ || ( rm -f $@ ; false )
|
||||
|
||||
build/src/internal/src/requireall.js: bin/generate-requireall $(SRC)
|
||||
mkdir -p $(dir $@)
|
||||
bin/generate-requireall --require=goog.dom src/ol >$@ || ( rm -f $@ ; false )
|
||||
|
||||
build/src/internal/src/types.js: bin/generate-exports src/ol/exports.txt
|
||||
build/src/internal/src/types.js: bin/generate-exports src/objectliterals.exports
|
||||
mkdir -p $(dir $@)
|
||||
bin/generate-exports --typedef src/ol/exports.txt >$@ || ( rm -f $@ ; false )
|
||||
bin/generate-exports --typedef src/objectliterals.exports >$@ || ( rm -f $@ ; false )
|
||||
|
||||
.PHONY: build-examples
|
||||
build-examples: examples $(subst .html,.combined.js,$(EXAMPLES))
|
||||
|
||||
1
src/goog.exports
Normal file
1
src/goog.exports
Normal file
@@ -0,0 +1 @@
|
||||
@exportSymbol goog.require goog.nullFunction
|
||||
@@ -1,23 +1,27 @@
|
||||
@exportSymbol goog.require goog.nullFunction
|
||||
@exportObjectLiteral ol.control.AttributionOptions
|
||||
@exportObjectLiteralProperty ol.control.AttributionOptions.map ol.Map|undefined
|
||||
@exportObjectLiteralProperty ol.control.AttributionOptions.target Element|undefined
|
||||
|
||||
@exportProperty ol.MapBrowserEvent.prototype.getCoordinate
|
||||
@exportObjectLiteral ol.control.MousePositionOptions
|
||||
@exportObjectLiteralProperty ol.control.MousePositionOptions.coordinateFormat ol.CoordinateFormatType|undefined
|
||||
@exportObjectLiteralProperty ol.control.MousePositionOptions.map ol.Map|undefined
|
||||
@exportObjectLiteralProperty ol.control.MousePositionOptions.projection ol.Projection|undefined
|
||||
@exportObjectLiteralProperty ol.control.MousePositionOptions.target Element|undefined
|
||||
@exportObjectLiteralProperty ol.control.MousePositionOptions.undefinedHtml string|undefined
|
||||
|
||||
@exportSymbol ol.Collection
|
||||
@exportProperty ol.Collection.prototype.clear
|
||||
@exportProperty ol.Collection.prototype.forEach
|
||||
@exportProperty ol.Collection.prototype.getArray
|
||||
@exportProperty ol.Collection.prototype.getAt
|
||||
@exportProperty ol.Collection.prototype.getLength
|
||||
@exportProperty ol.Collection.prototype.insertAt
|
||||
@exportProperty ol.Collection.prototype.pop
|
||||
@exportProperty ol.Collection.prototype.push
|
||||
@exportProperty ol.Collection.prototype.removeAt
|
||||
@exportProperty ol.Collection.prototype.setAt
|
||||
@exportObjectLiteral ol.control.ZoomOptions
|
||||
@exportObjectLiteralProperty ol.control.ZoomOptions.delta number|undefined
|
||||
@exportObjectLiteralProperty ol.control.ZoomOptions.map ol.Map|undefined
|
||||
@exportObjectLiteralProperty ol.control.ZoomOptions.target Element|undefined
|
||||
|
||||
@exportSymbol ol.Coordinate
|
||||
@exportProperty ol.Coordinate.toStringHDMS
|
||||
|
||||
@exportSymbol ol.Extent
|
||||
@exportObjectLiteral ol.layer.LayerOptions
|
||||
@exportObjectLiteralProperty ol.layer.LayerOptions.brightness number|undefined
|
||||
@exportObjectLiteralProperty ol.layer.LayerOptions.contrast number|undefined
|
||||
@exportObjectLiteralProperty ol.layer.LayerOptions.hue number|undefined
|
||||
@exportObjectLiteralProperty ol.layer.LayerOptions.opacity number|undefined
|
||||
@exportObjectLiteralProperty ol.layer.LayerOptions.saturation number|undefined
|
||||
@exportObjectLiteralProperty ol.layer.LayerOptions.source ol.source.Source
|
||||
@exportObjectLiteralProperty ol.layer.LayerOptions.visible boolean|undefined
|
||||
|
||||
@exportObjectLiteral ol.MapOptions
|
||||
@exportObjectLiteralProperty ol.MapOptions.center ol.Coordinate|undefined
|
||||
@@ -45,100 +49,13 @@
|
||||
@exportObjectLiteralProperty ol.MapOptions.zoomDelta number|undefined
|
||||
@exportObjectLiteralProperty ol.MapOptions.zoomFactor number|undefined
|
||||
|
||||
@exportClass ol.Map ol.MapOptions
|
||||
@exportProperty ol.Map.prototype.getControls
|
||||
@exportProperty ol.Map.prototype.getInteractions
|
||||
|
||||
@exportSymbol ol.Object
|
||||
@exportProperty ol.Object.prototype.bindTo
|
||||
@exportProperty ol.Object.prototype.changed
|
||||
@exportProperty ol.Object.prototype.get
|
||||
@exportProperty ol.Object.prototype.notify
|
||||
@exportProperty ol.Object.prototype.set
|
||||
@exportProperty ol.Object.prototype.setOptions
|
||||
@exportProperty ol.Object.prototype.setValues
|
||||
@exportProperty ol.Object.prototype.unbind
|
||||
@exportProperty ol.Object.prototype.unbindAll
|
||||
|
||||
@exportSymbol ol.Projection
|
||||
@exportProperty ol.Projection.getFromCode
|
||||
@exportProperty ol.Projection.getTransform
|
||||
@exportProperty ol.Projection.getTransformFromCodes
|
||||
@exportProperty ol.Projection.transform
|
||||
@exportProperty ol.Projection.transformWithCodes
|
||||
@exportProperty ol.Projection.prototype.getCode
|
||||
@exportProperty ol.Projection.prototype.getExtent
|
||||
@exportProperty ol.Projection.prototype.getUnits
|
||||
|
||||
@exportSymbol ol.RendererHint
|
||||
@exportProperty ol.RendererHint.DOM
|
||||
@exportProperty ol.RendererHint.WEBGL
|
||||
|
||||
@exportObjectLiteral ol.control.AttributionOptions
|
||||
@exportObjectLiteralProperty ol.control.AttributionOptions.map ol.Map|undefined
|
||||
@exportObjectLiteralProperty ol.control.AttributionOptions.target Element|undefined
|
||||
|
||||
@exportClass ol.control.Attribution ol.control.AttributionOptions
|
||||
|
||||
@exportObjectLiteral ol.control.MousePositionOptions
|
||||
@exportObjectLiteralProperty ol.control.MousePositionOptions.coordinateFormat ol.CoordinateFormatType|undefined
|
||||
@exportObjectLiteralProperty ol.control.MousePositionOptions.map ol.Map|undefined
|
||||
@exportObjectLiteralProperty ol.control.MousePositionOptions.projection ol.Projection|undefined
|
||||
@exportObjectLiteralProperty ol.control.MousePositionOptions.target Element|undefined
|
||||
@exportObjectLiteralProperty ol.control.MousePositionOptions.undefinedHtml string|undefined
|
||||
|
||||
@exportClass ol.control.MousePosition ol.control.MousePositionOptions
|
||||
|
||||
@exportObjectLiteral ol.control.ZoomOptions
|
||||
@exportObjectLiteralProperty ol.control.ZoomOptions.delta number|undefined
|
||||
@exportObjectLiteralProperty ol.control.ZoomOptions.map ol.Map|undefined
|
||||
@exportObjectLiteralProperty ol.control.ZoomOptions.target Element|undefined
|
||||
|
||||
@exportClass ol.control.Zoom ol.control.ZoomOptions
|
||||
|
||||
@exportObjectLiteral ol.layer.LayerOptions
|
||||
@exportObjectLiteralProperty ol.layer.LayerOptions.brightness number|undefined
|
||||
@exportObjectLiteralProperty ol.layer.LayerOptions.contrast number|undefined
|
||||
@exportObjectLiteralProperty ol.layer.LayerOptions.hue number|undefined
|
||||
@exportObjectLiteralProperty ol.layer.LayerOptions.opacity number|undefined
|
||||
@exportObjectLiteralProperty ol.layer.LayerOptions.saturation number|undefined
|
||||
@exportObjectLiteralProperty ol.layer.LayerOptions.source ol.source.Source
|
||||
@exportObjectLiteralProperty ol.layer.LayerOptions.visible boolean|undefined
|
||||
|
||||
@exportSymbol ol.interaction.Keyboard
|
||||
@exportProperty ol.interaction.Keyboard.prototype.addCallback
|
||||
|
||||
@exportClass ol.layer.TileLayer ol.layer.LayerOptions
|
||||
|
||||
@exportObjectLiteral ol.overlay.OverlayOptions
|
||||
@exportObjectLiteralProperty ol.overlay.OverlayOptions.coordinate ol.Coordinate|undefined
|
||||
@exportObjectLiteralProperty ol.overlay.OverlayOptions.element Element|undefined
|
||||
@exportObjectLiteralProperty ol.overlay.OverlayOptions.map ol.Map|undefined
|
||||
@exportObjectLiteralProperty ol.overlay.OverlayOptions.positioning Array.<string>|undefined
|
||||
|
||||
@exportClass ol.overlay.Overlay ol.overlay.OverlayOptions
|
||||
@exportProperty ol.overlay.Overlay.prototype.getElement
|
||||
@exportProperty ol.overlay.Overlay.prototype.setCoordinate
|
||||
@exportProperty ol.overlay.Overlay.prototype.setMap
|
||||
|
||||
@exportSymbol ol.source.BingMaps
|
||||
@exportSymbol ol.BingMapsStyle
|
||||
@exportProperty ol.BingMapsStyle.AERIAL
|
||||
@exportProperty ol.BingMapsStyle.AERIAL_WITH_LABELS
|
||||
@exportProperty ol.BingMapsStyle.ROAD
|
||||
@exportProperty ol.BingMapsStyle.ORDNANCE_SURVEY
|
||||
@exportProperty ol.BingMapsStyle.COLLINS_BART
|
||||
@exportObjectLiteral ol.source.BingMapsOptions
|
||||
@exportObjectLiteralProperty ol.source.BingMapsOptions.culture string|undefined
|
||||
@exportObjectLiteralProperty ol.source.BingMapsOptions.key string
|
||||
@exportObjectLiteralProperty ol.source.BingMapsOptions.style ol.BingMapsStyle
|
||||
|
||||
@exportSymbol ol.source.MapQuestOSM
|
||||
|
||||
@exportSymbol ol.source.MapQuestOpenAerial
|
||||
|
||||
@exportSymbol ol.source.OpenStreetMap
|
||||
|
||||
@exportSymbol ol.source.Stamen
|
||||
|
||||
@exportSymbol ol.source.TileJSON
|
||||
11
src/ol/collection.exports
Normal file
11
src/ol/collection.exports
Normal file
@@ -0,0 +1,11 @@
|
||||
@exportSymbol ol.Collection
|
||||
@exportProperty ol.Collection.prototype.clear
|
||||
@exportProperty ol.Collection.prototype.forEach
|
||||
@exportProperty ol.Collection.prototype.getArray
|
||||
@exportProperty ol.Collection.prototype.getAt
|
||||
@exportProperty ol.Collection.prototype.getLength
|
||||
@exportProperty ol.Collection.prototype.insertAt
|
||||
@exportProperty ol.Collection.prototype.pop
|
||||
@exportProperty ol.Collection.prototype.push
|
||||
@exportProperty ol.Collection.prototype.removeAt
|
||||
@exportProperty ol.Collection.prototype.setAt
|
||||
2
src/ol/control/attribution.exports
Normal file
2
src/ol/control/attribution.exports
Normal file
@@ -0,0 +1,2 @@
|
||||
@exportClass ol.control.Attribution ol.control.AttributionOptions
|
||||
|
||||
2
src/ol/control/mouseposition.exports
Normal file
2
src/ol/control/mouseposition.exports
Normal file
@@ -0,0 +1,2 @@
|
||||
@exportClass ol.control.MousePosition ol.control.MousePositionOptions
|
||||
|
||||
2
src/ol/control/zoom.exports
Normal file
2
src/ol/control/zoom.exports
Normal file
@@ -0,0 +1,2 @@
|
||||
@exportClass ol.control.Zoom ol.control.ZoomOptions
|
||||
|
||||
2
src/ol/coordinate.exports
Normal file
2
src/ol/coordinate.exports
Normal file
@@ -0,0 +1,2 @@
|
||||
@exportSymbol ol.Coordinate
|
||||
@exportProperty ol.Coordinate.toStringHDMS
|
||||
2
src/ol/extent.exports
Normal file
2
src/ol/extent.exports
Normal file
@@ -0,0 +1,2 @@
|
||||
@exportSymbol ol.Extent
|
||||
|
||||
3
src/ol/interaction/keyboard.exports
Normal file
3
src/ol/interaction/keyboard.exports
Normal file
@@ -0,0 +1,3 @@
|
||||
@exportSymbol ol.interaction.Keyboard
|
||||
@exportProperty ol.interaction.Keyboard.prototype.addCallback
|
||||
|
||||
1
src/ol/layer/tilelayer.exports
Normal file
1
src/ol/layer/tilelayer.exports
Normal file
@@ -0,0 +1 @@
|
||||
@exportClass ol.layer.TileLayer ol.layer.LayerOptions
|
||||
9
src/ol/map.exports
Normal file
9
src/ol/map.exports
Normal file
@@ -0,0 +1,9 @@
|
||||
@exportClass ol.Map ol.MapOptions
|
||||
@exportProperty ol.Map.prototype.getControls
|
||||
@exportProperty ol.Map.prototype.getInteractions
|
||||
|
||||
@exportSymbol ol.RendererHint
|
||||
@exportProperty ol.RendererHint.DOM
|
||||
@exportProperty ol.RendererHint.WEBGL
|
||||
|
||||
|
||||
2
src/ol/mapbrowserevent.exports
Normal file
2
src/ol/mapbrowserevent.exports
Normal file
@@ -0,0 +1,2 @@
|
||||
@exportProperty ol.MapBrowserEvent.prototype.getCoordinate
|
||||
|
||||
10
src/ol/object.exports
Normal file
10
src/ol/object.exports
Normal file
@@ -0,0 +1,10 @@
|
||||
@exportSymbol ol.Object
|
||||
@exportProperty ol.Object.prototype.bindTo
|
||||
@exportProperty ol.Object.prototype.changed
|
||||
@exportProperty ol.Object.prototype.get
|
||||
@exportProperty ol.Object.prototype.notify
|
||||
@exportProperty ol.Object.prototype.set
|
||||
@exportProperty ol.Object.prototype.setOptions
|
||||
@exportProperty ol.Object.prototype.setValues
|
||||
@exportProperty ol.Object.prototype.unbind
|
||||
@exportProperty ol.Object.prototype.unbindAll
|
||||
5
src/ol/overlay/overlay.exports
Normal file
5
src/ol/overlay/overlay.exports
Normal file
@@ -0,0 +1,5 @@
|
||||
@exportClass ol.overlay.Overlay ol.overlay.OverlayOptions
|
||||
@exportProperty ol.overlay.Overlay.prototype.getElement
|
||||
@exportProperty ol.overlay.Overlay.prototype.setCoordinate
|
||||
@exportProperty ol.overlay.Overlay.prototype.setMap
|
||||
|
||||
10
src/ol/projection.exports
Normal file
10
src/ol/projection.exports
Normal file
@@ -0,0 +1,10 @@
|
||||
@exportSymbol ol.Projection
|
||||
@exportProperty ol.Projection.getFromCode
|
||||
@exportProperty ol.Projection.getTransform
|
||||
@exportProperty ol.Projection.getTransformFromCodes
|
||||
@exportProperty ol.Projection.transform
|
||||
@exportProperty ol.Projection.transformWithCodes
|
||||
@exportProperty ol.Projection.prototype.getCode
|
||||
@exportProperty ol.Projection.prototype.getExtent
|
||||
@exportProperty ol.Projection.prototype.getUnits
|
||||
|
||||
7
src/ol/source/bingmaps.exports
Normal file
7
src/ol/source/bingmaps.exports
Normal file
@@ -0,0 +1,7 @@
|
||||
@exportSymbol ol.source.BingMaps
|
||||
@exportSymbol ol.BingMapsStyle
|
||||
@exportProperty ol.BingMapsStyle.AERIAL
|
||||
@exportProperty ol.BingMapsStyle.AERIAL_WITH_LABELS
|
||||
@exportProperty ol.BingMapsStyle.ROAD
|
||||
@exportProperty ol.BingMapsStyle.ORDNANCE_SURVEY
|
||||
@exportProperty ol.BingMapsStyle.COLLINS_BART
|
||||
2
src/ol/source/mapquest.exports
Normal file
2
src/ol/source/mapquest.exports
Normal file
@@ -0,0 +1,2 @@
|
||||
@exportSymbol ol.source.MapQuestOSM
|
||||
@exportSymbol ol.source.MapQuestOpenAerial
|
||||
2
src/ol/source/openstreetmap.exports
Normal file
2
src/ol/source/openstreetmap.exports
Normal file
@@ -0,0 +1,2 @@
|
||||
@exportSymbol ol.source.OpenStreetMap
|
||||
|
||||
2
src/ol/source/stamen.exports
Normal file
2
src/ol/source/stamen.exports
Normal file
@@ -0,0 +1,2 @@
|
||||
@exportSymbol ol.source.Stamen
|
||||
|
||||
1
src/ol/source/tilejson.exports
Normal file
1
src/ol/source/tilejson.exports
Normal file
@@ -0,0 +1 @@
|
||||
@exportSymbol ol.source.TileJSON
|
||||
Reference in New Issue
Block a user