aboutsummaryrefslogtreecommitdiff
path: root/Mkfiles/vc9/yasm.rules
blob: ee1fefbcaf680cc9c4c4e3469474f377c0f944b6 (plain)
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
<?xml version="1.0" encoding="utf-8"?>
<VisualStudioToolFile
	Name="Yasm"
	Version="8.00"
	>
  <Rules>
    <CustomBuildRule
			Name="YASM"
			DisplayName="Yasm Assembler"
			CommandLine="yasm -Xvc -f $(PlatformName) [AllOptions] [AdditionalOptions] [Inputs]"
			Outputs="[$ObjectFileName]"
			FileExtensions="*.asm"
			ExecutionDescription="Assembling $(InputFileName)"
			ShowOnlyRuleProperties="false"
			>
      <Properties>
        <StringProperty
					Name="Defines"
					DisplayName="Definitions"
					Category="Pre-Defined Symbols"
					Description="Specify pre-defined symbols (&apos;symbol&apos; or &apos;symbol = value&apos;) "
					Switch="-D [value]"
					Delimited="true"
					Inheritable="true"
				/>
        <StringProperty
					Name="IncludePaths"
					DisplayName="Include Paths"
					Category="Configuration"
					Description="Set the paths for any additional include files"
					Switch="-I [value]"
					Delimited="true"
					Inheritable="true"
				/>
        <StringProperty
					Name="UnDefines"
					DisplayName="Remove Definitions"
					Category="Pre-Defined Symbols"
					Description="Remove pre-defined symbols "
					Switch="-U [value]"
					Delimited="true"
					Inheritable="true"
				/>
        <StringProperty
					Name="ObjectFileName"
					DisplayName="Object File Name"
					Category="Output"
					Description="Select the output file name"
					Switch="-o [value]"
					DefaultValue="$(IntDir)\$(InputName).obj"
				/>
        <StringProperty
					Name="ListFileName"
					DisplayName="List File Name"
					Category="Output"
					Description="Select an output listing by setting its file name"
					Switch="-l [value]"
				/>
        <StringProperty
					Name="PreIncludeFile"
					DisplayName="Pre Include File"
					Category="Configuration"
					Description="Select a pre-included file by setting its name"
					Switch="-P [value]"
				/>
        <BooleanProperty
					Name="Debug"
					DisplayName="Debug Information"
					Category="Output"
					Description="Generate debugging information"
					Switch="-g cv8"
				/>
        <EnumProperty
					Name="PreProc"
					DisplayName="Pre-Processor"
					Category="Configuration"
					Description="Select the pre-processor (&apos;nasm&apos; or &apos;raw&apos;)"
					>
          <Values>
            <EnumValue
							Value="0"
							Switch="-rnasm"
							DisplayName="Nasm "
						/>
            <EnumValue
							Value="1"
							Switch="-rraw"
							DisplayName="Raw"
						/>
          </Values>
        </EnumProperty>
        <EnumProperty
					Name="Parser"
					DisplayName="Parser"
					Category="Configuration"
					Description="Select the parser for Intel (&apos;nasm&apos;) or AT&amp;T ( &apos;gas&apos;) syntax"
					>
          <Values>
            <EnumValue
							Value="0"
							Switch="-pnasm"
							DisplayName="Nasm"
						/>
            <EnumValue
							Value="1"
							Switch="-pgas"
							DisplayName="Gas"
						/>
          </Values>
        </EnumProperty>
      </Properties>
    </CustomBuildRule>
  </Rules>
</VisualStudioToolFile>