Giter Site home page Giter Site logo

nginx-cmake's Introduction

nginx-cmake

Sometimes you need to integrate Nginx build into a larger project. If that project uses CMake, you have two options. Either try to wrap native Nginx build system using ExternalProject_Add(), or to rewrite build steps in CMake language.

Former is easier at start, but you lose control over that build part. Incremental builds become fragile, as CMake dependency extractor is not working for external projects.

Latter is a lot harder, but what you get is uniform build scripts, all in CMake. It's more reliable, and produces way less of clutter on a screen during build.

This repository contains solution in the second way. Scripts in CMake. There are:

Direct rewrite was a first attempt to make a CMake build script by manually reimplementing Nginx's build scripts. It targeted Nginx 1.11.6 and Linux, with other OS support dropped right away. That script most probably won't work for other Nginx versions, and definitely won't work on an OS other than GNU/Linux. There is also no dynamic modules support code.

Tracing script is a hack that by intercepting compiler (CC and CXX variables) learns what files to compile and what objects and libraries to link. There are more detailed explanations inside the script.

nginx-cmake's People

Contributors

i-rinat avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.