diff options
| author | Force Charlie <charlieio@outlook.com> | 2018-05-17 21:06:26 +0800 |
|---|---|---|
| committer | Force Charlie <charlieio@outlook.com> | 2018-05-17 21:06:26 +0800 |
| commit | 461e886d268eddee569ce81e76ca9c956a0f2ea6 (patch) | |
| tree | 5d04dddc814a1823adda613eda1f6ecfe103bf77 /ports/nghttp2/enable-static.patch | |
| parent | 897eaf436fdda3902cde15f7d202e78c0da47140 (diff) | |
| download | vcpkg-461e886d268eddee569ce81e76ca9c956a0f2ea6.tar.gz vcpkg-461e886d268eddee569ce81e76ca9c956a0f2ea6.zip | |
update nghttp2 to 1.32.0
Diffstat (limited to 'ports/nghttp2/enable-static.patch')
| -rw-r--r-- | ports/nghttp2/enable-static.patch | 18 |
1 files changed, 11 insertions, 7 deletions
diff --git a/ports/nghttp2/enable-static.patch b/ports/nghttp2/enable-static.patch index 3b58979cf..18e58daeb 100644 --- a/ports/nghttp2/enable-static.patch +++ b/ports/nghttp2/enable-static.patch @@ -1,23 +1,27 @@ diff --git a/lib/CMakeLists.txt b/lib/CMakeLists.txt -index 0846d06..290679f 100644 +index 17e422b..b2e7a6e 100644 --- a/lib/CMakeLists.txt +++ b/lib/CMakeLists.txt -@@ -38,7 +38,7 @@ if(WIN32) +@@ -37,8 +37,8 @@ if(WIN32) + set(NGHTTP2_RES ${CMAKE_CURRENT_BINARY_DIR}/version.rc) endif() - # Public shared library +-# Public shared library -add_library(nghttp2 SHARED ${NGHTTP2_SOURCES} ${NGHTTP2_RES}) ++# Public library +add_library(nghttp2 ${NGHTTP2_SOURCES} ${NGHTTP2_RES}) set_target_properties(nghttp2 PROPERTIES COMPILE_FLAGS "${WARNCFLAGS}" VERSION ${LT_VERSION} SOVERSION ${LT_SOVERSION} -@@ -48,6 +48,9 @@ target_include_directories(nghttp2 INTERFACE - "${CMAKE_CURRENT_BINARY_DIR}/includes" +@@ -49,6 +49,10 @@ target_include_directories(nghttp2 INTERFACE "${CMAKE_CURRENT_SOURCE_DIR}/includes" ) + +if(NOT BUILD_SHARED_LIBS) + target_compile_definitions(nghttp2 PUBLIC "-DNGHTTP2_STATICLIB") +endif() - - if(HAVE_CUNIT) ++ + if(HAVE_CUNIT OR ENABLE_STATIC_LIB) # Static library (for unittests because of symbol visibility) + add_library(nghttp2_static STATIC ${NGHTTP2_SOURCES}) + |
