Additionally, add the support for the rending engine, meson.build files are in place in evas/modules/engines, only not used yet.
I think the whole file content in meson.build should be inside a if sys_windows. Like:
if sys_windows CONTENT OF THE MESON.BUILD else automatic_pkgfile = false endif
This will prevent building it on linux, and prevent .pc generation.
something like that :?
btw, in evil/meson.build I see 2 different things :
- line 3 : if target_machine.system() == 'windows' I think that it should be sys_windows (as it's the host, needed for cross compilation)
- line 60 : evil = declare_dependency() (in the else part) What does this do ?
Yes like this.
In evil/meson.build:3 yes. That is likely an artifact, from the time when sys_windows was not there. host_machine and target_machine are most of the time the same. At least if you do not change it in the cross-file.txt.
evil/meson.build:60: this is just a empty dependency, this is usefull as i do want to be able to just add evil where ever i need it. No matter if i am on windows or linux.