Skip to content
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

[imgui] Fix deps of feature allegro5-binding #31871

Merged
merged 4 commits into from
Jun 8, 2023

Conversation

LilyWangLL
Copy link
Contributor

Fixes #17058

  1. Fix include property for allegro5 targets.
  2. Fix deps allegro5 of imgui[allegro5-binding].

Usage test pass on x64-linux.
The test codes from #17125 (comment) passed on x64-linux.

  • Changes comply with the maintainer guide
  • SHA512s are updated for each updated download
  • The "supports" clause reflects platforms that may be fixed by this new version
  • Any fixed CI baseline entries are removed from that file.
  • Any patches that are no longer applied are deleted from the port's directory.
  • The version database is fixed by rerunning ./vcpkg x-add-version --all and committing the result.
  • Only one version is added to each modified port's versions file.

@LilyWangLL LilyWangLL added category:port-bug The issue is with a library, which is something the port should already support info:internal This PR or Issue was filed by the vcpkg team. labels Jun 7, 2023
@LilyWangLL LilyWangLL marked this pull request as ready for review June 7, 2023 10:09
@Cheney-W Cheney-W added the info:reviewed Pull Request changes follow basic guidelines label Jun 8, 2023
@dan-shaw dan-shaw merged commit 282e4f6 into microsoft:master Jun 8, 2023
find_path(ALLEGRO5_INCLUDE_DIRS allegro5/allegro.h)
target_include_directories(${PROJECT_NAME} PRIVATE ${ALLEGRO5_INCLUDE_DIRS})
find_package(unofficial-allegro5 CONFIG REQUIRED)
target_link_libraries(${PROJECT_NAME} PRIVATE unofficial-allegro5::allegro unofficial-allegro5::allegro_ttf unofficial-allegro5::allegro_font unofficial-allegro5::allegro_main)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These target don't use the proper unofficial::allegro5:: namespace.
IIUC no targets were exported by allegro5 until now, so the time to fix allegro5 is now.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

BTW are all these link libraries needed here? unofficial-allegro5::allegro_main doesn't add another main function?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this got merged to master already

Copy link
Contributor

@dg0yt dg0yt Jun 9, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I know, but it is only a few hours, and such mistakes have been fixed in the past.
It really sucks if there is neither enough time for review, nor enough quality.

ybogo pushed a commit to ybogo/vcpkg that referenced this pull request Jun 9, 2023
* [imgui] Fix feature allegro5-binding deps

* update version

* Update imgui.json
@LilyWangLL LilyWangLL deleted the dev/LilyWang/issue17058 branch June 15, 2023 09:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
category:port-bug The issue is with a library, which is something the port should already support info:internal This PR or Issue was filed by the vcpkg team. info:reviewed Pull Request changes follow basic guidelines
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[imgui] fatal error: 'imgui_impl_allegro5.h' file not found
5 participants