-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathcppkg.h
More file actions
24 lines (20 loc) · 784 Bytes
/
cppkg.h
File metadata and controls
24 lines (20 loc) · 784 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#pragma once
#ifndef __CPPKG_CPPKG_H__
#define __CPPKG_CPPKG_H__
#include <string>
#include "cppm/core/config.hpp"
#include "cppm/cppkg/repo.h"
namespace cppkg {
using dep_in_repo = std::pair<cppm::core::Dependency,std::string>;
cppm::core::Dependency parse(const std::string& name, std::string path="");
// std::string translate(cppm::core::Dependency& dep);
void init(const std::string& name);
void init(cppm::core::Dependency& dep);
Repos list();
void build(const std::string& name);
void regist(const std::string& name);
dep_in_repo search(const std::string& name, const std::string& version);
void install(cppm::core::Config& config, const dep_in_repo& depr);
cppm::core::Dependency cppkg_auto_gen(std::string& path);
}
#endif