|
22 | 22 | <file name="Queue.js"/> |
23 | 23 | <file name="Renderer.js"/> |
24 | 24 | <file name="Util.js"/> |
25 | | - <file name="renderers/Canvas.js"/> |
26 | | - <file name="renderers/SVG.js"/> |
| 25 | + <file name="renderers/Canvas.js"/> |
27 | 26 | <file name="html2canvas-post.txt"/> |
28 | | - </filelist> |
29 | | - </path> |
| 27 | + </filelist> |
| 28 | + </path> |
| 29 | + |
| 30 | + <path id="sourcefiles-allrends"> |
| 31 | + <filelist dir="${src.dir}"> |
| 32 | + <file name="LICENSE"/> |
| 33 | + <file name="html2canvas-pre.txt"/> |
| 34 | + <file name="Core.js"/> |
| 35 | + <file name="Generate.js"/> |
| 36 | + <file name="Parse.js"/> |
| 37 | + <file name="Preload.js"/> |
| 38 | + <file name="Queue.js"/> |
| 39 | + <file name="Renderer.js"/> |
| 40 | + <file name="Util.js"/> |
| 41 | + <file name="renderers/Canvas.js"/> |
| 42 | + <file name="renderers/SVG.js"/> |
| 43 | + <file name="html2canvas-post.txt"/> |
| 44 | + </filelist> |
| 45 | + </path> |
30 | 46 |
|
31 | 47 | <path id="jquery-plugin"> |
32 | 48 | <fileset dir="${src.dir}" includes="LICENSE"/> |
|
47 | 63 | </target> |
48 | 64 |
|
49 | 65 | <pathconvert property="prettty-sourcefiles" pathsep="${line.separator}" refid="sourcefiles"></pathconvert> |
| 66 | + |
| 67 | + <pathconvert property="prettty-sourcefiles-allrends" pathsep="${line.separator}" refid="sourcefiles-allrends"></pathconvert> |
50 | 68 |
|
51 | 69 | <target name="build" depends="build-dir,plugins"> |
52 | 70 | <echo>Concatenating files:${line.separator}${prettty-sourcefiles}${line.separator}into ${build.dir}/${JS_NAME}...</echo> |
53 | | - <concat fixlastline="yes" destfile="${build.dir}/${JS_NAME}"> |
54 | | - <path refid="sourcefiles"/> |
| 71 | + <concat fixlastline="yes" destfile="${build.dir}/${JS_NAME}"> |
| 72 | + <path refid="sourcefiles"/> |
| 73 | + </concat> |
| 74 | + <replaceregexp match="@VERSION@" replace="${version}" flags="g" byline="true" file="${build.dir}/${JS_NAME}" /> |
| 75 | + </target> |
| 76 | + |
| 77 | + <target name="build-allrends" depends="build-dir,plugins"> |
| 78 | + <echo>Concatenating files:${line.separator}${prettty-sourcefiles-allrends}${line.separator}into ${build.dir}/${JS_NAME}...</echo> |
| 79 | + <concat fixlastline="yes" destfile="${build.dir}/${JS_NAME}"> |
| 80 | + <path refid="sourcefiles-allrends"/> |
55 | 81 | </concat> |
56 | 82 | <replaceregexp match="@VERSION@" replace="${version}" flags="g" byline="true" file="${build.dir}/${JS_NAME}" /> |
57 | 83 | </target> |
|
76 | 102 | <file name="Queue.js"/> |
77 | 103 | <file name="Renderer.js"/> |
78 | 104 | <file name="Util.js"/> |
79 | | - <file name="renderers/Canvas.js"/> |
80 | | - <file name="renderers/SVG.js"/> |
| 105 | + <file name="renderers/Canvas.js"/> |
| 106 | + </sources> |
| 107 | + </jscomp> |
| 108 | + <delete file="${build.dir}/${JS_NAME_MIN}.tmp"></delete> |
| 109 | + </target> |
| 110 | + |
| 111 | + <target name="syntaxcheck-allrends" depends="build-dir,build-allrends"> |
| 112 | + <jscomp compilationLevel="simple" warning="verbose" |
| 113 | + debug="false" |
| 114 | + output="${build.dir}/${JS_NAME_MIN}.tmp"> |
| 115 | + <externs dir="${lib.dir}"> |
| 116 | + <file name="${jquery-externs}"/> |
| 117 | + </externs> |
| 118 | + <sources dir="${src.dir}"> |
| 119 | + <!-- need to write them again here since the closure compiler doesn't understand filesets,... --> |
| 120 | + <file name="LICENSE"/> |
| 121 | + <file name="Core.js"/> |
| 122 | + <file name="Generate.js"/> |
| 123 | + <file name="Parse.js"/> |
| 124 | + <file name="Preload.js"/> |
| 125 | + <file name="Queue.js"/> |
| 126 | + <file name="Renderer.js"/> |
| 127 | + <file name="Util.js"/> |
| 128 | + <file name="renderers/Canvas.js"/> |
| 129 | + <file name="renderers/SVG.js"/> |
81 | 130 | </sources> |
82 | 131 | </jscomp> |
83 | 132 | <delete file="${build.dir}/${JS_NAME_MIN}.tmp"></delete> |
|
97 | 146 | <replaceregexp match="@VERSION@" replace="${version}" flags="g" byline="true" file="${build.dir}/${JS_NAME_MIN}" /> |
98 | 147 | </target> |
99 | 148 |
|
| 149 | + <target name="release-allrends" depends="build-dir,build-allrends,syntaxcheck-allrends"> |
| 150 | + <jscomp compilationLevel="simple" warning="verbose" |
| 151 | + debug="false" |
| 152 | + output="${build.dir}/${JS_NAME_MIN}"> |
| 153 | + <externs dir="${lib.dir}"> |
| 154 | + <file name="${jquery-externs}"/> |
| 155 | + </externs> |
| 156 | + <sources dir="${build.dir}"> |
| 157 | + <file name="${JS_NAME}"/> |
| 158 | + </sources> |
| 159 | + </jscomp> |
| 160 | + <replaceregexp match="@VERSION@" replace="${version}" flags="g" byline="true" file="${build.dir}/${JS_NAME_MIN}" /> |
| 161 | + </target> |
| 162 | + |
100 | 163 | <target name="clean"> |
101 | 164 | <delete dir="${build.dir}"></delete> |
102 | 165 | </target> |
|
0 commit comments