renamed cwdebug/debug_libcurl.cc -> llmessage/debug_libcurl.cpp
and cwdebug/debug_libcurl.h -> llmessage/debug_libcurl.h,
because debug_libcurl.cpp does curl calls that do ares and
openssl calls, so we need to link with those libraries.
llmessage is already linking with those libraries, and contains
the main entry point aicurl.h, so it's a suitable place to put
this.
Bug fix: must always include llpreprocessor.h before including
curl/curl.h.
Bug fix: Added #include "debug_libcurl.h" to hipporestrequest.cpp
and llurlsimstring.cpp which I missed before because they
included "curl/curl.h" instead of <curl/curl.h>. Same in
llwaterparammanager.cpp, but removed include there because it
isn't needed.
Now test DEBUG_CURLIO before including debug_curlio, that
seems better, because otherwise it would make more sense to
replace all #include <curl/curl.h> with #include "mycurl.h"
and then do it there-- but I didn't want to do that.
Bug fix: we undef-ed CURLOPT_DNS_USE_GLOBAL_CACHE, while really
that is an enum, not a macro.
Fixed DEBUG_WINDOWS_CODE_ON_LINUX again by adding a hack for
ioctlsocket(), not instantiating dumb_socketpair unless
DEBUG_WINDOWS_CODE_ON_LINUX is defined and removing again ^M's
introduced with the new windows non-blocking code.
Also changed the type of flags passed to fcntl to int (was long).
19 lines
508 B
CMake
19 lines
508 B
CMake
include_directories (${CMAKE_SOURCE_DIR}/cwdebug)
|
|
|
|
set(cwdebug_SOURCE_FILES
|
|
${CMAKE_SOURCE_DIR}/cwdebug/debug.cc
|
|
)
|
|
|
|
set(cwdebug_HEADER_FILES
|
|
${CMAKE_SOURCE_DIR}/cwdebug/cwdebug.h
|
|
${CMAKE_SOURCE_DIR}/cwdebug/sys.h
|
|
${CMAKE_SOURCE_DIR}/cwdebug/debug.h
|
|
${CMAKE_SOURCE_DIR}/cwdebug/debug_ostream_operators.h
|
|
)
|
|
|
|
set_source_files_properties(${cwdebug_HEADER_FILES}
|
|
PROPERTIES HEADER_FILE_ONLY TRUE)
|
|
|
|
list(APPEND cwdebug_SOURCE_FILES ${cwdebug_HEADER_FILES})
|
|
|