Improve build system: read version from version.txt, fix build without compiler

* read the version from version.txt
 * set default target to build
 * added dependencies to all targets
 * allow the build to run without a local copy of the closure compiler
 * updated license header with @VERSION@ which will be replaced during the build
 * added the license header to all files (that one will be stripped out by the closure compiler)
This commit is contained in:
Obexer Christoph
2011-11-16 00:25:02 +01:00
parent 962d5b8e8d
commit 16c74d1f8c
12 changed files with 105 additions and 54 deletions

View File

@ -1,3 +1,11 @@
/*
html2canvas @VERSION@ <http://html2canvas.hertzen.com>
Copyright (c) 2011 Niklas von Hertzen. All rights reserved.
http://www.twitter.com/niklasvh
Released under MIT License
*/
var html2canvas = {};
html2canvas.logging = true;
@ -121,4 +129,4 @@ html2canvas.Util.Extend = function (options, defaults) {
html2canvas.Util.Children = function(el) {
// $(el).contents() !== el.childNodes, Opera / IE have issues with that
return $(el).contents();
}
}