2024-10-27 15:51:46 +08:00
|
|
|
#ifndef PACK_HEADER
|
|
|
|
#define PACK_HEADER
|
|
|
|
|
|
|
|
#include "public.hpp"
|
2024-10-27 22:57:17 +08:00
|
|
|
#include <list>
|
2024-10-27 15:51:46 +08:00
|
|
|
|
|
|
|
class CPackBinary
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
CPackBinary() = default;
|
|
|
|
~CPackBinary() = default;
|
2024-10-27 22:57:17 +08:00
|
|
|
|
2024-10-27 15:51:46 +08:00
|
|
|
public:
|
|
|
|
bool startPack(const CmdResult& result);
|
2024-10-27 22:57:17 +08:00
|
|
|
|
|
|
|
private:
|
|
|
|
std::vector<std::string> getDepends(const std::string& path,
|
|
|
|
const std::vector<std::string>& dirs);
|
|
|
|
std::list<std::string> parseResult(const std::vector<std::string>& result);
|
|
|
|
bool handleAndCopy(const std::list<std::string>& libs);
|
2024-10-27 15:51:46 +08:00
|
|
|
};
|
|
|
|
|
2024-10-27 22:57:17 +08:00
|
|
|
#endif
|