https://github.com/mark24code/c-devkit
C Devkit with small C package manager
https://github.com/mark24code/c-devkit
c project-template scaffold-template
Last synced: 6 months ago
JSON representation
C Devkit with small C package manager
- Host: GitHub
- URL: https://github.com/mark24code/c-devkit
- Owner: Mark24Code
- Created: 2024-07-19T17:08:12.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-07-20T01:25:58.000Z (over 1 year ago)
- Last Synced: 2025-03-17T15:14:49.065Z (11 months ago)
- Topics: c, project-template, scaffold-template
- Language: Ruby
- Homepage:
- Size: 2.93 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# C program devkit
Only for MacOS
```
├── Clibfile # C package config
├── README.md
├── bin
│ ├── clib # C package manager
├── dist
│ └──
└── src
├── assets # assets
├── libs # local libs
└── main.c # entry
```
# Deps
* Ruby3
* Bundler `gem install bundler`
# Clib
Small Package Manager
```
Usage: clib [options]
-r, --run=COMMAND Run Command
```
## install
install c libs
`bin/clib -r install`
## uninstall
uninstall c libs
`bin/clib -r uninstall`
## build
build program
`bin/clib -r build`
## run
build then run program
`bin/clib -r run`
or
`bin/clib -r preview`
# Clibfile
Introduce clibfile
```
name "game" # app name
version "0.1.0"
repo ""
entry "src/main.c" # entry
output "dist/game" # option. use name as default output name
dependencies do
lib "raylib" # dep libs
end
# custom command
# can run by `bin/clib -r `
command "clean" do
`rm -rf dist/#{@app_name}`
puts "delete: #{@app_name}"
end
command "test" do
puts "test"
end
```