-
Notifications
You must be signed in to change notification settings - Fork 6.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[ijg-libjpeg] add new port #14583
[ijg-libjpeg] add new port #14583
Conversation
* Specify _CRT_SECURE_NO_WARNINGS for Windows * manifest: disable "supports" of emscripten, wasm32
* remove WINDOWS_EXPORT_ALL_SYMBOLS to follow the guideline
Hi @luncliff Thanks for your PR. Since this PR is still in progress, I will answer the questions that you mentioned above now. For issue 1, if Please refer to this doc https://github.com/microsoft/vcpkg/blob/master/docs/maintainers/control-files.md#version For issue 2, it is possible to add CMakeLists.txt for the port. We recommend to use CMake to build the ports. If the source codes have no difference between Windows and Unix platform, there is no need to judge the platforms. For issue 3, it is necessary to skip the build in ci.baseline.txt since there are conflicts between these two ports. Please refer to this
Note: It would be better to add the messages to remind the users in portfile.cmake like this: https://github.com/microsoft/vcpkg/blob/master/ports/libressl/portfile.cmake |
* manifest: removed empty "dependencies" * relocated port skip in ci.baseline.txt
Have you tested this port on your local? Does it work fine? |
Sory for the point. Not all triplets are tested. I will test them with in a days. |
/azp run |
Azure Pipelines successfully started running 1 pipeline(s). |
@NancyLi1013 I found generated |
Followed the way of https://github.com/LuaDist/libjpeg Place cmakedefine in jconfig.txt and use it as a template.
@NancyLi1013 . I followed the way of LuaDist/libjpeg and now the generated |
Thanks for your test and feedback. I noticed that this port requires tool
|
@NancyLi1013, the commit 2a1eb90 removed the dependency. |
Sorry for the delay. If you have tested these triplets on your local and all these triplets can build fine, there is nothing to be done for this PR now. |
Sorry @NancyLi1013 , I forgot to mention you after the last update. Build logs for the 840bea4 are here. Wish it looks good to you. 🎄 🎅 |
Thanks for your update. The build results look good. But I didn't notice the build info for Have you tested these two triplets on Windows? |
@NancyLi1013 , I just added |
LGTM now, thanks for your PR @luncliff. |
Thanks :) |
Changes
Which triplets are supported/not supported? Have you updated the CI baseline?
Build status of the fork - https://dev.azure.com/luncliff/personal/_build?definitionId=47&_a=summary
(requires tooldos2unix
)Does your PR follow the maintainer guide?
Yes 👍
Works In Progress"supports"
jconfig.h
generation withconfigure
in the release (Linux)configure_file
to generatejconfig.h
(this is how https://github.com/LuaDist/libjpeg works)Issues
1. The port uses date for its
version-string
(solved)Its archive is named
jpegsr9d.zip
. README specifiesrelease 9d of 12-Jan-2020
.I'm confused about this case, so applied
2020-01-12
temporarily.Can
version-string
be9d
in this case? (liketbb
's2020_U3
...?)2. The port defines its own CMakeLists.txt (solved)
The official release(http://www.ijg.org/files/jpegsr9d.zip) already contains
configure
for the UNIX machine, but nothing for the Windows environment. The file is for the case.Does it right to add CMakeLists.txt in this case?
or should this port behave differently like
openssl-unix
,openssl-windows
?3. The port's output conflicts with 'libjpeg-turbo' (solved)
The port creates
jpeg.lib
,jpeglib.h
, etc. Which can be installed vialibjpeg-turbo
.Do I have to skip the build in this
ci.baseline.txt
?