Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to build #6

Open
hundanLi opened this issue Jul 15, 2023 · 1 comment
Open

How to build #6

hundanLi opened this issue Jul 15, 2023 · 1 comment

Comments

@hundanLi
Copy link

After running generate.py, How to build nginx with cmake?

@i-rinat
Copy link
Owner

i-rinat commented Jul 23, 2023

Well, you take what's generated in the out directory, copy relevant parts of Nginx's src to that, and then build as usual CMake projects. I like to create build subdirectory, call cmake .. there, and then run make. That creates nginx binary.

However the whole point of creating CMakeLists.txt by the generate.py script was to integrate it into something else. Here is why there are extension points (optional PreLists.txt and PostLists.txt) and missing project() statement. This is intended to be kept in a subdirectory in some other project. That means you'll have to figure out how to integrate, since that is very specific to your particular needs.

If you want to just compile Nginx, use its own build system, it's good enough.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants