-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.xml
222 lines (199 loc) · 7.12 KB
/
build.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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
<?xml version="1.0" encoding="UTF-8"?>
<!-- ======================================================================
# Alni Large Time Watch Face #
A Watch Face for Garmin Connect IQ devices.
by Alexander Nilsen
====================================================================== -->
<project name="project" default="default">
<description>
description
</description>
<!-- =================================
target: default
================================= -->
<target name="default" depends="depends" description="description">
</target>
<!-- - - - - - - - - - - - - - - - - -
target: depends
- - - - - - - - - - - - - - - - - -->
<target name="depends" depends="copy-resources">
</target>
<!--
[Macro] Copy sub-folder from specific Resource folder to another
-->
<macrodef name="copy_res_folder">
<attribute name="dir" />
<attribute name="from" />
<attribute name="to" />
<sequential>
<!--<copy todir="@{todir}">-->
<copy todir="resources-@{to}/@{dir}">
<fileset dir="resources-@{from}/@{dir}">
<!-- <exclude name='**/*svn' /> -->
</fileset>
</copy>
</sequential>
</macrodef>
<!--
[Macro] Copy Icon from marketing for specific device
-->
<macrodef name="copy_launcher_icon">
<attribute name="from" default="default" />
<attribute name="to-device" />
<sequential>
<!--<copy todir="@{todir}">-->
<copy
todir="resources-@{to-device}/drawables"
file="marketing/icons/@{from}/launcher_icon.png">
</copy>
</sequential>
</macrodef>
<!--
[Macro] Copy Layout Resources from one device to another
-->
<macrodef name="copy_layouts">
<attribute name="from-device" />
<attribute name="to-device" />
<sequential>
<copy_res_folder dir="layouts" from="@{from-device}" to="@{to-device}" />
<!--<copy todir="@{todir}">- ->
<copy todir="resources-@{to-device}/layouts">
<fileset dir="resources-@{from-device}/layouts">
<!- - <exclude name='**/*svn' /> - ->
</fileset>
</copy>-->
</sequential>
</macrodef>
<!--
[Macro] Copy String Resources from one folder to another
-->
<macrodef name="copy_strings">
<attribute name="from" />
<attribute name="to" />
<sequential>
<!--<copy todir="@{todir}">-->
<copy todir="resources-@{to}/strings">
<fileset dir="resources-@{from}/strings">
<!-- <exclude name='**/*svn' /> -->
</fileset>
</copy>
</sequential>
</macrodef>
<!--
[Macro] Copy Color Settings from custom base folder to specific device
-->
<macrodef name="copy_color_settings">
<attribute name="colors" />
<attribute name="device" />
<sequential>
<!--<copy todir="@{todir}">-->
<copy todir="resources-@{device}/settings">
<fileset dir="resources-@{colors}color/settings">
<!-- <exclude name='**/*svn' /> -->
</fileset>
</copy>
</sequential>
</macrodef>
<!--
[Macro] Copy 64 Color Settings from custom base folder to specific device
-->
<macrodef name="copy_64color_settings">
<!--<attribute name="todir"/>-->
<attribute name="device"/>
<sequential>
<copy_color_settings colors="64" device="@{device}" />
<!--<copy todir="@{todir}">-
<copy todir="resources-@{device}/settings">
<fileset dir="resources-64color/settings">
<!- <exclude name='**/*svn' /> -
</fileset>
</copy>-->
</sequential>
</macrodef>
<!--
[Macro] Copy 16 Color Settings from custom base folder to specific device
-->
<macrodef name="copy_16color_settings">
<!--<attribute name="todir"/>-->
<attribute name="device"/>
<sequential>
<copy_color_settings colors="16" device="@{device}" />
<!--<copy todir="@{todir}">-
<copy todir="resources-@{device}/settings">
<fileset dir="resources-16color/settings">
<!- <exclude name='**/*svn' /> -
</fileset>
</copy>-->
</sequential>
</macrodef>
<!--
Copy all shared/common resources from similar devices (including icons,
layouts, color settings...)
-->
<target name="copy-resources" depends="copy_layouts,copy_16color_settings,copy_64color_settings">
<copy_launcher_icon to-device="fenix3" />
<copy_launcher_icon to-device="fenix3_hr" />
<copy_launcher_icon to-device="d2bravo" />
<copy_launcher_icon to-device="d2bravo_titanium" />
<copy_launcher_icon to-device="fenixchronos" />
<copy_launcher_icon to-device="fr230" />
<copy_launcher_icon to-device="fr235" />
<copy_launcher_icon to-device="fr630" />
<copy_launcher_icon to-device="fr735xt" />
<copy_launcher_icon to-device="fr920xt" from="fr920xt" />
<copy_launcher_icon to-device="vivoactive" from="vivoactive" />
<copy_launcher_icon to-device="vivoactive_hr" from="vivoactive_hr" />
</target>
<target name="copy-strings">
</target>
<!--
Copy shared layout resources from similar devices
-->
<target name="copy_layouts">
<copy_layouts from-device="fr230" to-device="fr235" />
<copy_layouts from-device="vivoactive" to-device="epix" />
<!--<copy todir="resources-fr235/layouts">
<fileset dir="resources-fr230/layouts"></fileset>
</copy>
<copy todir="resources-epix/layouts">
<fileset dir="resources-vivoactive/layouts"></fileset>
</copy>-->
</target>
<!--
Copy shared 16 color settings to supported devices
-->
<target name="copy_16color_settings">
<!--<copy_16color_settings todir="resources-fenix3/settings" />
<copy_16color_settings todir="resources-fenix3_hr/settings" />
<copy_16color_settings todir="resources-d2bravo/settings" />
<copy_16color_settings todir="resources-d2bravo_titanium/settings" />
<copy_16color_settings todir="resources-fr230/settings" />
<copy_16color_settings todir="resources-fr235/settings" />
<copy_16color_settings todir="resources-fr630/settings" />
<copy_16color_settings todir="resources-fr735xt/settings" />
<copy_16color_settings todir="resources-fr920xt/settings" />-->
<copy_16color_settings device="fenix3" />
<copy_16color_settings device="fenix3_hr" />
<copy_16color_settings device="d2bravo" />
<copy_16color_settings device="d2bravo_titanium" />
<copy_16color_settings device="fr230" />
<copy_16color_settings device="fr235" />
<copy_16color_settings device="fr630" />
<copy_16color_settings device="fr735xt" />
<copy_16color_settings device="fr920xt" />
</target>
<!--
Copy shared 64 color settings to supported devices
-->
<target name="copy_64color_settings">
<!--<copy_64color_settings todir="resources-epix/settings" />
<copy_64color_settings todir="resources-fenixchronos/settings" />
<copy_64color_settings todir="resources-vivoactive/settings" />
<copy_64color_settings todir="resources-vivoactive_hr/settings" />-->
<copy_64color_settings device="epix" />
<copy_64color_settings device="fenixchronos" />
<copy_64color_settings device="vivoactive" />
<copy_64color_settings device="vivoactive_hr" />
<copy_64color_settings device="vivoactive3" />
</target>
</project>