[teemo] Update to v1.3 (#9999)

* teemo

* 1. move header files to teemo folder.
2. add Cancel Event.
3. create directories automatically.
This commit is contained in:
winsoft666 2020-02-11 08:23:04 +08:00 committed by GitHub
parent 08c951fef9
commit 56a12f6ee9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 3 additions and 28 deletions

View File

@ -1,5 +1,5 @@
Source: teemo
Version: 1.2-1
Version: 1.3
Build-Depends: curl[non-http], cpprestsdk
Description: C++ File Download Library, support Multithreading, Breakpoint Transmission, Speed Limit, Real-time Speed.
Homepage: https://github.com/winsoft666/teemo

View File

@ -1,22 +0,0 @@
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
index 20de97c..0009c8a 100644
--- a/src/CMakeLists.txt
+++ b/src/CMakeLists.txt
@@ -108,7 +108,7 @@ set_target_properties(${LIB_NAME}
RUNTIME_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/bin" )
target_include_directories(${LIB_NAME} INTERFACE
- $<INSTALL_INTERFACE:include>)
+ $<INSTALL_INTERFACE:include/teemo>)
install(TARGETS ${LIB_NAME}
EXPORT ${LIB_NAME}-target
@@ -117,7 +117,7 @@ install(TARGETS ${LIB_NAME}
ARCHIVE DESTINATION lib)
-install(FILES ${HEADER_FILES} DESTINATION include)
+install(FILES ${HEADER_FILES} DESTINATION include/teemo)
install(FILES ${CMAKE_CURRENT_SOURCE_DIR}/../CMake/teemo-config.cmake

View File

@ -3,12 +3,9 @@ vcpkg_fail_port_install(ON_ARCH "arm" "arm64" ON_TARGET "UWP" "osx")
vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH
REPO winsoft666/teemo
REF 15edb1705d18ee78b32516a8ae52d6b10507af62
SHA512 7dbe917d48b1e8c4b004bad33d8a82524e501d8bec6cdeca4e89ebbe8ed79fa484028c3afd365347e31fa83f64a6f0f5a42ea0063baa7c0985824fb3dffcc8f2
REF 1ee566747fba3febade554718a2db6a6c71c6fc4
SHA512 10b391a0c629bdcd3737c1e04ac09300412322c8a4b87a8008d368663a223442fe7d7dac4fbd423b5051afcab60bb4c619cfc451a9c5902d396b7a7081a4d3c4
HEAD_REF master
PATCHES
# Installing "slice.h" to the root include directory causes build issues in many other libraries
adjust-install-dir.patch
)
string(COMPARE EQUAL "${VCPKG_LIBRARY_LINKAGE}" "static" TEEMO_STATIC)