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

Fixed Android Build #25

Merged
merged 3 commits into from
May 19, 2024
Merged

Fixed Android Build #25

merged 3 commits into from
May 19, 2024

Conversation

mariotaku
Copy link
Contributor

Hi! Sorry for the previous PR #23 , as it only partially solves build issue for Android, and is inconsistent across hosts.

This PR instead of defining __ANDROID_API__, defines _BSD_SOURCE only for Android to ensure build consistency across different versions. Also, workflow for Android has been added to verify the whole build process on Linux, Windows and macOS.

The same patch has been verified working for upstream CMake project as well, so I believe this is the correct patch to get a working build without worrying about target API version.

@wez
Copy link
Owner

wez commented May 19, 2024

FWIW, this PR seems to break the Windows build

@wez wez merged commit 7592e50 into wez:main May 19, 2024
12 checks passed
@wez
Copy link
Owner

wez commented May 19, 2024

Thank you!

@wez
Copy link
Owner

wez commented May 19, 2024

I've published updated versions to crates.io

@mariotaku mariotaku deleted the fix/android-build branch May 20, 2024 02:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants