-
Notifications
You must be signed in to change notification settings - Fork 3
/
build-closure-modules.xml
51 lines (44 loc) · 2.06 KB
/
build-closure-modules.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
<!--
author: shawn.carrillo+chrome@gmail.com
date: 2012
ChromeExtensionPackage: https://github.com/scarrillo/ChromeExtensionPackage
Google Closure's Multi-module build syntax. This allows you to use advanced compile across multi-page packages
Module Syntax:
--module package-name:number-of-source-files:[dependency-package,dep,]
-->
<?xml version="1.0" encoding="UTF-8"?>
<project basedir="../" default="compile">
<target name="compile">
<property name="src" value="${basedir}/js-src/" />
<java jar="${basedir}/lib/compiler.jar"
fork="true"
failonerror="true"
maxmemory="128m">
<arg line="--compilation_level ADVANCED_OPTIMIZATIONS" />
<!-- <arg value="debug" /> -->
<arg line="--logging_level FINEST" />
<arg line="--warning_level VERBOSE" />
<arg line="--summary_detail_level 3" />
<!-- <arg line="formatting PRETTY_PRINT" /> -->
<!-- <arg line="create_source_map build/smap.js" /> -->
<!-- <arg line="source_map_format V2" /> -->
<arg line="--externs ${src}goog/extern.js" />
<arg line="--module package1:1" />
<arg line="--module package2:1:package1" />
<arg line="--module package3:4:package1,package2" />
<arg line="--module package4:1:package3" />
<arg line="--module_output_path_prefix ${basedir}/js/temp/_" />
<!-- package1 source files -->
<arg line="--js ${src}package1-source1.js" />
<!-- package2 source files -->
<arg line="--js ${src}package2-source1.js" />
<!-- package3 source files -->
<arg line="--js ${src}package3-source1.js" />
<arg line="--js ${src}package3-source2.js" />
<arg line="--js ${src}package3-source3.js" />
<arg line="--js ${src}package3-source4.js" />
<!-- package4 source files -->
<arg line="--js ${src}package4-source1.js" />
</java>
</target>
</project>