forked from conan-io/conan-center-index
-
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.
(conan-io#13031) mozjpeg: add version 4.1.1 and support conan v2
* mozjpeg: add version 4.1.1 and support conan v2 * add argument to is_msvc_static_untime * Update conanfile.py * fix bug in bin_path * remove lib64 folder * fix jpeg file path * fix binary install folder * fix link error in MT * fix wrong condition for WITH_CRT_DLL * revert ENABLE_SHARED,ENABLE_STATIC * fix static binary path * use TARGET_FILE in 3.3.1
- Loading branch information
Showing
10 changed files
with
218 additions
and
124 deletions.
There are no files selected for viewing
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 |
---|---|---|
@@ -1,14 +1,23 @@ | ||
sources: | ||
"4.1.1": | ||
url: "https://github.com/mozilla/mozjpeg/archive/v4.1.1.tar.gz" | ||
sha256: "66b1b8d6b55d263f35f27f55acaaa3234df2a401232de99b6d099e2bb0a9d196" | ||
"4.0.0": | ||
url: "https://github.com/mozilla/mozjpeg/archive/v4.0.0.tar.gz" | ||
sha256: "961e14e73d06a015e9b23b8af416f010187cc0bec95f6e3b0fcb28cc7e2cbdd4" | ||
"3.3.1": | ||
url: "https://github.com/mozilla/mozjpeg/archive/v3.3.1.tar.gz" | ||
sha256: "aebbea60ea038a84a2d1ed3de38fdbca34027e2e54ee2b7d08a97578be72599d" | ||
patches: | ||
"4.1.1": | ||
- patch_file: "patches/4.1.1-0001-cmake-fixes.patch" | ||
patch_description: "fix install folder and disable /NODEFAULT in MSVC" | ||
patch_type: "conan" | ||
"4.0.0": | ||
- base_path: "source_subfolder" | ||
patch_file: "patches/4.0.0-0001-cmake-fixes.patch" | ||
- patch_file: "patches/4.0.0-0001-cmake-fixes.patch" | ||
patch_description: "fix install folder" | ||
patch_type: "conan" | ||
"3.3.1": | ||
- base_path: "source_subfolder" | ||
patch_file: "patches/3.3.1-0001-cmake-fixes.patch" | ||
- patch_file: "patches/3.3.1-0001-cmake-fixes.patch" | ||
patch_description: "fix install folder" | ||
patch_type: "conan" |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
diff --git a/CMakeLists.txt b/CMakeLists.txt | ||
index 8d295c6..b30dacb 100644 | ||
--- a/CMakeLists.txt | ||
+++ b/CMakeLists.txt | ||
@@ -1461,7 +1461,7 @@ if(WITH_TURBOJPEG) | ||
else() | ||
set(DIR ${CMAKE_CURRENT_BINARY_DIR}) | ||
endif() | ||
- install(PROGRAMS ${DIR}/tjbench-static${EXE} | ||
+ install(PROGRAMS $<TARGET_FILE:tjbench-static> | ||
DESTINATION ${CMAKE_INSTALL_BINDIR} RENAME tjbench${EXE}) | ||
endif() | ||
endif() | ||
@@ -1479,16 +1479,16 @@ if(ENABLE_STATIC) | ||
else() | ||
set(DIR ${CMAKE_CURRENT_BINARY_DIR}) | ||
endif() | ||
- install(PROGRAMS ${DIR}/cjpeg-static${EXE} | ||
+ install(PROGRAMS $<TARGET_FILE:cjpeg-static> | ||
DESTINATION ${CMAKE_INSTALL_BINDIR} RENAME cjpeg${EXE}) | ||
- install(PROGRAMS ${DIR}/djpeg-static${EXE} | ||
+ install(PROGRAMS $<TARGET_FILE:djpeg-static> | ||
DESTINATION ${CMAKE_INSTALL_BINDIR} RENAME djpeg${EXE}) | ||
- install(PROGRAMS ${DIR}/jpegtran-static${EXE} | ||
+ install(PROGRAMS $<TARGET_FILE:jpegtran-static> | ||
DESTINATION ${CMAKE_INSTALL_BINDIR} RENAME jpegtran${EXE}) | ||
endif() | ||
endif() | ||
|
||
-install(TARGETS rdjpgcom wrjpgcom RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}) | ||
+install(TARGETS rdjpgcom wrjpgcom DESTINATION ${CMAKE_INSTALL_BINDIR}) | ||
|
||
install(FILES ${CMAKE_CURRENT_SOURCE_DIR}/README.ijg | ||
${CMAKE_CURRENT_SOURCE_DIR}/README.md ${CMAKE_CURRENT_SOURCE_DIR}/example.txt |
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,8 @@ | ||
cmake_minimum_required(VERSION 3.1) | ||
cmake_minimum_required(VERSION 3.8) | ||
|
||
project(test_package C) | ||
|
||
include(${CMAKE_BINARY_DIR}/conanbuildinfo.cmake) | ||
conan_basic_setup() | ||
find_package(mozjpeg REQUIRED CONFIG) | ||
|
||
add_executable(${PROJECT_NAME} test_package.c) | ||
target_link_libraries(${PROJECT_NAME} ${CONAN_LIBS}) | ||
target_link_libraries(${PROJECT_NAME} PRIVATE mozjpeg::libjpeg) |
Oops, something went wrong.