| author | hamidouk |
| Fri, 27 Jan 2012 16:15:52 +0100 | |
| branch | popcorn-port |
| changeset 738 | ccd571853e98 |
| parent 711 | 323205a7bd39 |
| child 798 | 56fd575cb447 |
| permissions | -rw-r--r-- |
|
0
c357d5b60635
First import. Last version from France culture
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
1 |
<?xml version="1.0" encoding="UTF-8"?> |
| 33 | 2 |
<project basedir="." default="makeall"> |
3 |
|
|
|
18
4e58f47a8c43
Added a section to concatenate multiple js files together to make a "developer release" file
hamidouk
parents:
1
diff
changeset
|
4 |
<taskdef name="jscomp" classname="com.google.javascript.jscomp.ant.CompileTask"> |
|
4e58f47a8c43
Added a section to concatenate multiple js files together to make a "developer release" file
hamidouk
parents:
1
diff
changeset
|
5 |
<classpath> |
|
4e58f47a8c43
Added a section to concatenate multiple js files together to make a "developer release" file
hamidouk
parents:
1
diff
changeset
|
6 |
<pathelement location="../res/compiler.jar" /> |
|
4e58f47a8c43
Added a section to concatenate multiple js files together to make a "developer release" file
hamidouk
parents:
1
diff
changeset
|
7 |
</classpath> |
|
4e58f47a8c43
Added a section to concatenate multiple js files together to make a "developer release" file
hamidouk
parents:
1
diff
changeset
|
8 |
</taskdef> |
| 25 | 9 |
|
| 33 | 10 |
<taskdef resource="net/sf/antcontrib/antlib.xml"> |
11 |
<classpath> |
|
12 |
<pathelement location="../res/ant-contrib.jar"/> |
|
13 |
</classpath> |
|
14 |
</taskdef> |
|
15 |
|
|
| 25 | 16 |
<delete dir="${basedir}/../../build" /> |
17 |
<mkdir dir="${basedir}/../../build" /> |
|
| 33 | 18 |
|
|
494
cb88c0c8ddfa
removed clojure-compiler compilation from the default build. Added a couple
hamidouk
parents:
462
diff
changeset
|
19 |
<target name="makeall" depends="concatenate" /> |
| 33 | 20 |
|
21 |
<target name="make_templates" description="Concatenate the html templates together"> |
|
22 |
<for param="file"> |
|
23 |
<path> |
|
24 |
<fileset dir="../../src/templates" includes="*.html" /> |
|
25 |
</path> |
|
26 |
<sequential> |
|
27 |
|
|
28 |
<basename property="filename" file="@{file}"/> |
|
29 |
<basename property="filehead" file="@{file}" suffix=".html"/> |
|
30 |
|
|
31 |
<echo file="../../build/compiled_templates.js" append="yes" |
|
32 |
message="${line.separator}IriSP.${filehead}_template = "" /> |
|
33 |
|
|
34 |
<concat append="yes" destfile="../../build/compiled_templates.js"> |
|
35 |
<filelist dir="../../src/templates" files="${filename}"></filelist> |
|
36 |
<filterchain> |
|
37 |
<striplinebreaks/> |
|
38 |
</filterchain> |
|
39 |
</concat> |
|
40 |
<echo file="../../build/compiled_templates.js" append="yes" message="";" /> |
|
41 |
|
|
42 |
<var name="filename" unset="true" /> |
|
43 |
<var name="filehead" unset="true" /> |
|
44 |
</sequential> |
|
45 |
</for> |
|
46 |
</target> |
|
|
494
cb88c0c8ddfa
removed clojure-compiler compilation from the default build. Added a couple
hamidouk
parents:
462
diff
changeset
|
47 |
|
| 33 | 48 |
<target name="concatenate" description="Build the developer release file" depends="make_templates"> |
| 29 | 49 |
<concat encoding="UTF-8" outputencoding="UTF-8" destfile="../../build/LdtPlayer-release.js"> |
|
51
1444edeae73f
Adding required popcorn files. Also changed the build file to include those
hamidouk
parents:
34
diff
changeset
|
50 |
<filelist dir="../../src/js/" files="header.js" /> |
|
421
d62a52c4bfa8
readded missing files to the build. Also removed jslint from the default build
hamidouk
parents:
389
diff
changeset
|
51 |
|
|
424
dcf7121b1202
fixed compilation order. It somehow made the unit tests choke.
hamidouk
parents:
421
diff
changeset
|
52 |
<filelist dir="../../src/js/libs" |
| 511 | 53 |
files="lab.js mustache.js underscore.js"/> |
|
424
dcf7121b1202
fixed compilation order. It somehow made the unit tests choke.
hamidouk
parents:
421
diff
changeset
|
54 |
|
|
421
d62a52c4bfa8
readded missing files to the build. Also removed jslint from the default build
hamidouk
parents:
389
diff
changeset
|
55 |
<!-- required file before everything else --> |
|
d62a52c4bfa8
readded missing files to the build. Also removed jslint from the default build
hamidouk
parents:
389
diff
changeset
|
56 |
<filelist dir="../../src/js" files="main.js" /> |
|
d62a52c4bfa8
readded missing files to the build. Also removed jslint from the default build
hamidouk
parents:
389
diff
changeset
|
57 |
|
|
d62a52c4bfa8
readded missing files to the build. Also removed jslint from the default build
hamidouk
parents:
389
diff
changeset
|
58 |
<!-- templates --> |
|
d62a52c4bfa8
readded missing files to the build. Also removed jslint from the default build
hamidouk
parents:
389
diff
changeset
|
59 |
<filelist dir="../../build" files="compiled_templates.js" /> |
|
d62a52c4bfa8
readded missing files to the build. Also removed jslint from the default build
hamidouk
parents:
389
diff
changeset
|
60 |
|
|
d62a52c4bfa8
readded missing files to the build. Also removed jslint from the default build
hamidouk
parents:
389
diff
changeset
|
61 |
<!-- core files --> |
|
700
c6933b86acba
switched build order to get IriSP.wrap available for functions in pop.js
hamidouk
parents:
511
diff
changeset
|
62 |
<filelist dir="../../src/js" files="utils.js pop.js data.js site.js ui.js widgets.js modules.js layout.js init.js" /> |
| 461 | 63 |
|
|
711
323205a7bd39
separated jwplayer code from pop.js and put it into its own folder, players/.
hamidouk
parents:
700
diff
changeset
|
64 |
<!-- players --> |
|
323205a7bd39
separated jwplayer code from pop.js and put it into its own folder, players/.
hamidouk
parents:
700
diff
changeset
|
65 |
<fileset dir="../../src/js/players" casesensitive="yes"> |
|
323205a7bd39
separated jwplayer code from pop.js and put it into its own folder, players/.
hamidouk
parents:
700
diff
changeset
|
66 |
<include name="**/*.js"/> |
|
323205a7bd39
separated jwplayer code from pop.js and put it into its own folder, players/.
hamidouk
parents:
700
diff
changeset
|
67 |
</fileset> |
|
323205a7bd39
separated jwplayer code from pop.js and put it into its own folder, players/.
hamidouk
parents:
700
diff
changeset
|
68 |
|
| 461 | 69 |
<!-- modules --> |
|
462
3583ef3b208b
added a modules dir to the build. moved mediafragment.js module inside it.
hamidouk
parents:
461
diff
changeset
|
70 |
<fileset dir="../../src/js/modules" casesensitive="yes"> |
|
3583ef3b208b
added a modules dir to the build. moved mediafragment.js module inside it.
hamidouk
parents:
461
diff
changeset
|
71 |
<include name="**/*.js"/> |
|
3583ef3b208b
added a modules dir to the build. moved mediafragment.js module inside it.
hamidouk
parents:
461
diff
changeset
|
72 |
</fileset> |
|
3583ef3b208b
added a modules dir to the build. moved mediafragment.js module inside it.
hamidouk
parents:
461
diff
changeset
|
73 |
|
|
421
d62a52c4bfa8
readded missing files to the build. Also removed jslint from the default build
hamidouk
parents:
389
diff
changeset
|
74 |
|
|
d62a52c4bfa8
readded missing files to the build. Also removed jslint from the default build
hamidouk
parents:
389
diff
changeset
|
75 |
<!-- widgets --> |
| 98 | 76 |
<fileset dir="../../src/js/widgets" casesensitive="yes"> |
77 |
<include name="**/*.js"/> |
|
78 |
</fileset> |
|
|
421
d62a52c4bfa8
readded missing files to the build. Also removed jslint from the default build
hamidouk
parents:
389
diff
changeset
|
79 |
|
|
d62a52c4bfa8
readded missing files to the build. Also removed jslint from the default build
hamidouk
parents:
389
diff
changeset
|
80 |
<!-- serializers --> |
|
108
62da43e72e30
broke the serializers across multiple files. added a newline to the end of
hamidouk
parents:
98
diff
changeset
|
81 |
<fileset dir="../../src/js/serializers" casesensitive="yes"> |
|
62da43e72e30
broke the serializers across multiple files. added a newline to the end of
hamidouk
parents:
98
diff
changeset
|
82 |
<include name="**/*.js"/> |
|
62da43e72e30
broke the serializers across multiple files. added a newline to the end of
hamidouk
parents:
98
diff
changeset
|
83 |
</fileset> |
| 29 | 84 |
<filterchain> |
85 |
<deletecharacters chars="" /> |
|
86 |
</filterchain> |
|
|
18
4e58f47a8c43
Added a section to concatenate multiple js files together to make a "developer release" file
hamidouk
parents:
1
diff
changeset
|
87 |
</concat> |
|
494
cb88c0c8ddfa
removed clojure-compiler compilation from the default build. Added a couple
hamidouk
parents:
462
diff
changeset
|
88 |
<delete file="../../build/compiled_templates.js" /> |
|
18
4e58f47a8c43
Added a section to concatenate multiple js files together to make a "developer release" file
hamidouk
parents:
1
diff
changeset
|
89 |
</target> |
| 97 | 90 |
|
|
494
cb88c0c8ddfa
removed clojure-compiler compilation from the default build. Added a couple
hamidouk
parents:
462
diff
changeset
|
91 |
<target name="minify" depends="concatenate"> |
|
cb88c0c8ddfa
removed clojure-compiler compilation from the default build. Added a couple
hamidouk
parents:
462
diff
changeset
|
92 |
<jscomp compilationLevel="simple" warning="quiet" debug="false" |
|
cb88c0c8ddfa
removed clojure-compiler compilation from the default build. Added a couple
hamidouk
parents:
462
diff
changeset
|
93 |
output="../../build/LdtPlayer.min.raw.js"> |
|
cb88c0c8ddfa
removed clojure-compiler compilation from the default build. Added a couple
hamidouk
parents:
462
diff
changeset
|
94 |
<externs dir="${basedir}/../../res/"> |
|
cb88c0c8ddfa
removed clojure-compiler compilation from the default build. Added a couple
hamidouk
parents:
462
diff
changeset
|
95 |
<file name="js/jquery.min.js" /> |
|
cb88c0c8ddfa
removed clojure-compiler compilation from the default build. Added a couple
hamidouk
parents:
462
diff
changeset
|
96 |
<file name="js/jquery.tools.min.js" /> |
|
cb88c0c8ddfa
removed clojure-compiler compilation from the default build. Added a couple
hamidouk
parents:
462
diff
changeset
|
97 |
<file name="js/jquery-ui.min.js" /> |
|
cb88c0c8ddfa
removed clojure-compiler compilation from the default build. Added a couple
hamidouk
parents:
462
diff
changeset
|
98 |
<file name="js/swfobject.js" /> |
|
cb88c0c8ddfa
removed clojure-compiler compilation from the default build. Added a couple
hamidouk
parents:
462
diff
changeset
|
99 |
</externs> |
|
cb88c0c8ddfa
removed clojure-compiler compilation from the default build. Added a couple
hamidouk
parents:
462
diff
changeset
|
100 |
<sources dir="${basedir}/../../build"> |
|
cb88c0c8ddfa
removed clojure-compiler compilation from the default build. Added a couple
hamidouk
parents:
462
diff
changeset
|
101 |
<file name="LdtPlayer-release.js" /> |
|
cb88c0c8ddfa
removed clojure-compiler compilation from the default build. Added a couple
hamidouk
parents:
462
diff
changeset
|
102 |
</sources> |
|
cb88c0c8ddfa
removed clojure-compiler compilation from the default build. Added a couple
hamidouk
parents:
462
diff
changeset
|
103 |
</jscomp> |
|
cb88c0c8ddfa
removed clojure-compiler compilation from the default build. Added a couple
hamidouk
parents:
462
diff
changeset
|
104 |
<concat destfile="../../build/LdtPlayer.min.js" |
|
cb88c0c8ddfa
removed clojure-compiler compilation from the default build. Added a couple
hamidouk
parents:
462
diff
changeset
|
105 |
append="false"> |
|
cb88c0c8ddfa
removed clojure-compiler compilation from the default build. Added a couple
hamidouk
parents:
462
diff
changeset
|
106 |
<filelist dir="../../src/js/" files="header.js" /> |
|
cb88c0c8ddfa
removed clojure-compiler compilation from the default build. Added a couple
hamidouk
parents:
462
diff
changeset
|
107 |
<filelist dir="../../build/" files="LdtPlayer.min.raw.js" /> |
|
cb88c0c8ddfa
removed clojure-compiler compilation from the default build. Added a couple
hamidouk
parents:
462
diff
changeset
|
108 |
</concat> |
|
cb88c0c8ddfa
removed clojure-compiler compilation from the default build. Added a couple
hamidouk
parents:
462
diff
changeset
|
109 |
<delete file="../../build/LdtPlayer.min.raw.js" /> |
|
cb88c0c8ddfa
removed clojure-compiler compilation from the default build. Added a couple
hamidouk
parents:
462
diff
changeset
|
110 |
</target> |
|
cb88c0c8ddfa
removed clojure-compiler compilation from the default build. Added a couple
hamidouk
parents:
462
diff
changeset
|
111 |
|
| 97 | 112 |
<property name="rhino.jar" value="${basedir}/../res/rhino.jar"/> |
113 |
<property name="jslint-wrapper.js" value="${basedir}/../res/jslint-wrapper.js"/> |
|
114 |
<property name="jslint.js" value="${basedir}/../res/jslint.js"/> |
|
115 |
|
|
116 |
<target name="jslint" description="Run jslint on the files" depends="concatenate"> |
|
117 |
<apply executable="java" parallel="false"> |
|
118 |
<filelist dir="../../build"> |
|
119 |
<file name="LdtPlayer-release.js"/> |
|
120 |
</filelist> |
|
121 |
<arg line="-jar"/> |
|
122 |
<arg path="${rhino.jar}"/> |
|
123 |
<arg path="${jslint-wrapper.js}"/> |
|
124 |
<arg path="${jslint.js}"/> |
|
125 |
</apply> |
|
126 |
</target> |
|
|
358
430c1a7a09de
got rid of useless LdtPlayer.js -moved the necessary lines of code in main.js
hamidouk
parents:
216
diff
changeset
|
127 |
</project> |