-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #4 from terrakuh/dev
Version 0.6.0
- Loading branch information
Showing
39 changed files
with
512 additions
and
249 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,7 @@ | ||
FROM archlinux | ||
FROM fedora:40 AS dev | ||
|
||
RUN pacman -Syq --noconfirm python-pip clang git git-lfs openssh cmake ninja gcc gdb nodejs yarn | ||
RUN pip install cmakelang | ||
RUN dnf -y update && \ | ||
dnf -y install git git-lfs cmake ninja-build gcc clang clang-tools-extra llvm gdb python3-pip doxygen && \ | ||
dnf -y install liburing-devel libcurl-devel zip nodejs && \ | ||
pip install cmakelang && \ | ||
dnf clean all |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
/build/ | ||
/docs/ | ||
/tmp/ | ||
/test/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
#pragma once | ||
|
||
#include "cURLio/basic_request.inl" | ||
#include "cURLio/basic_response.inl" | ||
#include "cURLio/basic_session.inl" | ||
#include "cURLio/quick/form.hpp" | ||
#include "cURLio/quick/ignore_all.hpp" | ||
#include "cURLio/quick/reader.hpp" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
file(GLOB_RECURSE hpp_sources "${CMAKE_CURRENT_SOURCE_DIR}/*.hpp") | ||
file(GLOB_RECURSE inl_sources "${CMAKE_CURRENT_SOURCE_DIR}/*.inl") | ||
|
||
foreach(suffix asio boost-asio) | ||
add_library(cURLio-${suffix} INTERFACE ${hpp_sources} ${inl_sources} ../cURLio.hpp) | ||
add_library(cURLio::cURLio-${suffix} ALIAS cURLio-${suffix}) | ||
target_link_libraries(cURLio-${suffix} INTERFACE CURL::libcurl Threads::Threads) | ||
if(suffix STREQUAL "asio") | ||
target_link_libraries(cURLio-${suffix} INTERFACE asio::asio) | ||
target_compile_definitions(cURLio-${suffix} INTERFACE CURLIO_USE_STANDALONE_ASIO) | ||
else() | ||
target_link_libraries(cURLio-${suffix} INTERFACE Boost::boost) | ||
endif() | ||
target_include_directories( | ||
cURLio-${suffix} INTERFACE "$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/..>" | ||
$<INSTALL_INTERFACE:include> | ||
) | ||
target_compile_features(cURLio-${suffix} INTERFACE cxx_std_17) | ||
|
||
if(CURLIO_ENABLE_LOGGING) | ||
target_compile_definitions(cURLio-${suffix} INTERFACE CURLIO_ENABLE_LOGGING) | ||
endif() | ||
|
||
install(TARGETS cURLio-${suffix} EXPORT ${PROJECT_NAME}-targets) | ||
endforeach() | ||
|
||
if(CURLIO_USE_STANDALONE_ASIO) | ||
add_library(cURLio::cURLio ALIAS cURLio-asio) | ||
else() | ||
add_library(cURLio::cURLio ALIAS cURLio-boost-asio) | ||
endif() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.