-
Notifications
You must be signed in to change notification settings - Fork 0
paveltrpn/poller
Folders and files
| Name | Name | Last commit message | Last commit date | |
|---|---|---|---|---|
Repository files navigation
Poller ======== Dependencies ============= Project depends on: libcurl libuv nlohmann-json All this libraries available in source codes and easy to build and install. Build libaries from sources and keep sources aside useful for debugging, exploring definitions of API parts and such thing so CMake script assumes that build to be done manually and corresponding envvars will be provided. See below... libcurl: $ apt install libpsl-dev $ git clone https://github.com/curl/curl $ mkdir build && cd build $ cmake .. # cmake --build . --parallel {N} $ cmake --install . --prefix=/{some}/{path} libuv: $ git clone https://github.com/libuv/libuv $ cd libuv $ mkdir build && cd build $ cmake .. # cmake --build . --parallel {N} $ cmake --install . --prefix=/{some}/{path} nlohmann-json: $ cd {some}/{path} $ git clone https://github.com/nlohmann/json Set envvars ============ export LIBCURL_DIR={some}/{path}/curl export LIBUV_DIR={some}/{path}/libuv export NLOHMANN_JSON_DIR={some}/{path}/json Build ======== Compiler with C++26 standart support rquired. By default compiler set to clang and libc++ standart library (because of better modern C++ standart support). Build type set to "Debug" by default (-DCMAKE_BUILD_TYPE to redefine). $ mkdir build $ cd build $ cmake .. $ cmake --build . You may redefine compiler and standart library by: $ cmake .. -DCMAKE_CXX_FLAGS={-stdlib=libstdc++ | -stdlib=libc++} -DCMAKE_CXX_COMPILER={$(which clang++) | $(which g++)} $ cmake --build .
About
HTTP request library. CURL wrapper. Small abuse of C++20 coroutines.