1*4882a593SmuzhiyunSUMMARY = "Civetweb embedded web server"
2*4882a593SmuzhiyunHOMEPAGE = "https://github.com/civetweb/civetweb"
3*4882a593Smuzhiyun
4*4882a593SmuzhiyunLICENSE = "MIT"
5*4882a593SmuzhiyunLIC_FILES_CHKSUM = "file://LICENSE.md;md5=50bd1d7f135b50d7e218996ba28d0d88"
6*4882a593Smuzhiyun
7*4882a593SmuzhiyunSRCREV = "4b440a339979852d5a51fb11a822952712231c23"
8*4882a593SmuzhiyunPV = "1.12+git${SRCPV}"
9*4882a593SmuzhiyunSRC_URI = "git://github.com/civetweb/civetweb.git;branch=master;protocol=https \
10*4882a593Smuzhiyun           file://0001-Unittest-Link-librt-and-libm-using-l-option.patch \
11*4882a593Smuzhiyun           "
12*4882a593Smuzhiyun
13*4882a593SmuzhiyunS = "${WORKDIR}/git"
14*4882a593Smuzhiyun
15*4882a593Smuzhiyun# civetweb supports building with make or cmake (although cmake lacks few features)
16*4882a593Smuzhiyuninherit cmake
17*4882a593Smuzhiyun
18*4882a593Smuzhiyun# Disable Lua and Duktape because they do not compile from CMake (as of v1.8, v1.9 and v1.10).
19*4882a593Smuzhiyun# Disable ASAN as it is included only in Debug build.
20*4882a593SmuzhiyunEXTRA_OECMAKE = " \
21*4882a593Smuzhiyun    -DBUILD_SHARED_LIBS=ON \
22*4882a593Smuzhiyun    -DCIVETWEB_ENABLE_DUKTAPE=OFF \
23*4882a593Smuzhiyun    -DCIVETWEB_ENABLE_LUA=OFF \
24*4882a593Smuzhiyun    -DCIVETWEB_ENABLE_ASAN=OFF \
25*4882a593Smuzhiyun    -DCIVETWEB_BUILD_TESTING=OFF \
26*4882a593Smuzhiyun"
27*4882a593Smuzhiyun
28*4882a593Smuzhiyun# Building with ninja fails on missing third_party/lib/libcheck.a (which
29*4882a593Smuzhiyun# should come from external CMake project)
30*4882a593SmuzhiyunOECMAKE_GENERATOR = "Unix Makefiles"
31*4882a593Smuzhiyun
32*4882a593SmuzhiyunPACKAGECONFIG ??= "caching ipv6 server ssl websockets"
33*4882a593SmuzhiyunPACKAGECONFIG[caching] = "-DCIVETWEB_DISABLE_CACHING=OFF,-DCIVETWEB_DISABLE_CACHING=ON,"
34*4882a593SmuzhiyunPACKAGECONFIG[cgi] = "-DCIVETWEB_DISABLE_CGI=OFF,-DCIVETWEB_DISABLE_CGI=ON,"
35*4882a593SmuzhiyunPACKAGECONFIG[cpp] = "-DCIVETWEB_ENABLE_CXX=ON,-DCIVETWEB_ENABLE_CXX=OFF,"
36*4882a593SmuzhiyunPACKAGECONFIG[debug] = "-DCIVETWEB_ENABLE_MEMORY_DEBUGGING=ON,-DCIVETWEB_ENABLE_MEMORY_DEBUGGING=OFF,"
37*4882a593SmuzhiyunPACKAGECONFIG[ipv6] = "-DCIVETWEB_ENABLE_IPV6=ON,-DCIVETWEB_ENABLE_IPV6=OFF,"
38*4882a593SmuzhiyunPACKAGECONFIG[server] = "-DCIVETWEB_ENABLE_SERVER_EXECUTABLE=ON -DCIVETWEB_INSTALL_EXECUTABLE=ON,-DCIVETWEB_ENABLE_SERVER_EXECUTABLE=OFF -DCIVETWEB_INSTALL_EXECUTABLE=OFF,"
39*4882a593SmuzhiyunPACKAGECONFIG[ssl] = "-DCIVETWEB_ENABLE_SSL=ON -DCIVETWEB_SSL_OPENSSL_API_1_1=OFF -DCIVETWEB_ENABLE_SSL_DYNAMIC_LOADING=OFF,-DCIVETWEB_ENABLE_SSL=OFF,openssl (=1.0.2%),"
40*4882a593SmuzhiyunPACKAGECONFIG[websockets] = "-DCIVETWEB_ENABLE_WEBSOCKETS=ON,-DCIVETWEB_ENABLE_WEBSOCKETS=OFF,"
41*4882a593Smuzhiyun
42*4882a593SmuzhiyunBBCLASSEXTEND = "native"
43