{"id":19594942,"url":"https://github.com/jannled/stbuild","last_synced_at":"2025-04-27T15:34:16.565Z","repository":{"id":162951691,"uuid":"345491096","full_name":"Jannled/STBuild","owner":"Jannled","description":"An easy to use buildsystem for C/C++ with minimal dependencies targeting C/C++ beginners and projects with moderate complexity.","archived":true,"fork":false,"pushed_at":"2021-07-16T10:48:21.000Z","size":48,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-02-26T14:23:57.466Z","etag":null,"topics":["build","buildsystem","buildsystems","c","cpp","file","single","single-file","system","yaml"],"latest_commit_sha":null,"homepage":"","language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Jannled.png","metadata":{"files":{"readme":"Readme.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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":"2021-03-08T00:56:56.000Z","updated_at":"2024-12-12T01:32:39.000Z","dependencies_parsed_at":null,"dependency_job_id":"80476864-49ae-440f-a012-49e6b1822132","html_url":"https://github.com/Jannled/STBuild","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Jannled%2FSTBuild","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Jannled%2FSTBuild/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Jannled%2FSTBuild/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Jannled%2FSTBuild/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Jannled","download_url":"https://codeload.github.com/Jannled/STBuild/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251162896,"owners_count":21545843,"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":["build","buildsystem","buildsystems","c","cpp","file","single","single-file","system","yaml"],"created_at":"2024-11-11T08:45:17.581Z","updated_at":"2025-04-27T15:34:16.548Z","avatar_url":"https://github.com/Jannled.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"# STBuild\r\n## What makes this build system different\r\n### **S**ingle file\r\nThe entire source code for this build system is inside a single .cpp for the following reasons:\r\n1. No other dependencies other than the std library (the embedded [yaml parser](https://github.com/jimmiebergmann/mini-yaml)) and a compiler of course. No need to install a third party build-system, Python etc.\r\n2. `g++ stbuild.cpp yaml/Yaml.cpp --std=c++17 -o stbuild` is all you need to compile this build system into an executable (well except for MSVC lol). This should make it easily portable to different platforms.\r\n\r\n\\* Currently the yaml parser is not included in the stbuild.cpp, so the command is a little more involved at the moment (you have to include a second file), but this is an early prototype and will propably change in the future!\r\n\r\n### **T**raversial\r\nYou might give this build system a defined list of files, or some paths with regex expressions to declare which files you would like to build. \r\n\r\nCMake and Make both need a list of source files, telling them to just look in a specified directory for files with a certain ending is just a nightmare (especially doing this cross platform with Make). Compiling a C/C++ program with multiple files as a newcomer to the language is just madness.\r\n\r\n### **B**uild system\r\nAnd the build description files should be straight forward.\r\nTODO\r\n\r\n## Why another build system?\r\nWell there are plenty build systems out there. While some people are upset by [the sheer abundance of build systems](https://www.reddit.com/r/programming/comments/gm1dy/stop_inventing_motherfucking_build_systems/), others are mad at the current selection of build systems. They usually have a hell lot of dependences and require the most complex, unintuitive setup for the most basic tasks (I might write a list sometime to outline my fun experiences).\r\n\r\n## stb, this remembers me of something...\r\nFirst of im not affiliated with [Sean Barret (nothings)](https://github.com/nothings/) in any way. But yes the name STBuild was choosen on purpose. I just highly appreciate the librarys this guy realesed into the wild and the fact that they usually consist of a single c++ source file. And others seem to like these too, as there are other authors following this idea and they get [actively promoted by Sean Barret](https://github.com/nothings/single_file_libs).\r\n\r\nWell if you never heard of Sean Berret and his work, it's a shame and you should definitively [go check it out](https://github.com/nothings/stb).","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjannled%2Fstbuild","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjannled%2Fstbuild","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjannled%2Fstbuild/lists"}