Skip to content

Fixed Android Build#25

Merged
wez merged 3 commits intowez:mainfrom
mariotaku:fix/android-build
May 19, 2024
Merged

Fixed Android Build#25
wez merged 3 commits intowez:mainfrom
mariotaku:fix/android-build

Conversation

@mariotaku
Copy link
Copy Markdown
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
Copy Markdown
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
@wez
Copy link
Copy Markdown
Owner

wez commented May 19, 2024

Thank you!

@wez
Copy link
Copy Markdown
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