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
[msdfgen] New port #15427
[msdfgen] New port #15427
Conversation
The failures on x64-uwp and arm-uwp:
Could you please help look into this? @Haeri If this port doesn't support uwp, please add |
Co-authored-by: NancyLi1013 <46708020+NancyLi1013@users.noreply.github.com>
Co-authored-by: NancyLi1013 <46708020+NancyLi1013@users.noreply.github.com>
I have no idea what UWP is doing... Never dealt with it before. But from the error message it could be that it is expecting a add_executable(msdfgen-standalone main.cpp)
set_target_properties(msdfgen-standalone PROPERTIES ARCHIVE_OUTPUT_DIRECTORY archive OUTPUT_NAME msdfgen) Not sure if this is maybe even a cmake bug? |
@Haeri Thanks for your further investigation. I think there is no need to rename Update as
|
@NancyLi1013 I was hesitant to remove the renaming as the |
@Haeri Sorry for my fault. We should not change the property in this case. So just keep it as before. For the failures on uwp, which is caused by the executable name, I also have no idea about this issue. @strega-nil Could you please help take a look about this issue? We noticed that there is still
|
#7202 Seems to have had the same issue, so maybe @JackBoosY knows more? |
Thanks again for your feedback. @Haeri We might consider to drop the property of renaming this executable. Namely remove Besides this, I cannot figure out other solution to avoid this problem. |
@NancyLi1013 I got around 90 code hits on github.com for |
Interesting... this worked.. I was going to solve this with a symlink but seeing that they are very finicky especially on windows and the binary being only 200kb I think this could be a viable solution? |
@Haeri I think that's okay, because the uwp tools can't be used directly. So please add it as a feature, make a patch to fix that. |
@JackBoosY Sorry I did a lot of changes recently... not sure which one you are referring to... Also I don't know what you mean with |
@Haeri You can add a cmake option |
@JackBoosY There is already an option natively given in the CMake. Its called |
@Haeri You shoud:
vcpkg_from_github(...)
set(BUILD_TOOLS OFF)
if ("tools" IN_LIST FEATURES)
if (VCPKG_TARGET_IS_UWP)
message("Tools couldn't be built on UWP, disable it automatically.")
else()
set(BUILD_TOOLS ON)
endif()
endif()
...
vcpkg_configure_cmake(
...
options
-DMSDFGEN_BUILD_MSDFGEN_STANDALONE=${BUILD_TOOLS}
)
... |
@Haeri Ready for review now? |
/azp run |
Azure Pipelines successfully started running 1 pipeline(s). |
Describe the pull request
What does your PR fix? Fixes #
New port for msdfgen
Which triplets are supported/not supported? Have you updated the CI baseline?
Only static build
Does your PR follow the maintainer guide?
Yes