Skip to content

Commit 4226d21

Browse files
committed
Beautify nasm.xml
1 parent 8d9d419 commit 4226d21

1 file changed

Lines changed: 47 additions & 270 deletions

File tree

src/nasm.xml

Lines changed: 47 additions & 270 deletions
Original file line numberDiff line numberDiff line change
@@ -1,332 +1,109 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<ProjectSchemaDefinitions xmlns="http://schemas.microsoft.com/build/2009/properties" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:sys="clr-namespace:System;assembly=mscorlib">
3-
<Rule
4-
Name="NASM"
5-
PageTemplate="tool"
6-
DisplayName="Netwide Assembler"
7-
Order="200">
3+
<Rule Name="NASM" PageTemplate="tool" DisplayName="Netwide Assembler" Order="200">
84
<Rule.DataSource>
9-
<DataSource
10-
Persistence="ProjectFile"
11-
ItemType="NASM" />
5+
<DataSource Persistence="ProjectFile" ItemType="NASM" />
126
</Rule.DataSource>
137
<Rule.Categories>
14-
<Category
15-
Name="General">
8+
<Category Name="General">
169
<Category.DisplayName>
1710
<sys:String>General</sys:String>
1811
</Category.DisplayName>
1912
</Category>
20-
<Category
21-
Name="Preprocessor">
13+
<Category Name="Preprocessor">
2214
<Category.DisplayName>
2315
<sys:String>Preprocessing Options</sys:String>
2416
</Category.DisplayName>
2517
</Category>
26-
<Category
27-
Name="Assembler Options">
18+
<Category Name="Assembler Options">
2819
<Category.DisplayName>
2920
<sys:String>Assembler Options</sys:String>
3021
</Category.DisplayName>
3122
</Category>
32-
<Category
33-
Name="Advanced">
23+
<Category Name="Advanced">
3424
<Category.DisplayName>
3525
<sys:String>Advanced </sys:String>
3626
</Category.DisplayName>
3727
</Category>
38-
<Category
39-
Name="Command Line"
40-
Subtype="CommandLine">
28+
<Category Name="Command Line" Subtype="CommandLine">
4129
<Category.DisplayName>
4230
<sys:String>Command Line</sys:String>
4331
</Category.DisplayName>
4432
</Category>
4533
</Rule.Categories>
46-
<StringProperty
47-
Name="Inputs"
48-
Category="Command Line"
49-
IsRequired="true">
34+
<StringProperty Name="Inputs" Category="Command Line" IsRequired="true">
5035
<StringProperty.DataSource>
51-
<DataSource
52-
Persistence="ProjectFile"
53-
ItemType="NASM"
54-
SourceType="Item" />
36+
<DataSource Persistence="ProjectFile" ItemType="NASM" SourceType="Item" />
5537
</StringProperty.DataSource>
5638
</StringProperty>
57-
58-
<StringProperty
59-
Name="OutputFormat"
60-
Category="Assembler Options"
61-
HelpUrl="https://www.nasm.us/doc/"
62-
DisplayName="Output File Name"
63-
Description="Specify Output Filename. -o [value]"
64-
Switch="-o &quot;[value]&quot;"
65-
/>
66-
67-
<EnumProperty
68-
Name="Outputswitch"
69-
Category="Assembler Options"
70-
HelpUrl="https://www.nasm.us/doc/"
71-
DisplayName="Output Switch"
72-
Description="Select the type of output format required. Linking should be disabled for ELF and Binary, else error will popup">
73-
<EnumValue
74-
Name="0"
75-
DisplayName="Object File"
76-
Switch="-f win" />
77-
<EnumValue
78-
Name="1"
79-
DisplayName="Object File x64"
80-
Switch="-f win64" />
81-
<EnumValue
82-
Name="2"
83-
DisplayName="LINUX ELF FORMAT"
84-
Switch="-f elf" />
85-
<EnumValue
86-
Name="3"
87-
DisplayName="FLAT BINARY"
88-
Switch="-f bin" />
89-
39+
<StringProperty Name="OutputFormat" Category="Assembler Options" HelpUrl="https://www.nasm.us/doc/" DisplayName="Output File Name" Description="Specify Output Filename. -o [value]" Switch="-o &quot;[value]&quot;" />
40+
<EnumProperty Name="Outputswitch" Category="Assembler Options" HelpUrl="https://www.nasm.us/doc/" DisplayName="Output Switch" Description="Select the type of output format required. Linking should be disabled for ELF and Binary, else error will popup">
41+
<EnumValue Name="0" DisplayName="Object File" Switch="-f win" />
42+
<EnumValue Name="1" DisplayName="Object File x64" Switch="-f win64" />
43+
<EnumValue Name="2" DisplayName="LINUX ELF FORMAT" Switch="-f elf" />
44+
<EnumValue Name="3" DisplayName="FLAT BINARY" Switch="-f bin" />
9045
</EnumProperty>
91-
92-
<StringListProperty
93-
Name="AssembledCodeListingFile"
94-
Category="Assembler Options"
95-
DisplayName="Assembled Code Listing File"
96-
Description="Generates an assembled code listing file. (-l [file])"
97-
HelpUrl="https://www.nasm.us/doc/"
98-
Switch="-l &quot;[value]&quot;"
99-
/>
100-
101-
<BoolProperty
102-
Name="GenerateDebugInformation"
103-
Category="Assembler Options"
104-
DisplayName="Generate Debug Information"
105-
Description="Generates Debug Information. (-g)"
106-
HelpUrl="https://www.nasm.us/doc/"
107-
Switch="-g"
108-
/>
109-
110-
<StringListProperty
111-
Name="ErrorReporting"
112-
Category="Advanced"
113-
HelpUrl="https://www.nasm.us/doc/"
114-
DisplayName="Redirect Error Messages to File"
115-
Description="Drops the error Message on specified device"
116-
Switch="-Z &quot;[value]&quot;"
117-
/>
118-
119-
<StringListProperty
120-
Name="IncludePaths"
121-
Category="General"
122-
DisplayName="Include Paths"
123-
Description="Sets path for include file. (-I[path])"
124-
HelpUrl="https://www.nasm.us/doc/"
125-
Switch="-I[value]"
126-
127-
/>
128-
129-
<StringListProperty
130-
Name="PreprocessorDefinitions"
131-
Category="Preprocessor"
132-
HelpUrl="https://www.nasm.us/doc/"
133-
DisplayName="Preprocessor Definitions"
134-
Description="Defines a text macro with the given name. (-D[symbol])"
135-
Switch="-D[value]"
136-
137-
/>
138-
139-
<StringListProperty
140-
Name="UndefinePreprocessorDefinitions"
141-
Category="Preprocessor"
142-
HelpUrl="https://www.nasm.us/doc/"
143-
DisplayName="Undefine Preprocessor Definitions"
144-
Description="Undefines a text macro with the given name. (-U[symbol])"
145-
Switch="-U[value]"
146-
/>
147-
148-
<EnumProperty
149-
Name="ErrorReportingFormat"
150-
Category="Advanced"
151-
HelpUrl="https://www.nasm.us/doc/"
152-
DisplayName="Error Reporting Format"
153-
Description="Select the error reporting format ie. GNU or VC">
154-
<EnumValue
155-
Name="0"
156-
DisplayName="-Xgnu GNU format: Default format"
157-
Switch="-Xgnu" />
158-
<EnumValue
159-
Name="1"
160-
DisplayName="-Xvc Style used by Microsoft Visual C++"
161-
Switch="-Xvc" />
46+
<StringListProperty Name="AssembledCodeListingFile" Category="Assembler Options" DisplayName="Assembled Code Listing File" Description="Generates an assembled code listing file. (-l [file])" HelpUrl="https://www.nasm.us/doc/" Switch="-l &quot;[value]&quot;" />
47+
<BoolProperty Name="GenerateDebugInformation" Category="Assembler Options" DisplayName="Generate Debug Information" Description="Generates Debug Information. (-g)" HelpUrl="https://www.nasm.us/doc/" Switch="-g" />
48+
<StringListProperty Name="ErrorReporting" Category="Advanced" HelpUrl="https://www.nasm.us/doc/" DisplayName="Redirect Error Messages to File" Description="Drops the error Message on specified device" Switch="-Z &quot;[value]&quot;" />
49+
<StringListProperty Name="IncludePaths" Category="General" DisplayName="Include Paths" Description="Sets path for include file. (-I[path])" HelpUrl="https://www.nasm.us/doc/" Switch="-I[value]" />
50+
<StringListProperty Name="PreprocessorDefinitions" Category="Preprocessor" HelpUrl="https://www.nasm.us/doc/" DisplayName="Preprocessor Definitions" Description="Defines a text macro with the given name. (-D[symbol])" Switch="-D[value]" />
51+
<StringListProperty Name="UndefinePreprocessorDefinitions" Category="Preprocessor" HelpUrl="https://www.nasm.us/doc/" DisplayName="Undefine Preprocessor Definitions" Description="Undefines a text macro with the given name. (-U[symbol])" Switch="-U[value]" />
52+
<EnumProperty Name="ErrorReportingFormat" Category="Advanced" HelpUrl="https://www.nasm.us/doc/" DisplayName="Error Reporting Format" Description="Select the error reporting format ie. GNU or VC">
53+
<EnumValue Name="0" DisplayName="-Xgnu GNU format: Default format" Switch="-Xgnu" />
54+
<EnumValue Name="1" DisplayName="-Xvc Style used by Microsoft Visual C++" Switch="-Xvc" />
16255
</EnumProperty>
163-
164-
<BoolProperty
165-
Name="TreatWarningsAsErrors"
166-
Category="Assembler Options"
167-
DisplayName="Treat Warnings As Errors"
168-
Description="Returns an error code if warnings are generated. (-Werror)"
169-
HelpUrl="https://www.nasm.us/doc/"
170-
Switch="-Werror"
171-
/>
172-
173-
<BoolProperty
174-
Name="floatunderflow"
175-
Category="Advanced"
176-
HelpUrl="https://www.nasm.us/doc/"
177-
DisplayName="float-underflow"
178-
Description="floating point underflow (default off)"
179-
Switch="-w+float-underflow" />
180-
181-
<BoolProperty
182-
Name="macrodefaults"
183-
Category="Advanced"
184-
HelpUrl="https://www.nasm.us/doc/"
185-
DisplayName="Disable macro-defaults"
186-
Description="macros with more default than optional parameters (default on)"
187-
Switch="-w-macro-defaults" />
188-
189-
<BoolProperty
190-
Name="user"
191-
Category="Advanced"
192-
HelpUrl="https://www.nasm.us/doc/"
193-
DisplayName="Disable user"
194-
Description="%warning directives (default on)"
195-
Switch="-w-user" />
196-
197-
<BoolProperty
198-
Name="floatoverflow"
199-
Category="Advanced"
200-
HelpUrl="https://www.nasm.us/doc/"
201-
DisplayName="Disable float-overflow"
202-
Description="floating point overflow (default on)"
203-
Switch="-w-float-overflow" />
204-
205-
<BoolProperty
206-
Name="floatdenorm"
207-
Category="Advanced"
208-
HelpUrl="https://www.nasm.us/doc/"
209-
DisplayName="float-denorm"
210-
Description="floating point denormal (default off)"
211-
Switch="-w+float-denorm" />
212-
213-
<BoolProperty
214-
Name="numberoverflow"
215-
Category="Advanced"
216-
HelpUrl="https://www.nasm.us/doc/"
217-
DisplayName="Disable number-overflow"
218-
Description="numeric constant does not fit (default on)"
219-
Switch="-w-number-overflow" />
220-
221-
<BoolProperty
222-
Name="macroselfref"
223-
Category="Advanced"
224-
HelpUrl="https://www.nasm.us/doc/"
225-
DisplayName="macro-selfref"
226-
Description="cyclic macro references (default off)"
227-
Switch="-w+macro-selfref" />
228-
229-
<BoolProperty
230-
Name="floattoolong"
231-
Category="Advanced"
232-
HelpUrl="https://www.nasm.us/doc/"
233-
DisplayName="Disable float-toolong"
234-
Description=" too many digits in floating-point number (default on)"
235-
Switch="-w-float-toolong" />
236-
237-
<BoolProperty
238-
Name="orphanlabels"
239-
Category="Advanced"
240-
HelpUrl="https://www.nasm.us/doc/"
241-
DisplayName="Disable orphan-labels"
242-
Description="labels alone on lines without trailing `:' (default on)"
243-
Switch="-w-orphan-labels" />
244-
245-
<StringProperty
246-
Name="CommandLineTemplate"
247-
DisplayName="Command Line"
248-
Visible="False"
249-
IncludeInCommandLine="False" />
250-
251-
<DynamicEnumProperty
252-
Name="NASMBeforeTargets"
253-
Category="General"
254-
EnumProvider="Targets"
255-
IncludeInCommandLine="False">
56+
<BoolProperty Name="TreatWarningsAsErrors" Category="Assembler Options" DisplayName="Treat Warnings As Errors" Description="Returns an error code if warnings are generated. (-Werror)" HelpUrl="https://www.nasm.us/doc/" Switch="-Werror" />
57+
<BoolProperty Name="floatunderflow" Category="Advanced" HelpUrl="https://www.nasm.us/doc/" DisplayName="float-underflow" Description="floating point underflow (default off)" Switch="-w+float-underflow" />
58+
<BoolProperty Name="macrodefaults" Category="Advanced" HelpUrl="https://www.nasm.us/doc/" DisplayName="Disable macro-defaults" Description="macros with more default than optional parameters (default on)" Switch="-w-macro-defaults" />
59+
<BoolProperty Name="user" Category="Advanced" HelpUrl="https://www.nasm.us/doc/" DisplayName="Disable user" Description="%warning directives (default on)" Switch="-w-user" />
60+
<BoolProperty Name="floatoverflow" Category="Advanced" HelpUrl="https://www.nasm.us/doc/" DisplayName="Disable float-overflow" Description="floating point overflow (default on)" Switch="-w-float-overflow" />
61+
<BoolProperty Name="floatdenorm" Category="Advanced" HelpUrl="https://www.nasm.us/doc/" DisplayName="float-denorm" Description="floating point denormal (default off)" Switch="-w+float-denorm" />
62+
<BoolProperty Name="numberoverflow" Category="Advanced" HelpUrl="https://www.nasm.us/doc/" DisplayName="Disable number-overflow" Description="numeric constant does not fit (default on)" Switch="-w-number-overflow" />
63+
<BoolProperty Name="macroselfref" Category="Advanced" HelpUrl="https://www.nasm.us/doc/" DisplayName="macro-selfref" Description="cyclic macro references (default off)" Switch="-w+macro-selfref" />
64+
<BoolProperty Name="floattoolong" Category="Advanced" HelpUrl="https://www.nasm.us/doc/" DisplayName="Disable float-toolong" Description=" too many digits in floating-point number (default on)" Switch="-w-float-toolong" />
65+
<BoolProperty Name="orphanlabels" Category="Advanced" HelpUrl="https://www.nasm.us/doc/" DisplayName="Disable orphan-labels" Description="labels alone on lines without trailing `:' (default on)" Switch="-w-orphan-labels" />
66+
<StringProperty Name="CommandLineTemplate" DisplayName="Command Line" Visible="False" IncludeInCommandLine="False" />
67+
<DynamicEnumProperty Name="NASMBeforeTargets" Category="General" EnumProvider="Targets" IncludeInCommandLine="False">
25668
<DynamicEnumProperty.DisplayName>
25769
<sys:String>Execute Before</sys:String>
25870
</DynamicEnumProperty.DisplayName>
25971
<DynamicEnumProperty.Description>
26072
<sys:String>Specifies the targets for the build customization to run before.</sys:String>
26173
</DynamicEnumProperty.Description>
26274
<DynamicEnumProperty.ProviderSettings>
263-
<NameValuePair
264-
Name="Exclude"
265-
Value="^NASMBeforeTargets|^Compute" />
75+
<NameValuePair Name="Exclude" Value="^NASMBeforeTargets|^Compute" />
26676
</DynamicEnumProperty.ProviderSettings>
26777
<DynamicEnumProperty.DataSource>
268-
<DataSource
269-
Persistence="ProjectFile"
270-
ItemType=""
271-
HasConfigurationCondition="true" />
78+
<DataSource Persistence="ProjectFile" ItemType="" HasConfigurationCondition="true" />
27279
</DynamicEnumProperty.DataSource>
27380
</DynamicEnumProperty>
274-
<DynamicEnumProperty
275-
Name="NASMAfterTargets"
276-
Category="General"
277-
EnumProvider="Targets"
278-
IncludeInCommandLine="False">
81+
<DynamicEnumProperty Name="NASMAfterTargets" Category="General" EnumProvider="Targets" IncludeInCommandLine="False">
27982
<DynamicEnumProperty.DisplayName>
28083
<sys:String>Execute After</sys:String>
28184
</DynamicEnumProperty.DisplayName>
28285
<DynamicEnumProperty.Description>
28386
<sys:String>Specifies the targets for the build customization to run after.</sys:String>
28487
</DynamicEnumProperty.Description>
28588
<DynamicEnumProperty.ProviderSettings>
286-
<NameValuePair
287-
Name="Exclude"
288-
Value="^NASMAfterTargets|^Compute" />
89+
<NameValuePair Name="Exclude" Value="^NASMAfterTargets|^Compute" />
28990
</DynamicEnumProperty.ProviderSettings>
29091
<DynamicEnumProperty.DataSource>
291-
<DataSource
292-
Persistence="ProjectFile"
293-
ItemType=""
294-
HasConfigurationCondition="true" />
92+
<DataSource Persistence="ProjectFile" ItemType="" HasConfigurationCondition="true" />
29593
</DynamicEnumProperty.DataSource>
29694
</DynamicEnumProperty>
297-
<StringProperty
298-
Name="ExecutionDescription"
299-
DisplayName="Execution Description"
300-
IncludeInCommandLine="False"
301-
Visible="False" />
302-
303-
<StringListProperty
304-
Name="AdditionalDependencies"
305-
DisplayName="Additional Dependencies"
306-
IncludeInCommandLine="False"
307-
Visible="False" />
308-
309-
<StringProperty
310-
Subtype="AdditionalOptions"
311-
Name="AdditionalOptions"
312-
Category="Command Line">
95+
<StringProperty Name="ExecutionDescription" DisplayName="Execution Description" IncludeInCommandLine="False" Visible="False" />
96+
<StringListProperty Name="AdditionalDependencies" DisplayName="Additional Dependencies" IncludeInCommandLine="False" Visible="False" />
97+
<StringProperty Subtype="AdditionalOptions" Name="AdditionalOptions" Category="Command Line">
31398
<StringProperty.DisplayName>
31499
<sys:String>Additional Options</sys:String>
315100
</StringProperty.DisplayName>
316101
<StringProperty.Description>
317102
<sys:String>Additional Options</sys:String>
318103
</StringProperty.Description>
319104
</StringProperty>
320-
321105
</Rule>
322-
<ItemType
323-
Name="NASM"
324-
DisplayName="Netwide Assembler" />
325-
<FileExtension
326-
Name="*.asm"
327-
ContentType="NASM" />
328-
<ContentType
329-
Name="NASM"
330-
DisplayName="Netwide Assembler"
331-
ItemType="NASM" />
106+
<ItemType Name="NASM" DisplayName="Netwide Assembler" />
107+
<FileExtension Name="*.asm" ContentType="NASM" />
108+
<ContentType Name="NASM" DisplayName="Netwide Assembler" ItemType="NASM" />
332109
</ProjectSchemaDefinitions>

0 commit comments

Comments
 (0)