{"id":20468953,"url":"https://github.com/neko-box-coder/runcpp2","last_synced_at":"2025-04-13T10:27:09.769Z","repository":{"id":223365308,"uuid":"757796539","full_name":"Neko-Box-Coder/runcpp2","owner":"Neko-Box-Coder","description":"A simple declarable, scriptable, flexible cross-platform build system build system for c or c++","archived":false,"fork":false,"pushed_at":"2025-04-11T00:59:57.000Z","size":1658,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-11T01:39:44.770Z","etag":null,"topics":["build","build-systems","build-tools","c","cpp","scripting","systems"],"latest_commit_sha":null,"homepage":"https://neko-box-coder.github.io/runcpp2/","language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"unlicense","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Neko-Box-Coder.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":"2024-02-15T01:57:59.000Z","updated_at":"2025-04-11T00:55:12.000Z","dependencies_parsed_at":"2024-03-22T03:27:29.267Z","dependency_job_id":"20a04d80-ba1a-49bc-8182-635cc5f9394a","html_url":"https://github.com/Neko-Box-Coder/runcpp2","commit_stats":null,"previous_names":["neko-box-coder/runcpp2"],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Neko-Box-Coder%2Fruncpp2","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Neko-Box-Coder%2Fruncpp2/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Neko-Box-Coder%2Fruncpp2/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Neko-Box-Coder%2Fruncpp2/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Neko-Box-Coder","download_url":"https://codeload.github.com/Neko-Box-Coder/runcpp2/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248697406,"owners_count":21147322,"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","build-systems","build-tools","c","cpp","scripting","systems"],"created_at":"2024-11-15T14:07:26.963Z","updated_at":"2025-04-13T10:27:09.757Z","avatar_url":"https://github.com/Neko-Box-Coder.png","language":"C++","readme":"# runcpp2\n\n![](./Runcpp2Logo.png)\n\nruncpp2 is a simple declarable, scriptable, flexible cross-platform build system build system for c or c++\n\n- 🚀 **Simple**: `runcpp2 main.cpp`, this is all you need to get started\n- 📝 **Declarable**: *Quick, Concise, Minimal* YAML format\n- 🔧 **Scriptable**: *Customize, Run And Debug* your build pipeline with c++, or just use it as a script. \n                     No longer need to juggle between CMake, Python, Bash, Batch, Lua, etc...\n- 🪜 **Flexible**: *YAML* for small project, *c++* for finer control\n\nFor more information, see [Full Documentation](https://neko-box-coder.github.io/runcpp2/latest/)\n\n## 🛠️ Prerequisites\n- Any c or c++ compiler. The default user config only has g++ and msvc profiles. But feel free to\nadd other compilers.\n\n## 📥️ Installation\nYou can either build from source or use the binary release\n\nBinary Release (Only Linux and Windows for now): \n[https://github.com/Neko-Box-Coder/runcpp2/releases](https://github.com/Neko-Box-Coder/runcpp2/releases)\n\n\nFinally, you just need to add runcpp2 binary location to the `PATH` environment variable and \nyou can run c++ files anywhere you want.\n\n## ⚡️ Getting Started\n\n### 1. Running source file directly\nSuppose you have a c++ file called `script.cpp`, you can run it immediately by doing \n\n\u003e *shell*\n```shell\nruncpp2 ./script.cpp \u003cany arguments\u003e\n```\n\n\u003e [!NOTE]\n\u003e On Unix, if you have added runcpp2 to your PATH and add this line `//bin/true;runcpp2 \"$0\" \"$@\"; exit $?;` \n\u003e to the top of your script, you can run the script directly by `./script.cpp \u003carguments\u003e`\n\n---\n\n### 2. Watch and give compile errors\nIf you want to edit the script but want to have feedback for any error, you can use \"watch\" mode.\n\n\u003e *shell*\n```shell\nruncpp2 --watch ./script.cpp\n```\n\n---\n\n### 3. Sepcifying Build Settings\nBuild settings such as compile/link flags, external dependencies, command hooks, etc.\ncan be spcified inlined inside a source file or as a separate yaml file in the format of YAML\n\n- To specify build settings in a dedicated yaml file:\n    - The yaml file in the same directory and share the same as the source file being run will be used\n- To specify inline build settings inside a source file: \n    - Put them inside a comment with `runcpp2` at the beginning of the build settings\n    - The inline build settings can exist in anywhere of the source file\n    - Both inline (but continuous) comments (`//`) and block comments are supported (`/* */`)\n\nFor a complete list of build settings, see [Build Settings](https://neko-box-coder.github.io/runcpp2/latest/build_settings/) or generate the template with\n\n\u003e *shell*\n```shell\nruncpp2 --create-script-template ./script.cpp   # Embeds the build settings template as comment\nruncpp2 --create-script-template ./script.yaml  # Creates the build settings template as dedicated yaml file\nruncpp2 -t ./script.cpp                         # Short form\n```\n\n\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fneko-box-coder%2Fruncpp2","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fneko-box-coder%2Fruncpp2","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fneko-box-coder%2Fruncpp2/lists"}