i want to build tcl/tk and mupdf with zig but i don’t have much experience building c/c++ projects.
Do you have some tips where to start?
Do you know about blogs/videos that deal with building c/c++ projects with zig?
Are there any tools that can help with that task?
Here’s an example build.zig for a non-trivial C/C++ cmdline tool:
Just start reading at the top, it starts with an executable which is linked from a number of static link libraries which are defined further down the build file.
PS: also it might be worth checking allyourcodebase repositories · GitHub first to see if somebody else already did the work of wrapping a specific library into a zig package:
As mentioned above use the various All your codebase repos as reference, then go through all the cmakelists.txt in your project and try to find the equivalent functionality in zigs buildsystem. Then try to build and fix the build errors one by one. Using fd to search for all *.c and *.cpp files also helps to then copy paste into build.zig.