This repository has been archived by the owner on Jul 6, 2018. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 79
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
deps: initial checkin of nghttp2 lib 1.15.0
PR-URL: #3 Reviewed-By: Fedor Indutny <fedor.indutny@gmail.com> Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
- Loading branch information
Showing
53 changed files
with
30,734 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
add_subdirectory(includes) | ||
|
||
include_directories( | ||
"${CMAKE_CURRENT_SOURCE_DIR}/includes" | ||
"${CMAKE_CURRENT_BINARY_DIR}/includes" | ||
) | ||
|
||
add_definitions(-DBUILDING_NGHTTP2) | ||
|
||
set(NGHTTP2_SOURCES | ||
nghttp2_pq.c nghttp2_map.c nghttp2_queue.c | ||
nghttp2_frame.c | ||
nghttp2_buf.c | ||
nghttp2_stream.c nghttp2_outbound_item.c | ||
nghttp2_session.c nghttp2_submit.c | ||
nghttp2_helper.c | ||
nghttp2_npn.c | ||
nghttp2_hd.c nghttp2_hd_huffman.c nghttp2_hd_huffman_data.c | ||
nghttp2_version.c | ||
nghttp2_priority_spec.c | ||
nghttp2_option.c | ||
nghttp2_callbacks.c | ||
nghttp2_mem.c | ||
nghttp2_http.c | ||
nghttp2_rcbuf.c | ||
) | ||
|
||
# Public shared library | ||
add_library(nghttp2 SHARED ${NGHTTP2_SOURCES}) | ||
set_target_properties(nghttp2 PROPERTIES | ||
COMPILE_FLAGS "${WARNCFLAGS}" | ||
VERSION ${LT_VERSION} SOVERSION ${LT_SOVERSION} | ||
C_VISIBILITY_PRESET hidden | ||
) | ||
|
||
if(HAVE_CUNIT) | ||
# Static library (for unittests because of symbol visibility) | ||
add_library(nghttp2_static STATIC ${NGHTTP2_SOURCES}) | ||
set_target_properties(nghttp2_static PROPERTIES | ||
COMPILE_FLAGS "${WARNCFLAGS}" | ||
VERSION ${LT_VERSION} SOVERSION ${LT_SOVERSION} | ||
ARCHIVE_OUTPUT_NAME nghttp2 | ||
) | ||
target_compile_definitions(nghttp2_static PUBLIC "-DNGHTTP2_STATICLIB") | ||
endif() | ||
|
||
install(TARGETS nghttp2 | ||
DESTINATION "${CMAKE_INSTALL_LIBDIR}") | ||
|
||
install(FILES "${CMAKE_CURRENT_BINARY_DIR}/libnghttp2.pc" | ||
DESTINATION "${CMAKE_INSTALL_LIBDIR}/pkgconfig") |
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,70 @@ | ||
# nghttp2 - HTTP/2 C Library | ||
|
||
# Copyright (c) 2012, 2013 Tatsuhiro Tsujikawa | ||
|
||
# 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. | ||
SUBDIRS = includes | ||
|
||
EXTRA_DIST = Makefile.msvc CMakeLists.txt | ||
|
||
AM_CFLAGS = $(WARNCFLAGS) $(EXTRACFLAG) | ||
AM_CPPFLAGS = -I$(srcdir)/includes -I$(builddir)/includes -DBUILDING_NGHTTP2 \ | ||
@DEFS@ | ||
|
||
pkgconfigdir = $(libdir)/pkgconfig | ||
pkgconfig_DATA = libnghttp2.pc | ||
DISTCLEANFILES = $(pkgconfig_DATA) | ||
|
||
lib_LTLIBRARIES = libnghttp2.la | ||
|
||
OBJECTS = nghttp2_pq.c nghttp2_map.c nghttp2_queue.c \ | ||
nghttp2_frame.c \ | ||
nghttp2_buf.c \ | ||
nghttp2_stream.c nghttp2_outbound_item.c \ | ||
nghttp2_session.c nghttp2_submit.c \ | ||
nghttp2_helper.c \ | ||
nghttp2_npn.c \ | ||
nghttp2_hd.c nghttp2_hd_huffman.c nghttp2_hd_huffman_data.c \ | ||
nghttp2_version.c \ | ||
nghttp2_priority_spec.c \ | ||
nghttp2_option.c \ | ||
nghttp2_callbacks.c \ | ||
nghttp2_mem.c \ | ||
nghttp2_http.c \ | ||
nghttp2_rcbuf.c | ||
|
||
HFILES = nghttp2_pq.h nghttp2_int.h nghttp2_map.h nghttp2_queue.h \ | ||
nghttp2_frame.h \ | ||
nghttp2_buf.h \ | ||
nghttp2_session.h nghttp2_helper.h nghttp2_stream.h nghttp2_int.h \ | ||
nghttp2_npn.h \ | ||
nghttp2_submit.h nghttp2_outbound_item.h \ | ||
nghttp2_net.h \ | ||
nghttp2_hd.h nghttp2_hd_huffman.h \ | ||
nghttp2_priority_spec.h \ | ||
nghttp2_option.h \ | ||
nghttp2_callbacks.h \ | ||
nghttp2_mem.h \ | ||
nghttp2_http.h \ | ||
nghttp2_rcbuf.h | ||
|
||
libnghttp2_la_SOURCES = $(HFILES) $(OBJECTS) | ||
libnghttp2_la_LDFLAGS = -no-undefined \ | ||
-version-info $(LT_CURRENT):$(LT_REVISION):$(LT_AGE) |
Oops, something went wrong.