Skip to content

Commit

Permalink
Include version numbers in release.
Browse files Browse the repository at this point in the history
  • Loading branch information
mdaines committed Apr 12, 2017
1 parent 9e725ee commit 1d87fe4
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
7 changes: 4 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ BUILD_LITE = $(abspath ./build-lite)
PREFIX = $(abspath ./prefix)
PREFIX_LITE = $(abspath ./prefix-lite)

VIZ_VERSION = 1.7.1
EXPAT_VERSION = 2.1.0
GRAPHVIZ_VERSION = 2.40.1

Expand All @@ -15,21 +16,21 @@ all: expat graphviz viz.js graphviz-lite viz-lite.js
lite: graphviz-lite viz-lite.js

clean:
rm -f $(BUILD)/module.js $(BUILD_LITE)/module.js viz.js viz-lite.js
rm -f $(BUILD)/module.js $(BUILD)/pre.js $(BUILD_LITE)/module.js viz.js viz-lite.js

clobber: | clean
rm -rf $(BUILD) $(BUILD_LITE) $(PREFIX) $(PREFIX_LITE)


viz.js: src/boilerplate/pre.js $(BUILD)/module.js src/api.js src/boilerplate/post.js
cat $^ > $@
sed -e s/{{VIZ_VERSION}}/$(VIZ_VERSION)/ -e s/{{EXPAT_VERSION}}/$(EXPAT_VERSION)/ -e s/{{GRAPHVIZ_VERSION}}/$(GRAPHVIZ_VERSION)/ $^ > $@

$(BUILD)/module.js: src/viz.c
emcc -Os --closure 1 --memory-init-file 0 -s USE_ZLIB=1 -s MODULARIZE=1 -s EXPORTED_FUNCTIONS="['_vizRenderFromString', '_vizCreateFile', '_vizLastErrorMessage', '_dtextract', '_Dtqueue']" -s EXPORTED_RUNTIME_METHODS="['Pointer_stringify', 'ccall', 'UTF8ToString']" -o $@ $< -I$(PREFIX)/include -I$(PREFIX)/include/graphviz -L$(PREFIX)/lib -L$(PREFIX)/lib/graphviz -lgvplugin_core -lgvplugin_dot_layout -lgvplugin_neato_layout -lcdt -lcgraph -lgvc -lgvpr -lpathplan -lexpat -lxdot


viz-lite.js: src/boilerplate/pre-lite.js $(BUILD)/module.js src/api.js src/boilerplate/post.js
cat $^ > $@
sed -e s/{{VIZ_VERSION}}/$(VIZ_VERSION)/ -e s/{{GRAPHVIZ_VERSION}}/$(GRAPHVIZ_VERSION)/ $^ > $@

$(BUILD_LITE)/module.js: src/viz.c
emcc -D VIZ_LITE -Os --closure 1 --memory-init-file 0 -s USE_ZLIB=1 -s MODULARIZE=1 -s EXPORTED_FUNCTIONS="['_vizRenderFromString', '_vizCreateFile', '_vizLastErrorMessage', '_dtextract', '_Dtqueue', '_dtopen', '_dtdisc', '_Dtobag', '_Dtoset', '_Dttree']" -s EXPORTED_RUNTIME_METHODS="['Pointer_stringify', 'ccall', 'UTF8ToString']" -o $@ $< -I$(PREFIX_LITE)/include -I$(PREFIX_LITE)/include/graphviz -L$(PREFIX_LITE)/lib -L$(PREFIX_LITE)/lib/graphviz -lgvplugin_core -lgvplugin_dot_layout -lcdt -lcgraph -lgvc -lgvpr -lpathplan -lxdot
Expand Down
2 changes: 1 addition & 1 deletion src/boilerplate/pre-lite.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
Viz.js
Viz.js {{VIZ_VERSION}} (Graphviz {{GRAPHVIZ_VERSION}})
Copyright (c) 2014-2017 Michael Daines
Licensed under MIT license
Expand Down
2 changes: 1 addition & 1 deletion src/boilerplate/pre.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
Viz.js
Viz.js {{VIZ_VERSION}} (Graphviz {{GRAPHVIZ_VERSION}}, Expat {{EXPAT_VERSION}})
Copyright (c) 2014-2017 Michael Daines
Licensed under MIT license
Expand Down

0 comments on commit 1d87fe4

Please sign in to comment.