36 lines
1.0 KiB
CMake
36 lines
1.0 KiB
CMake
|
if(ENABLE_THIRD_PARTY)
|
||
|
set(LIBHTTP_PARSER_SOURCES
|
||
|
http-parser/http_parser.c
|
||
|
)
|
||
|
add_library(http-parser OBJECT ${LIBHTTP_PARSER_SOURCES})
|
||
|
|
||
|
if(HAVE_NEVERBLEED)
|
||
|
set(LIBNEVERBLEED_SOURCES
|
||
|
neverbleed/neverbleed.c
|
||
|
)
|
||
|
add_library(libneverbleed ${LIBNEVERBLEED_SOURCES})
|
||
|
target_include_directories(libneverbleed PUBLIC ${OPENSSL_INCLUDE_DIRS})
|
||
|
target_link_libraries(libneverbleed ${OPENSSL_LIBRARIES})
|
||
|
endif()
|
||
|
|
||
|
if(HAVE_MRUBY)
|
||
|
## EXTRA_DIST = build_config.rb mruby/*
|
||
|
|
||
|
#.PHONY: all-local clean mruby
|
||
|
|
||
|
#mruby:
|
||
|
# MRUBY_CONFIG="${srcdir}/build_config.rb" \
|
||
|
# BUILD_DIR="${abs_builddir}/mruby/build" \
|
||
|
# INSTALL_DIR="${abs_builddir}/mruby/build/install/bin" \
|
||
|
# CC="${CC}" CXX="${CXX}" LD="${LD}" \
|
||
|
# CFLAGS="${CPPFLAGS} ${CFLAGS}" CXXFLAGS="${CPPFLAGS} ${CXXFLAGS}" \
|
||
|
# LDFLAGS="${LDFLAGS}" \
|
||
|
# "${srcdir}/mruby/minirake" -f "${srcdir}/mruby/Rakefile"
|
||
|
|
||
|
#all-local: mruby
|
||
|
|
||
|
#clean-local:
|
||
|
# -rm -rf "${abs_builddir}/mruby/build"
|
||
|
endif()
|
||
|
endif()
|