File: pkgconfig

package info (click to toggle)
cpp-httplib 0.18.7-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 2,500 kB
  • sloc: cpp: 15,918; makefile: 119; python: 50; sh: 32
file content (29 lines) | stat: -rwxr-xr-x 598 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
#!/bin/sh

set -e

cd $AUTOPKGTEST_TMP

cat <<EOF > main.cpp
#include <httplib.h>

#ifndef CPPHTTPLIB_OPENSSL_SUPPORT
#	error "Missing OpenSSL support"
#endif
#ifndef CPPHTTPLIB_ZLIB_SUPPORT
#	error "Missing zlib support"
#endif
#ifndef CPPHTTPLIB_BROTLI_SUPPORT
#	error "Missing Brotli support"
#endif

int main() {
	httplib::Client client("localhost", 10780);
	httplib::SSLClient ssl_client("https://localhost:107443");

	httplib::Server server;
	httplib::SSLServer ssl_server("cert.pem", "key.pem");
}
EOF

c++ main.cpp -Wall -Wextra -Wpedantic -Werror $(pkg-config --cflags --libs cpp-httplib)