-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* move patch file to patches/{version}. * bump libxlsxwriter to 1.1.3 * use get_safe when get "fmemopen" value. * remove .pc files * Remove trailing spaces Co-authored-by: Uilian Ries <uilianries@gmail.com> * Use latest patch version Co-authored-by: Uilian Ries <uilianries@gmail.com> Co-authored-by: Uilian Ries <uilianries@gmail.com>
- Loading branch information
1 parent
87884e7
commit 8a322c8
Showing
5 changed files
with
81 additions
and
6 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,8 +1,14 @@ | ||
sources: | ||
"1.1.3": | ||
url: "https://github.com/jmcnamara/libxlsxwriter/archive/RELEASE_1.1.3.tar.gz" | ||
sha256: "bd7a3d38c6a8ef5e31d07a61fded23ac00d29d758417ca42db89da60bf796d78" | ||
"1.0.0": | ||
url: "https://github.com/jmcnamara/libxlsxwriter/archive/RELEASE_1.0.0.tar.gz" | ||
sha256: "8b353379333c323d14a9d265cd2491d3a6c0032c8d6ec2141f10b82ab66a087c" | ||
patches: | ||
"1.1.3": | ||
- base_path: "source_subfolder" | ||
patch_file: "patches/1.1.3/001-patch-cmake-conan-targets.patch" | ||
"1.0.0": | ||
- base_path: "source_subfolder" | ||
patch_file: "patches/001-patch-cmake-conan-targets.patch" | ||
patch_file: "patches/1.0.0/001-patch-cmake-conan-targets.patch" |
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
File renamed without changes.
43 changes: 43 additions & 0 deletions
43
recipes/libxlsxwriter/all/patches/1.1.3/001-patch-cmake-conan-targets.patch
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,43 @@ | ||
diff --git a/a/CMakeLists.txt b/b/CMakeLists.txt | ||
index 66505b5..d63cc96 100644 | ||
--- a/a/CMakeLists.txt | ||
+++ b/b/CMakeLists.txt | ||
@@ -213,16 +213,16 @@ configure_file(dev/release/pkg-config.txt xlsxwriter.pc @ONLY) | ||
# INCLUDES | ||
# -------- | ||
enable_language(CXX) | ||
-list(APPEND CMAKE_MODULE_PATH ${CMAKE_CURRENT_SOURCE_DIR}/cmake) | ||
+#list(APPEND CMAKE_MODULE_PATH ${CMAKE_CURRENT_SOURCE_DIR}/cmake) | ||
|
||
# ZLIB | ||
find_package(ZLIB REQUIRED "1.0") | ||
-list(APPEND LXW_PRIVATE_INCLUDE_DIRS ${ZLIB_INCLUDE_DIRS}) | ||
+#list(APPEND LXW_PRIVATE_INCLUDE_DIRS ${ZLIB_INCLUDE_DIRS}) | ||
message("zlib version: " ${ZLIB_VERSION}) | ||
|
||
# MINIZIP | ||
if (USE_SYSTEM_MINIZIP) | ||
- find_package(MINIZIP REQUIRED "1.0") | ||
+# find_package(MINIZIP REQUIRED "1.0") | ||
list(APPEND LXW_PRIVATE_INCLUDE_DIRS ${MINIZIP_INCLUDE_DIRS}) | ||
endif() | ||
|
||
@@ -259,7 +259,7 @@ if(NOT USE_OPENSSL_MD5 AND NOT USE_NO_MD5) | ||
endif() | ||
|
||
if(USE_OPENSSL_MD5) | ||
- find_package(OpenSSL REQUIRED) | ||
+# find_package(OpenSSL REQUIRED) | ||
if(OpenSSL_FOUND) | ||
include_directories(${OPENSSL_INCLUDE_DIR}) | ||
message(STATUS "OpenSSL version: ${OPENSSL_VERSION}") | ||
@@ -278,7 +278,8 @@ target_sources(${PROJECT_NAME} | ||
PRIVATE ${LXW_SOURCES} | ||
PUBLIC ${LXW_HEADERS} | ||
) | ||
-target_link_libraries(${PROJECT_NAME} LINK_PUBLIC ${ZLIB_LIBRARIES} ${MINIZIP_LIBRARIES} ${LIB_CRYPTO} ${OPENSSL_CRYPTO_LIBRARY}) | ||
+#target_link_libraries(${PROJECT_NAME} LINK_PUBLIC ${ZLIB_LIBRARIES} ${MINIZIP_LIBRARIES} ${LIB_CRYPTO} ${OPENSSL_CRYPTO_LIBRARY}) | ||
+target_link_libraries(${PROJECT_NAME} LINK_PUBLIC CONAN_PKG::zlib CONAN_PKG::minizip) | ||
target_compile_definitions(${PROJECT_NAME} PRIVATE ${LXW_PRIVATE_COMPILE_DEFINITIONS}) | ||
|
||
# /utf-8 needs VS2015 Update 2 or above. |
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,5 @@ | ||
versions: | ||
"1.1.3": | ||
folder: "all" | ||
"1.0.0": | ||
folder: "all" |