Commit 0edfacdb authored by Alexandre Julliard's avatar Alexandre Julliard

widl: Generate proxy/client/server files when requested explicitly even if they are empty.

parent 267987b8
......@@ -432,7 +432,7 @@ void write_client(ifref_t *ifaces)
if (!do_client)
return;
if (!iface)
if (do_everything && !ifaces)
return;
END_OF_LIST(iface);
......
......@@ -999,12 +999,12 @@ void write_proxies(ifref_t *ifaces)
int c;
if (!do_proxies) return;
if (!lcur) return;
END_OF_LIST(lcur);
if (do_everything && !ifaces) return;
init_proxy(ifaces);
if(!proxy) return;
END_OF_LIST(lcur);
cur = lcur;
while (cur) {
if (is_object(cur->iface->attrs) && !is_local(cur->iface->attrs))
......@@ -1012,8 +1012,6 @@ void write_proxies(ifref_t *ifaces)
cur = PREV_LINK(cur);
}
if (!proxy) return;
write_stubdesc();
print_proxy( "#if !defined(__RPC_WIN32__)\n");
......
......@@ -572,7 +572,7 @@ void write_server(ifref_t *ifaces)
if (!do_server)
return;
if (!ifaces)
if (do_everything && !ifaces)
return;
END_OF_LIST(iface);
......
......@@ -87,7 +87,7 @@ int debuglevel = DEBUGLEVEL_NONE;
int parser_debug, yy_flex_debug;
int pedantic = 0;
static int do_everything = 1;
int do_everything = 1;
int preprocess_only = 0;
int do_header = 0;
int do_typelib = 0;
......
......@@ -36,6 +36,7 @@ extern int debuglevel;
extern int win32;
extern int pedantic;
extern int do_everything;
extern int do_header;
extern int do_typelib;
extern int do_proxies;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment