Skip to content

Qquanwei/cpm

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

43 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

#CPM c程序软件库管理器

介绍

c的程序库寻找过程太麻烦,cpm为了方便安装使用c库而生,强调一下npm只为c提供库的安装,不包含cpp部分,如果你需要cpp部分的常用库,stl,boost相信能完成你的需求

软件库列表

软件库列表新建为 git@github.com:Qquanwei/cpmlist.git ,可通过Push新列表更新库源。需要使用git功能,本地的源仓库在~/.cpm/cpmlist中,每次执行install时通过执行--判断是否存在本地cpmlist仓库--查找c库地址--下载--这一流程进行c库的安装。执行update时更新本地源。

本地c库存放于cinclude中,在cinclude中存放每个c库的版本库(git). 。

例如,安装clist后,cinclude看起来像下面这样

    cinclude
    └── clist
        └── clist.h

    1 directory, 2 files

在使用时可以在主文件中加入 #include "cinclude/clist/clist.h" 进行引用。

使用说明(最新版本v0.0.2)

  • 安装helloworld : cpm install helloworld
  • 搜索helloworld : cpm search helloworld
  • 更新本地仓库列表 : cpm update
  • 卸载helloworld : cpm remove helloworld
  • 查看已安装的包: cpm ls
  • 查看无记录的包: cpm autoclean

事实上

  • 它不仅仅可以做c库管理器

About

c库管理器

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages