{"id":23419286,"url":"https://github.com/dasimmet/zig-meta-allyourcode","last_synced_at":"2025-04-09T08:47:19.176Z","repository":{"id":248103787,"uuid":"827495269","full_name":"dasimmet/zig-meta-allyourcode","owner":"dasimmet","description":null,"archived":false,"fork":false,"pushed_at":"2025-03-07T11:22:43.000Z","size":187,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-07T11:33:59.328Z","etag":null,"topics":["zig-package"],"latest_commit_sha":null,"homepage":"","language":"Zig","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/dasimmet.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-07-11T18:59:04.000Z","updated_at":"2025-03-07T11:22:46.000Z","dependencies_parsed_at":"2024-09-07T23:35:00.825Z","dependency_job_id":"734ff7bb-751c-4f0c-b19e-65447b4c43c9","html_url":"https://github.com/dasimmet/zig-meta-allyourcode","commit_stats":null,"previous_names":["dasimmet/zig-meta-allyourcode"],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dasimmet%2Fzig-meta-allyourcode","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dasimmet%2Fzig-meta-allyourcode/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dasimmet%2Fzig-meta-allyourcode/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dasimmet%2Fzig-meta-allyourcode/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dasimmet","download_url":"https://codeload.github.com/dasimmet/zig-meta-allyourcode/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248008623,"owners_count":21032555,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["zig-package"],"created_at":"2024-12-23T01:17:32.685Z","updated_at":"2025-04-09T08:47:19.162Z","avatar_url":"https://github.com/dasimmet.png","language":"Zig","funding_links":[],"categories":[],"sub_categories":[],"readme":"# meta-allyourcode\n\nlazy dependencies for zig build.\nThis repository is for writing `build.zig` configurations for other c/c++ projects\n\n## CMake\n\nusing the zig build system, this repository bootstraps `cmake` `3.30.1` without any system cmake\nor the usual shellscript method. it takes a while and is only tested on x64 linux,\nbut can be used to build your C/C++ dependency libraries.\n\nthe package also has a custom `CMakeStep` that will configure and build and install a cmake project,\nand providdes a `.install(b, name)` function to get the artifacts:\n```\nzig fetch --save https://github.com/dasimmet/zig-meta-allyourcode/archive/refs/heads/master.tar.gz\n```\nbuild.zig (from [example](./example/build.zig)):\n```\npub fn build() void {\n  const meta_import = b.lazyImport(@This(), \"meta_allyourcode\");\n\n  if (meta_import) |meta_allyourcode| {}\n  const cmakeStep = meta_allyourcode.addCMakeStep(b, .{\n    .target = b.standardTargetOptions(.{}),\n    .name = \"cmake\",\n    .source_dir = b.path(\"\"),\n      .defines = \u0026.{\n          .{ \"CMAKE_BUILD_TYPE\", if (optimize == .Debug) \"Debug\" else \"Release\" },\n      },\n  });\n  cmakeStep.addCmakeDefine();\n  const install_step = cmakeStep.install(b, \"\");\n  b.getInstallStep().dependOn(\u0026install_step.step);\n}\n```\n\n## integrated builds\n\n- cmake (including custom build step?)\n  - ✅ stage1 linux\n  - ✅ running bootstrap `cmake` to reconfigure itself with `CC=zig cc`\n  - ✅ use zig built `make` to rebuild `cmake`\n  - 🏃‍♂️ stage1 windows\n  - 🏃‍♂️ stage1 macos\n  - 🏃‍♂️test building other cmake projects\n  - try to link cmake fully static\n  - test other architectures\n- libgit2 ✅\n  - build for wasm32-wasi\n- wabt\n  - ✅ compile libwabt and wasm2wat\n  - ✅ add build.zig include code\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdasimmet%2Fzig-meta-allyourcode","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdasimmet%2Fzig-meta-allyourcode","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdasimmet%2Fzig-meta-allyourcode/lists"}