Brad Bishop | 1932369 | 2019-04-05 15:28:33 -0400 | [diff] [blame] | 1 | SUMMARY = "Canonical libwebsockets.org websocket library" |
| 2 | HOMEPAGE = "https://libwebsockets.org/" |
| 3 | LICENSE = "LGPL-2.1" |
| 4 | LIC_FILES_CHKSUM = "file://LICENSE;md5=4ce87f3facb6f911c142c8bef9bfb380" |
| 5 | |
| 6 | DEPENDS = "zlib" |
| 7 | |
| 8 | S = "${WORKDIR}/git" |
Brad Bishop | b809eb9 | 2019-09-18 06:27:43 -0400 | [diff] [blame] | 9 | SRCREV = "94931cad003faf9d316e698b557bbb6d245f1f91" |
| 10 | SRC_URI = "git://github.com/warmcat/libwebsockets.git;protocol=https;branch=v3.2-stable" |
Brad Bishop | 1932369 | 2019-04-05 15:28:33 -0400 | [diff] [blame] | 11 | |
| 12 | inherit cmake pkgconfig |
| 13 | |
| 14 | PACKAGECONFIG ?= "libuv client server http2 ssl" |
| 15 | PACKAGECONFIG[client] = "-DLWS_WITHOUT_CLIENT=OFF,-DLWS_WITHOUT_CLIENT=ON," |
| 16 | PACKAGECONFIG[http2] = "-DLWS_WITH_HTTP2=ON,-DLWS_WITH_HTTP2=OFF," |
| 17 | PACKAGECONFIG[ipv6] = "-DLWS_IPV6=ON,-DLWS_IPV6=OFF," |
| 18 | PACKAGECONFIG[libev] = "-DLWS_WITH_LIBEV=ON,-DLWS_WITH_LIBEV=OFF,libev" |
| 19 | PACKAGECONFIG[libuv] = "-DLWS_WITH_LIBUV=ON,-DLWS_WITH_LIBUV=OFF,libuv" |
| 20 | PACKAGECONFIG[server] = "-DLWS_WITHOUT_SERVER=OFF,-DLWS_WITHOUT_SERVER=ON," |
| 21 | PACKAGECONFIG[ssl] = "-DLWS_WITH_SSL=ON,-DLWS_WITH_SSL=OFF,openssl" |
| 22 | PACKAGECONFIG[testapps] = "-DLWS_WITHOUT_TESTAPPS=OFF,-DLWS_WITHOUT_TESTAPPS=ON," |
| 23 | |
| 24 | EXTRA_OECMAKE += " \ |
| 25 | -DLIB_SUFFIX=${@d.getVar('baselib').replace('lib', '')} \ |
| 26 | " |
| 27 | |
| 28 | PACKAGES =+ "${PN}-testapps" |
| 29 | |
| 30 | FILES_${PN}-testapps += "${datadir}/libwebsockets-test-server/*" |
Brad Bishop | 0f291cc | 2019-09-01 15:16:57 -0400 | [diff] [blame] | 31 | |
| 32 | CFLAGS_append = " -Wno-error" |