NAnt
![]() ![]() ![]() |
v0.85-rc1 |
[This is preliminary documentation and subject to change.]
This tasks allows you to run MIDL.exe.
This task only supports a small subset of the MIDL.EXE command line switches, but you can use the options element to specify any other unsupported commands you want to specify.
Attribute | Type | Description | Required |
---|---|---|---|
filename | string | Name of .IDL file to process. | True |
tlb | string | Specifies a file name for the type library generated by the MIDL compiler. | True |
acf | string | The /acf switch allows the user to supply an explicit ACF file name. The switch also allows the use of different interface names in the IDL and ACF files. | False |
align | string | The /align switch is functionally the same as the MIDL /Zp option and is recognized by the MIDL compiler solely for backward compatibility with MkTypLib. | False |
app_config | bool | The /app_config switch selects application-configuration mode, which allows you to use some ACF keywords in the IDL file. With this MIDL compiler switch, you can omit the ACF and specify an interface in a single IDL file. | False |
char | string | The /char switch helps to ensure that the MIDL compiler and C compiler operate together correctly for all char and small types. | False |
client | string | The /client switch directs the MIDL compiler to generate client-side C source files for an RPC interface | False |
cstub | string | The /cstub switch specifies the name of the client stub file for an RPC interface. | False |
dlldata | string | The /dlldata switch is used to specify the file name for the generated dlldata file for a proxy DLL. The default file name Dlldata.c is used if the /dlldata switch is not specified. | False |
env | string | The /env switch selects the environment in which the application runs. | False |
header | string | Specifies the name of the header file. | False |
iid | string | Specifies the name of the interface identifier file for a COM interface, overriding the default name obtained by adding _i.c to the IDL file name. | False |
Oi | string | The /Oi switch directs the MIDL compiler to use a fully-interpreted marshaling method. The /Oic and /Oicf switches provide additional performance enhancements. | False |
proxy | string | Specifies the name of the interface proxy file for a COM interface. | False |
failonerror | bool | Determines if task failure stops the build, or is just reported. The default is true. | False |
if | bool | If true then the task will be executed; otherwise, skipped. The default is true. | False |
timeout | int | The maximum amount of time the application is allowed to execute, expressed in milliseconds. Defaults to no time-out. | False |
unless | bool | Opposite of if . If false then the task will be executed; otherwise, skipped. The default is false. |
False |
verbose | bool | Determines whether the task should report detailed build log messages. The default is false. | False |
Attribute | Type | Description | Required |
---|---|---|---|
exename | string | The name of the executable that should be used to launch the external program. | False |
useruntimeengine | bool | Specifies whether the external program should be executed using a runtime engine, if configured. The default is false. | False |
Contains a collection of Option elements.
Contains a collection of Option elements.
Contains a collection of Argument elements.
<midl env="win32" Oi="cf" tlb="${outputdir}\TempAtl.tlb" header="${outputdir}\TempAtl.h" iid="${outputdir}\TempAtl_i.c" proxy="${outputdir}\TempAtl_p.c" filename="TempAtl.idl" > <defines> <define name="_DEBUG"/> <define name="WIN32" value="1"/> </defines> <options> <option name="/mktyplib203"/> <option name="/error" value="allocation"/> </options> </midl>