1# SPDX-License-Identifier: Apache-2.0
2
3zephyr_library()
4
5if(CONFIG_HTTP_PARSER_STRICT)
6zephyr_library_compile_definitions(HTTP_PARSER_STRICT)
7endif()
8
9zephyr_include_directories(${ZEPHYR_BASE}/subsys/net/ip)
10
11zephyr_library_sources_ifdef(CONFIG_HTTP_PARSER http_parser.c)
12zephyr_library_sources_ifdef(CONFIG_HTTP_PARSER_URL http_parser_url.c)
13zephyr_library_sources_ifdef(CONFIG_HTTP_CLIENT http_client.c)
14zephyr_library_sources_ifdef(CONFIG_HTTP_SERVER http_server_core.c
15						http_server_http1.c
16						http_server_http2.c
17						http_hpack.c
18						http_huffman.c)
19if(CONFIG_HTTP_SERVER AND CONFIG_WEBSOCKET)
20  zephyr_library_sources(http_server_ws.c)
21  zephyr_library_link_libraries_ifdef(CONFIG_MBEDTLS mbedTLS)
22endif()
23
24if(CONFIG_HTTP_SERVER AND CONFIG_FILE_SYSTEM)
25  zephyr_linker_sources(SECTIONS iterables_content_type.ld)
26endif()
27
28if(CONFIG_HTTP_SERVER AND CONFIG_HTTP_SERVER_CAPTURE_HEADERS)
29  zephyr_linker_sources(SECTIONS iterables_header_capture.ld)
30endif()
31