On Wed Apr 19 15:58:24 2023 +0000, Rémi Bernon wrote:
I guess this will need to be supported in `tools/make_makefiles` too? I don't know if it would need to also check the `.xml` contents as done here to check that the files are indeed wayland protocols, but if yes (as would be nice) you can probably have a look at how it's done for IDL files with `get_makedep_flags`. Alternatively, instead of reading the contents (and as checking for `<protocol name=` seems a little bit brittle), maybe we can use a specific extension or assume all `.xml` inside `winewayland.drv` will be protocol files and rely on the module directory name?
I have updated the code in `tools/makedep.c` to rely on the module directory name to infer that the .xml is a wayland protocol file. I have also updated `tools/make_makefiles` accordingly.