tests/server: move WITHOUT_LIBCURL from build to first.h

This commit is contained in:
Viktor Szakats 2025-06-28 03:12:08 +02:00
parent f5906fa3f7
commit 819f63679c
No known key found for this signature in database
GPG key ID: B5ABD165E2AEF201
3 changed files with 4 additions and 2 deletions

View file

@ -42,7 +42,7 @@ target_include_directories(${BUNDLE} PRIVATE
"${PROJECT_SOURCE_DIR}/lib" # for "curl_setup.h", curlx
"${CMAKE_CURRENT_SOURCE_DIR}" # for the generated bundle source to find included test sources
)
target_compile_definitions(${BUNDLE} PRIVATE "WITHOUT_LIBCURL" "CURL_NO_OLDIES")
target_compile_definitions(${BUNDLE} PRIVATE "CURL_NO_OLDIES")
set_target_properties(${BUNDLE} PROPERTIES OUTPUT_NAME "${BUNDLE}" PROJECT_LABEL "Test ${BUNDLE}" UNITY_BUILD OFF C_CLANG_TIDY "")
curl_add_clang_tidy_test_target("${BUNDLE}-clang-tidy" ${BUNDLE} ${FIRST_C} ${UTILS_C} ${TESTS_C})

View file

@ -48,7 +48,7 @@ CFLAGS += @CURL_CFLAG_EXTRAS@
# Prevent LIBS from being used for all link targets
LIBS = $(BLANK_AT_MAKETIME)
AM_CPPFLAGS += -DWITHOUT_LIBCURL -DCURL_NO_OLDIES
AM_CPPFLAGS += -DCURL_NO_OLDIES
$(BUNDLE).c: $(top_srcdir)/scripts/mk-unity.pl Makefile.inc $(FIRST_C) $(UTILS_C) $(CURLX_C) $(TESTS_C)
@PERL@ $(top_srcdir)/scripts/mk-unity.pl --include $(UTILS_C) $(CURLX_C) --test $(TESTS_C) > $(BUNDLE).c

View file

@ -35,6 +35,8 @@
#define CURL_STATICLIB
#endif
#define WITHOUT_LIBCURL
#include "curl_setup.h"
typedef int (*entry_func_t)(int, char **);