@cbloom: Building the Brotli command-line tool with MSVC only requires a small change (stdin/stdout will still not work, but I think there's a PR on GitHub for that):
Code:
diff --git a/tools/bro.cc b/tools/bro.cc
index 635751c..fd9d624 100644
--- a/tools/bro.cc
+++ b/tools/bro.cc
@@ -10,7 +10,16 @@
#include <stdio.h>
#include <sys/stat.h>
#include <sys/types.h>
-#include <unistd.h>
+#if defined(_MSC_VER)
+# include <io.h>
+# include <fcntl.h>
+# if !defined(STDIN_FILENO)
+# define STDIN_FILENO 0
+# define STDOUT_FILENO 1
+# endif
+#else
+# include <unistd.h>
+#endif
#include <ctime>
#include <string>
And then:
Code:
cl /O2 /GL /EHsc tools\bro.cc enc\*.cc dec\*.c