-
Notifications
You must be signed in to change notification settings - Fork 10
/
Copy pathduell.py.generalArguments
270 lines (224 loc) · 13.6 KB
/
duell.py.generalArguments
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
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
<?xml version="1.0" encoding="utf-8"?>
<args>
<documentation>
The Duell Tool is a command line tool for setting up, building and running applications on any platform.
It can also be used for other general tasks within app development. It is made in a modular way via plugins, and each plugin is a separate from the tool itself. The tool merges the needed plugin on execution.
The execution of the tool is always "duell" followed by a command such as "build" or "setup" and then a plugin name like "ios" or "emptyProject". For example, "duell build ios" will run the command "build" with the "ios" plugin. For a listing of the possible commands, look below. You can also pass additional parameters to execution by prefixing with "-", e.g. "duell build ios -verbose". Look below for a list of arguments that are general to any command or plugin.
</documentation>
<arg name="-nocolor" type="void">
<documentation>
Color markup will be stripped out of the output. Use this if your terminal does not support colors.
</documentation>
</arg>
<arg name="-mute" type="void">
<documentation>
No output will be printed at all.
</documentation>
</arg>
<arg name="-verbose" type="void">
<documentation>
Every possible logging information will be shown...
</documentation>
</arg>
<arg name="-fast" type="void" >
<documentation>
This is used in the build command. Use this command if you are just iterating haxe code, and want to quickly build and run the app. In order to be able to use it, just build and run once normally on any platform, and then run with "-fast" afterwards.
</documentation>
</arg>
<arg name="-yestoall" type="void" >
<documentation>
Answers "y" to all questions and default to all questions.
</documentation>
</arg>
<arg name="-testport" type="int" >
<documentation>
Define a port number to be used by unittest.TestHTTPLogger and Python test result listener.
</documentation>
</arg>
<command name="run" class="RunCommand" hasPlugin="true">
<documentation>
Compiles and runs an executable in any duelllib which implemented the run plugin step. Can be used to include, configure and run arbitrary external tools into the duell ecosystem: duell run myScript. myScript need to be a library which is accessible from a repo_list and has the duell.run.main.RunMain.hx file.
</documentation>
</command>
<command name="create" class="CreateCommand" hasPlugin="true">
<documentation>
Can be used for creating a default project in current folder like: duell create emptyProject.
</documentation>
</command>
<command name="setup" class="EnvironmentSetupCommand" hasPlugin="true" >
<documentation>
Runs a specified setup. This is usually and environment setup that needs to be run once for a specified platform. Such as, setup android to be able to build for android.
</documentation>
<args>
<arg name="-v" type="string" >
<documentation>
Specify that you want to run a specific setup version.
</documentation>
</arg>
</args>
</command>
<command name="self_setup" class="ToolSetupCommand" hasPlugin="false" >
<documentation>
Basic setup for the duell tool. It checks/creates a folder .duell in your home folder. Inside that folder a config file is created and the tool itself is downloaded, installed into haxelib and 'duell' command installed into the command line environment.
</documentation>
</command>
<command name="update" class="UpdateCommand" hasPlugin="false" >
<documentation>
This command will check all the dependencies of the current project in the current directory and update accordingly. This command will run automatically on the build command every time you change project and every 4 hours.
</documentation>
<args>
<arg name="-overridebranch" type="string">
<documentation>
This argument is used in the versioning. If a repo contains a branch with the specified name, then that branch will be used regardless. This feature is useful if you are developing a feature accross multiple libraries, and want to provide an easy to change to that feature development.
</documentation>
</arg>
<arg name="-rc" type="void">
<documentation>
This argument is used in the versioning. If you specify this argument, then tags that include the RC tag, such as 2.0.0-rc, will be considered.
</documentation>
</arg>
<arg name="-log" type="void" >
<documentation>
Will log used duell and haxe libraries after running an update to be able to recreate this version.
</documentation>
</arg>
<arg name="-logFile" type="string" >
<documentation>
Add a path to your log file to recreate the last logged version.
</documentation>
</arg>
<arg name="-target" type="string" >
<documentation>
Target a specific platform you want to run the updates for. If not setted, the tool will update all dependend libraries.
</documentation>
</arg>
</args>
</command>
<command name="dependencies" class="DependencyCommand" hasPlugin="false">
<documentation>
This command will help you figuring out where are dependencies between libraries and configuring them, if needed.
</documentation>
<args>
<arg name="-project" type="void">
<documentation>
Use this flag to get the configured library dependencies of your project.
</documentation>
</arg>
</args>
</command>
<command name="repo_list" class="RepoConfigCommand" hasPlugin="false" >
<documentation>
Shows the repository list. You can add and remove urls from it with the arguments you find in repo_list -help.
</documentation>
<args>
<arg name="-add" type="string">
<documentation>
Adds a new url to the end of the repository list
</documentation>
</arg>
<arg name="-addFront" type="string">
<documentation>
Adds a new url to front of the repository list
</documentation>
</arg>
<arg name="-remove" type="string">
<documentation>
Removes a url from the repository list
</documentation>
</arg>
<arg name="-removeAll" type="void">
<documentation>
Removes all urls from the repository list. Resets to the default url.
</documentation>
</arg>
<arg name="-reverse" type="void">
<documentation>
Reverses the order of all urls in the repository list.
</documentation>
</arg>
<arg name="-duplicates" type="void">
<documentation>
List the duplicated repository keys.
</documentation>
</arg>
</args>
</command>
<command name="build" class="BuildCommand" hasPlugin="true">
<documentation>
To be run inside a project that has a duell_project.xml. Will build the specified platform.
</documentation>
<args>
<arg name="-publish" type="void" >
<documentation>
Works differently in each platform, but basically each platform plugin should output a releasable package. E.g. ios should sign the .app and compile in release without debugging information.
</documentation>
</arg>
<arg name="-noprebuild" type="void" >
<documentation>
Does not parse the configuration, meaning the changes to the .xml files are not processed. Also, does not process the template, meaning that files to do not get recopied, e.g. asset files. Requires that a command for this platform with prebuild enabled was previously successful.
</documentation>
</arg>
<arg name="-nobuild" type="void" >
<documentation>
Does not build. Haxe code does not get recompiled, and target platform app packages are not remade.Good for checking the prebuild step, or if you just want to run again without qbuilding.
</documentation>
</arg>
<arg name="-norun" type="void" >
<documentation>
The application won't run. Use this if you just want to check the prebuild or build steps.
</documentation>
</arg>
<arg name="-clean" type="void" >
<documentation>
Clean up the Export folder and the native extensions. When this argument is specified, nothing else is done except cleaning up. This shouldn't be needed to do, unless you update something like hxcpp or the haxe version. If something is going wrong, you didn't do anything special and this fixed it, that issue should be reported.
</documentation>
</arg>
<arg name="-test" type="void" >
<documentation>
Launches a server listening to a configured port and then runs the application. It expects that a result of the app is posted to the port, e.g. Unitest results. After the results come in, the application ends. To create a unittest project use "duell create unitTestProject".
</documentation>
</arg>
</args>
<configuration>
<elem name="app">
Use this to configure the title, package, company and filename (usually title without spaces) of your project. E.g.: <app title="Super Game" file="SuperGame" package="com.game.super" version="1.2.3" buildNumber="123" company="MegaGamesCompany" />
</elem>
<elem name="main">
Use this to set the class name of the Main Class in your application. E.g.: <main name="super.game.Main" />.
</elem>
<elem name="output">
Use this to set where the output of your build will go to. By default this is "Export". E.g.: <output path="Some/Folder" />.
</elem>
<elem name="supported-build-plugin">
Use this to specify that your project or library requires/supports a version of a build plugin. E.g.: <supported-build-plugin name="ios" version="1.5.0+" />.
</elem>
<elem name="supported-duell-tool">
Use this to specify that your project or library requires/supports a version of a duell tool. E.g.: <supported-duell-tool version="1.5.0+" />.
</elem>
<elem name="source">
Use this to set additional folders as Source folders for your build. By default the path where the configuration file is automatically set as a class path, so you probably only need to use this when you have a unstandard setup. E.g.: <source path="Some/Folder" />.
</elem>
<elem name="haxe-compile-arg">
Use this tag to add additional arguments to the haxe compilation. E.g.: <haxe-compile-arg value="--no-opt" />.
</elem>
<elem name="platform-config">
Inside this tag there will be configurations specific to each platform. To learn about them use "duell build 'platform' -help" for a complete list. Under this tag there will be one node for each platform and then under that node will be the configurations specific to the platform. E.g.: <platform-config> <ios> <icon path="Iconys/ios" /> </ios> </platform-config>.
</elem>
<elem name="library-config">
Inside this tag there will be configurations specific to a library. To learn about them consult the library documentation which is not currently integrated in the tool. Under this tag there will be one node for each library and then under that node will be the configurations specific to the library. E.g.: <library-config> <opengl> <depthbuffer value="true" /> </opengl> </library-config>.
</elem>
<elem name="haxelib">
Use this to use a haxelib. If its not installed, you will be prompted if you want to. You can also optionally request a specific version. E.g.: <haxelib name="format" version="1.0.0" />.
</elem>
<elem name="duelllib">
Use this to use a duelllib. If its not installed, you will be prompted if you want to. You can also optionally request a specific version. For an explanation of the versioning system check https://confluence.gameduell.de/display/SGF/Duell+Tool+versioning . E.g.: <duelllib name="opengl" version="1.*.*" />.
</elem>
<elem name="ndll">
Use this flag to link against a native library. This is usually used inside libraries. E.g.: <ndll name="openglcontextandroid" build-file-path="project/Build.xml" bin-path="ndll" /> .
</elem>
<elem name="include">
Use this to include another configuration file. This is specially used in backends of libraries to have specific configurations for a platform. E.g.: <include path="backends/openglcontext_android/duell_library.xml" />.
</elem>
</configuration>
</command>
</args>