diff options
| author | Garrett D'Amore <garrett@damore.org> | 2025-01-17 09:24:36 -0800 |
|---|---|---|
| committer | Garrett D'Amore <garrett@damore.org> | 2025-01-17 09:24:36 -0800 |
| commit | d203647145c7c3e5f0f4ae8288d2c4796f9e23d5 (patch) | |
| tree | 9a908867ee286fba4bb774486c296b5adbd81dd2 /src/supplemental/http/CMakeLists.txt | |
| parent | 6d74a90b72c80edbd58d8b2b29105e749bdfc28e (diff) | |
| download | nng-http-handler-fini.tar.gz nng-http-handler-fini.tar.bz2 nng-http-handler-fini.zip | |
http: start of clean up of public vs. private functionshttp-handler-fini
We have a lot of "private" wrappers around public functions, which
doesn't really help at all, and just add needless extra stack frames
and extra cruft in the linker tables. We should eliminate the
trivially thin wrappers where possible, and this is a start.
Diffstat (limited to 'src/supplemental/http/CMakeLists.txt')
| -rw-r--r-- | src/supplemental/http/CMakeLists.txt | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/src/supplemental/http/CMakeLists.txt b/src/supplemental/http/CMakeLists.txt index 31a544a9..9f85631b 100644 --- a/src/supplemental/http/CMakeLists.txt +++ b/src/supplemental/http/CMakeLists.txt @@ -11,13 +11,9 @@ option (NNG_ENABLE_HTTP "Enable HTTP API" ON) if (NNG_ENABLE_HTTP) set(NNG_SUPP_HTTP ON) -endif() -mark_as_advanced(NNG_ENABLE_HTTP) - -nng_sources(http_public.c http_api.h) - -nng_defines_if(NNG_SUPP_HTTP NNG_SUPP_HTTP) -nng_sources_if(NNG_SUPP_HTTP + nng_defines(NNG_SUPP_HTTP) + nng_sources( + http_api.h http_client.c http_chunk.c http_conn.c @@ -25,4 +21,8 @@ nng_sources_if(NNG_SUPP_HTTP http_public.c http_schemes.c http_server.c) -nng_test_if(NNG_SUPP_HTTP http_server_test) + nng_test(http_server_test) +else() + nng_sources(http_stubs.c) +endif() +mark_as_advanced(NNG_ENABLE_HTTP) |
