Skip to content

Conversation

@lnicola
Copy link
Contributor

@lnicola lnicola commented May 20, 2015

The preferred usage of libh2o is with the libuv event loop. If the latter is not available, building libh2o will fail.

A user might however want to avoid that dependency and it doesn't cost us much to allow that.

@kazuho
Copy link
Member

kazuho commented May 20, 2015

Thank you for the PR.

Since the libuv-version and the embedded-version of libh2o is not source-compatible, I think it is inappropriate to determine the build mode automatically.

I would appreciate it if you could adjust CMakeLists.txt to build two versions of the library under different names (i.e. build libh2o using libuv (if libuv exists), and build libh2o-evloop using the embedded event loop).

@lnicola lnicola changed the title Allow libh2o to get built when libuv is not available Add a libh2o-evloop target May 20, 2015
@lnicola
Copy link
Contributor Author

lnicola commented May 20, 2015

Right, I now see what you meant in #173 (comment).

Is this better? I'm not really familiar with CMake and I'm not sure whether you prefer libh2o-evloop to always get built.

kazuho added a commit that referenced this pull request May 25, 2015
Add a libh2o-evloop target
@kazuho kazuho merged commit b22553b into h2o:master May 25, 2015
@kazuho
Copy link
Member

kazuho commented May 25, 2015

Thank you for the fix! All looks fine. Merged to master.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants