-
Notifications
You must be signed in to change notification settings - Fork 36
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Simplify CMake build for portability.
Include http_parser in third_party since it does not have a CMake buildfile. Fetch abseil at build time since it's not in most third-party repositories and we always link it statically as well, and because the CMake build is the most usable. Use the same mechanism to build gtest using CMake.
- Loading branch information
Showing
25 changed files
with
8,714 additions
and
31 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,35 +1,96 @@ | ||
add_library( | ||
testserver_lib OBJECT | ||
testserver_lib | ||
test_server.cc | ||
test_server.h | ||
) | ||
target_link_libraries(testserver_lib PUBLIC common -lev -lssl.1.1 -lcrypto.1.1 -lhttp_parser) | ||
target_link_libraries(testserver_lib io) | ||
|
||
add_executable( | ||
testserver | ||
test_server_main.cc | ||
) | ||
target_link_libraries(testserver testserver_lib) | ||
|
||
add_library( | ||
keygen_lib OBJECT | ||
keygen_lib | ||
test_keygen.cc | ||
test_keygen.h | ||
) | ||
target_link_libraries(keygen_lib PUBLIC common -lssl.1.1 -lcrypto.1.1) | ||
target_link_libraries(keygen_lib common -lcrypto) | ||
|
||
add_executable( | ||
testserver | ||
test_server_main.cc | ||
keygen_test | ||
test_keygen_main.cc | ||
) | ||
target_link_libraries(keygen_test keygen_lib gtest) | ||
add_test(keygen_test keygen_test) | ||
|
||
add_executable( | ||
commandqueue_test | ||
commandqueue_test.cc | ||
) | ||
target_link_libraries(commandqueue_test io gtest gtest_main) | ||
add_test(commandqueue_test commandqueue_test) | ||
|
||
add_executable( | ||
lines_test | ||
lines_test.cc | ||
) | ||
target_link_libraries(lines_test common gtest gtest_main) | ||
add_test(lines_test lines_test) | ||
|
||
add_executable( | ||
url_test | ||
url_test.cc | ||
) | ||
target_link_libraries(url_test common gtest gtest_main) | ||
add_test(url_test url_test) | ||
|
||
add_executable( | ||
cpu_test | ||
cpu_test.cc | ||
) | ||
target_link_libraries(cpu_test common cpu gtest) | ||
add_test(cpu_test cpu_test) | ||
|
||
add_executable( | ||
reporting_test | ||
reporting_test.cc | ||
) | ||
target_link_libraries(reporting_test io gtest gtest_main) | ||
add_test(reporting_test reporting_test) | ||
|
||
add_executable( | ||
oauth_test | ||
oauth_test.cc | ||
) | ||
target_link_libraries(oauth_test io gtest gtest_main) | ||
add_test(oauth_test oauth_test) | ||
|
||
add_executable( | ||
util_test | ||
util_test.cc | ||
) | ||
target_link_libraries(util_test common gtest gtest_main) | ||
add_test(util_test util_test) | ||
|
||
add_executable( | ||
mon_test | ||
mon_test.cc | ||
) | ||
target_link_libraries(testserver testserver_lib common) | ||
target_link_libraries(mon_test mon_lib gtest) | ||
add_test(mon_test mon_test) | ||
|
||
add_executable( | ||
iotest | ||
io_test.cc | ||
) | ||
add_dependencies(iotest gtest) | ||
target_link_libraries(iotest testserver_lib io cpu common base64 -lgtest) | ||
target_link_libraries(iotest testserver_lib gtest) | ||
add_test(iotest iotest) | ||
|
||
add_executable( | ||
tlstest | ||
tls_test.cc | ||
) | ||
add_dependencies(tlstest gtest) | ||
target_link_libraries(tlstest testserver_lib io cpu common keygen_lib base64 -lgtest) | ||
target_link_libraries(tlstest testserver_lib keygen_lib gtest) | ||
add_test(tlstest tlstest) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
/out/ | ||
core | ||
tags | ||
*.o | ||
test | ||
test_g | ||
test_fast | ||
bench | ||
url_parser | ||
parsertrace | ||
parsertrace_g | ||
*.mk | ||
*.Makefile | ||
*.so.* | ||
*.exe.* | ||
*.exe | ||
*.a | ||
|
||
|
||
# Visual Studio uglies | ||
*.suo | ||
*.sln | ||
*.vcxproj | ||
*.vcxproj.filters | ||
*.vcxproj.user | ||
*.opensdf | ||
*.ncrunchsolution* | ||
*.sdf | ||
*.vsp | ||
*.psess |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
# update AUTHORS with: | ||
# git log --all --reverse --format='%aN <%aE>' | perl -ne 'BEGIN{print "# Authors ordered by first contribution.\n"} print unless $h{$_}; $h{$_} = 1' > AUTHORS | ||
Ryan Dahl <[email protected]> | ||
Salman Haq <[email protected]> | ||
Simon Zimmermann <[email protected]> | ||
Thomas LE ROUX <[email protected]> LE ROUX Thomas <[email protected]> | ||
Thomas LE ROUX <[email protected]> Thomas LE ROUX <[email protected]> | ||
Fedor Indutny <[email protected]> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
language: c | ||
|
||
compiler: | ||
- clang | ||
- gcc | ||
|
||
script: | ||
- "make" | ||
|
||
notifications: | ||
email: false | ||
irc: | ||
- "irc.freenode.net#node-ci" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,68 @@ | ||
# Authors ordered by first contribution. | ||
Ryan Dahl <[email protected]> | ||
Jeremy Hinegardner <[email protected]> | ||
Sergey Shepelev <[email protected]> | ||
Joe Damato <[email protected]> | ||
tomika <[email protected]> | ||
Phoenix Sol <[email protected]> | ||
Cliff Frey <[email protected]> | ||
Ewen Cheslack-Postava <[email protected]> | ||
Santiago Gala <[email protected]> | ||
Tim Becker <[email protected]> | ||
Jeff Terrace <[email protected]> | ||
Ben Noordhuis <[email protected]> | ||
Nathan Rajlich <[email protected]> | ||
Mark Nottingham <[email protected]> | ||
Aman Gupta <[email protected]> | ||
Tim Becker <[email protected]> | ||
Sean Cunningham <[email protected]> | ||
Peter Griess <[email protected]> | ||
Salman Haq <[email protected]> | ||
Cliff Frey <[email protected]> | ||
Jon Kolb <[email protected]> | ||
Fouad Mardini <[email protected]> | ||
Paul Querna <[email protected]> | ||
Felix Geisendörfer <[email protected]> | ||
koichik <[email protected]> | ||
Andre Caron <[email protected]> | ||
Ivo Raisr <[email protected]> | ||
James McLaughlin <[email protected]> | ||
David Gwynne <[email protected]> | ||
Thomas LE ROUX <[email protected]> | ||
Randy Rizun <[email protected]> | ||
Andre Louis Caron <[email protected]> | ||
Simon Zimmermann <[email protected]> | ||
Erik Dubbelboer <[email protected]> | ||
Martell Malone <[email protected]> | ||
Bertrand Paquet <[email protected]> | ||
BogDan Vatra <[email protected]> | ||
Peter Faiman <[email protected]> | ||
Corey Richardson <[email protected]> | ||
Tóth Tamás <[email protected]> | ||
Cam Swords <[email protected]> | ||
Chris Dickinson <[email protected]> | ||
Uli Köhler <[email protected]> | ||
Charlie Somerville <[email protected]> | ||
Patrik Stutz <[email protected]> | ||
Fedor Indutny <[email protected]> | ||
runner <[email protected]> | ||
Alexis Campailla <[email protected]> | ||
David Wragg <[email protected]> | ||
Vinnie Falco <[email protected]> | ||
Alex Butum <[email protected]> | ||
Rex Feng <[email protected]> | ||
Alex Kocharin <[email protected]> | ||
Mark Koopman <[email protected]> | ||
Helge Heß <[email protected]> | ||
Alexis La Goutte <[email protected]> | ||
George Miroshnykov <[email protected]> | ||
Maciej Małecki <[email protected]> | ||
Marc O'Morain <[email protected]> | ||
Jeff Pinner <[email protected]> | ||
Timothy J Fontaine <[email protected]> | ||
Akagi201 <[email protected]> | ||
Romain Giraud <[email protected]> | ||
Jay Satiro <[email protected]> | ||
Arne Steen <[email protected]> | ||
Kjell Schubert <[email protected]> | ||
Olivier Mengué <[email protected]> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
add_library( | ||
http_parser | ||
http_parser.c | ||
http_parser.h | ||
) | ||
target_compile_definitions( | ||
http_parser PUBLIC | ||
HTTP_PARSER_STRICT=0 | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
Copyright Joyent, Inc. and other Node contributors. | ||
|
||
Permission is hereby granted, free of charge, to any person obtaining a copy | ||
of this software and associated documentation files (the "Software"), to | ||
deal in the Software without restriction, including without limitation the | ||
rights to use, copy, modify, merge, publish, distribute, sublicense, and/or | ||
sell copies of the Software, and to permit persons to whom the Software is | ||
furnished to do so, subject to the following conditions: | ||
|
||
The above copyright notice and this permission notice shall be included in | ||
all copies or substantial portions of the Software. | ||
|
||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | ||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | ||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING | ||
FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS | ||
IN THE SOFTWARE. |
Oops, something went wrong.