Thanks! I was finally able to get it to compile on Windows by putting those flags here in the following locations in the Projucer (along with a few other things I already had in there):
If you want to add it to the docs, that is the Settings page for the Visual Studio 2019 Exporter.
But even so, building it the first time in VS2019 had nearly 6000 warnings from perfetto! I guess this would only happen the first time you build it and it “makes” the library (?), but if anyone’s interested, I suppressed all the errors by putting this at the head and tail of both perfetto.cc and perfetto.h:
#if _WINDOWS
#pragma warning( push )
#pragma warning( disable : 4127 ) // conditional expression is constant
#pragma warning( disable : 4996 ) // The POSIX name for this item is deprecated
#pragma warning( disable : 4459 ) // declaration hides global declaration
#pragma warning( disable : 4244 ) // conversion from ' ' to ' ', possible loss of data
#pragma warning( disable : 4267 ) // conversion from ' ' to ' ', possible loss of data
#pragma warning( disable : 4065 ) // switch statement contains 'default' but no 'case' labels
#pragma warning( disable : 4706 ) // assignment within conditional expression
#endif //_WINDOWS
(body...)
#if _WINDOWS
#pragma warning( pop )
#endif //_WINDOWS
The first disable (4127) is good for over 5500+ warnings itself.
I mentioned this over on the perfetto discord; I don’t know if they care about this kind of thing…