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

Refine and fix building with zig #369

Merged
merged 10 commits into from
May 29, 2024

Conversation

ttytm
Copy link
Member

@ttytm ttytm commented May 27, 2024

The PR fixes and refines building with Zig.

The changes are also a preparation to allow a simple integration for building with Zig 0.12.0 in a follow-up.

The goal of this PR is to simplify the code while making it more expressive and extending functionality at the same time.

It also allows to zig-build with extended information. E.g. what is currently a silent build, can give info based on the build options, like:

❯ zig build -Dverbose -Ddynamic
Building dynamic WebUI library...
Done.

It's not a huge diff, but still fairly big. So just reviewing and testing the new build.zig result locally might be an easier approach.

@ttytm ttytm changed the title Squash(#368) Refine and fix building with zig May 27, 2024
@ttytm ttytm marked this pull request as draft May 27, 2024 12:07
@ttytm ttytm force-pushed the build/update-zig-11-build branch from 7d8fbd3 to 6c99bad Compare May 27, 2024 12:12
@jinzhongjia
Copy link
Collaborator

ha? So you want to add 0.12 zig support to the webui?

@jinzhongjia
Copy link
Collaborator

I think subsequent adjustments to 0.12 are best placed in zig-webui

@jinzhongjia
Copy link
Collaborator

jinzhongjia commented May 27, 2024

Oh, my problem, please ignore what I said above, I just checked the commit record
Glad you keep submitting code @hassandraga , haven't seen you in a few months

I should also make a new adaptation on zig-webui for 0.25.0

@ttytm
Copy link
Member Author

ttytm commented May 27, 2024

Yeah, this is just about continuing to support building the webui C library with the zig build system as it's already in there. All zig WRAPPER api code should continue to go to the zig-webui repo.

@ttytm
Copy link
Member Author

ttytm commented May 27, 2024

I'm gonna finish the PR this likely tomorrow or the day after tomorrow. Unfortunately, there is a lot of work atm

@ttytm ttytm force-pushed the build/update-zig-11-build branch 4 times, most recently from 9eef59d to 1141dbe Compare May 29, 2024 14:57
@ttytm ttytm force-pushed the build/update-zig-11-build branch from 1141dbe to 3b3ccdf Compare May 29, 2024 14:58
@ttytm ttytm marked this pull request as ready for review May 29, 2024 15:00
@ttytm ttytm requested a review from hassandraga May 29, 2024 15:00
@ttytm ttytm force-pushed the build/update-zig-11-build branch from 857696a to 9ca7c3c Compare May 29, 2024 16:46
@hassandraga hassandraga merged commit cd06462 into webui-dev:main May 29, 2024
14 checks passed
@ttytm ttytm deleted the build/update-zig-11-build branch May 29, 2024 19:17
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.

3 participants