Minimal cmake support to build core nghttp2 library on Windows
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
CMakeLists.txt
LICENSE
README.md
nghttp2.rc

README.md

nghttp2-minimal-cmake

Minimal cmake support to build core nghttp2 library on Windows

This should of course live in the nghttp2 repository but it is not yet a perfect replacement for the existing makefile. (See future plans below.)

Instructions

  1. Download and unpack nghttp2-1.3.4.zip (the only version I tested) from https://nghttp2.org/.
  2. Copy the CMakeLists.txt file from this repository to the top-level nghttp2 source directory.
  3. Copy the nghttp2.rc file from this repository to the lib subdirectory of the top-level nghttp2 source directory.
  4. Open a Visual Studio command prompt with cmake in PATH and run the following commands from a scratch (build) directory:
cmake -DCMAKE_INSTALL_PREFIX=c:\path\to\install -G "NMake Makefiles" -DCMAKE_BUILD_TYPE=RelWithDebInfo c:\path\to\nghttp2-1.3.4
nmake
nmake install

History

  • 2015-10-06
    • Build static library too
  • 2015-10-05
    • Fix debug build settings (output filenames, _DEBUG)
    • Fix DLL linkage warnings due to missing define
    • Add .rc file and related build processing
    • Clean up version string manipulation
  • 2015-10-04
    • Automatically configure nghttp2ver.h
  • 2015-10-03
    • Initial version

Future plans

  1. Get the Python build working
  2. Look for other things that should be built
  3. Propose it to the nghttp2 project.

(Or just the last step if I don't find time to work on it further.)

Pull requests and issues

Feel free to send pull requests for problems you find and fix.