How to build Apache httpd cspnonce module for Windows?

  apache, build, mod, windows

I try to build cspnonce module for Apache httpd server for Windows. The repository is from https://github.com/wyday/mod_cspnonce. This is the first time I try to compile an Apache module by myself.

I put the source files in the Apache 2.4.51 source file root, then download and put apr, apr-uitl in src-lib folder, as the "additional include directories" of the project implies. But Visual Studio told me that it can’t find os.h, ap_config_layout.h, apr.h, <string.h>, Windows.h, etc. Do I need to do something first with Apache source code? For example, make ap_config_layout.h based on ap_config_layout.h.in? I totally have no clue why there are so many missing include files.

Any advice will be appreciated.

Gary

Source: Windows Questions

LEAVE A COMMENT