cmake: Remove spdylay
This commit is contained in:
parent
da7959c2e8
commit
694c0a4fb3
|
@ -84,8 +84,6 @@ find_package(LibXml2 2.6.26)
|
||||||
set(WITH_LIBXML2_DEFAULT ${LIBXML2_FOUND})
|
set(WITH_LIBXML2_DEFAULT ${LIBXML2_FOUND})
|
||||||
find_package(Jemalloc)
|
find_package(Jemalloc)
|
||||||
set(WITH_JEMALLOC_DEFAULT ${JEMALLOC_FOUND})
|
set(WITH_JEMALLOC_DEFAULT ${JEMALLOC_FOUND})
|
||||||
find_package(Spdylay 1.3.2)
|
|
||||||
set(WITH_SPDYLAY_DEFAULT ${SPDYLAY_FOUND})
|
|
||||||
|
|
||||||
include(CMakeOptions.txt)
|
include(CMakeOptions.txt)
|
||||||
|
|
||||||
|
@ -220,8 +218,6 @@ else()
|
||||||
endif()
|
endif()
|
||||||
# jemalloc
|
# jemalloc
|
||||||
set(HAVE_JEMALLOC ${JEMALLOC_FOUND})
|
set(HAVE_JEMALLOC ${JEMALLOC_FOUND})
|
||||||
# spdylay (for src/nghttpx and src/h2load)
|
|
||||||
set(HAVE_SPDYLAY ${SPDYLAY_FOUND})
|
|
||||||
|
|
||||||
if(ENABLE_ASIO_LIB)
|
if(ENABLE_ASIO_LIB)
|
||||||
find_package(Boost 1.54.0 REQUIRED system thread)
|
find_package(Boost 1.54.0 REQUIRED system thread)
|
||||||
|
@ -504,7 +500,6 @@ message(STATUS "summary of build options:
|
||||||
Libev: ${HAVE_LIBEV} (LIBS='${LIBEV_LIBRARIES}')
|
Libev: ${HAVE_LIBEV} (LIBS='${LIBEV_LIBRARIES}')
|
||||||
Libc-ares: ${HAVE_LIBCARES} (LIBS='${LIBCARES_LIBRARIES}')
|
Libc-ares: ${HAVE_LIBCARES} (LIBS='${LIBCARES_LIBRARIES}')
|
||||||
Libevent(SSL): ${HAVE_LIBEVENT_OPENSSL} (LIBS='${LIBEVENT_OPENSSL_LIBRARIES}')
|
Libevent(SSL): ${HAVE_LIBEVENT_OPENSSL} (LIBS='${LIBEVENT_OPENSSL_LIBRARIES}')
|
||||||
Spdylay: ${HAVE_SPDYLAY} (LIBS='${SPDYLAY_LIBRARIES}')
|
|
||||||
Jansson: ${HAVE_JANSSON} (LIBS='${JANSSON_LIBRARIES}')
|
Jansson: ${HAVE_JANSSON} (LIBS='${JANSSON_LIBRARIES}')
|
||||||
Jemalloc: ${HAVE_JEMALLOC} (LIBS='${JEMALLOC_LIBRARIES}')
|
Jemalloc: ${HAVE_JEMALLOC} (LIBS='${JEMALLOC_LIBRARIES}')
|
||||||
Zlib: ${HAVE_ZLIB} (LIBS='${ZLIB_LIBRARIES}')
|
Zlib: ${HAVE_ZLIB} (LIBS='${ZLIB_LIBRARIES}')
|
||||||
|
|
|
@ -37,7 +37,6 @@ EXTRA_DIST = nghttpx.conf.sample proxy.pac.sample android-config android-make \
|
||||||
cmakeconfig.h.in \
|
cmakeconfig.h.in \
|
||||||
CMakeLists.txt \
|
CMakeLists.txt \
|
||||||
CMakeOptions.txt \
|
CMakeOptions.txt \
|
||||||
cmake/FindSpdylay.cmake \
|
|
||||||
cmake/ExtractValidFlags.cmake \
|
cmake/ExtractValidFlags.cmake \
|
||||||
cmake/FindJemalloc.cmake \
|
cmake/FindJemalloc.cmake \
|
||||||
cmake/FindLibev.cmake \
|
cmake/FindLibev.cmake \
|
||||||
|
|
|
@ -1,40 +0,0 @@
|
||||||
# - Try to find spdylay
|
|
||||||
# Once done this will define
|
|
||||||
# SPDYLAY_FOUND - System has spdylay
|
|
||||||
# SPDYLAY_INCLUDE_DIRS - The spdylay include directories
|
|
||||||
# SPDYLAY_LIBRARIES - The libraries needed to use spdylay
|
|
||||||
|
|
||||||
find_package(PkgConfig QUIET)
|
|
||||||
pkg_check_modules(PC_SPDYLAY QUIET libspdylay)
|
|
||||||
|
|
||||||
find_path(SPDYLAY_INCLUDE_DIR
|
|
||||||
NAMES spdylay/spdylay.h
|
|
||||||
HINTS ${PC_SPDYLAY_INCLUDE_DIRS}
|
|
||||||
)
|
|
||||||
find_library(SPDYLAY_LIBRARY
|
|
||||||
NAMES spdylay
|
|
||||||
HINTS ${PC_SPDYLAY_LIBRARY_DIRS}
|
|
||||||
)
|
|
||||||
|
|
||||||
if(SPDYLAY_INCLUDE_DIR)
|
|
||||||
set(_version_regex "^#define[ \t]+SPDYLAY_VERSION[ \t]+\"([^\"]+)\".*")
|
|
||||||
file(STRINGS "${SPDYLAY_INCLUDE_DIR}/spdylay/spdylayver.h"
|
|
||||||
SPDYLAY_VERSION REGEX "${_version_regex}")
|
|
||||||
string(REGEX REPLACE "${_version_regex}" "\\1"
|
|
||||||
SPDYLAY_VERSION "${SPDYLAY_VERSION}")
|
|
||||||
unset(_version_regex)
|
|
||||||
endif()
|
|
||||||
|
|
||||||
include(FindPackageHandleStandardArgs)
|
|
||||||
# handle the QUIETLY and REQUIRED arguments and set SPDYLAY_FOUND to TRUE
|
|
||||||
# if all listed variables are TRUE and the requested version matches.
|
|
||||||
find_package_handle_standard_args(Spdylay REQUIRED_VARS
|
|
||||||
SPDYLAY_LIBRARY SPDYLAY_INCLUDE_DIR
|
|
||||||
VERSION_VAR SPDYLAY_VERSION)
|
|
||||||
|
|
||||||
if(SPDYLAY_FOUND)
|
|
||||||
set(SPDYLAY_LIBRARIES ${SPDYLAY_LIBRARY})
|
|
||||||
set(SPDYLAY_INCLUDE_DIRS ${SPDYLAY_INCLUDE_DIR})
|
|
||||||
endif()
|
|
||||||
|
|
||||||
mark_as_advanced(SPDYLAY_INCLUDE_DIR SPDYLAY_LIBRARY)
|
|
|
@ -13,9 +13,6 @@
|
||||||
/* Define to 1 if you have `libxml2` library. */
|
/* Define to 1 if you have `libxml2` library. */
|
||||||
#cmakedefine HAVE_LIBXML2 1
|
#cmakedefine HAVE_LIBXML2 1
|
||||||
|
|
||||||
/* Define to 1 if you have `spdylay` library. */
|
|
||||||
#cmakedefine HAVE_SPDYLAY 1
|
|
||||||
|
|
||||||
/* Define to 1 if you have `mruby` library. */
|
/* Define to 1 if you have `mruby` library. */
|
||||||
#cmakedefine HAVE_MRUBY 1
|
#cmakedefine HAVE_MRUBY 1
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue