31#ifndef __CBUILD_HASH_HPP__
32#define __CBUILD_HASH_HPP__
39 std::vector<std::string> objects_list)
override;
45 if (cargs != meta.
cargs) {
58 if (largs != meta.
largs) {
67 std::string packer)
override {
87 if (out != meta.
out) {
91 out.c_str(), meta.
out.c_str());
96 virtual void set_target_meta(std::vector<std::string> cargs, std::vector<std::string> largs,
97 std::string out, std::string compiler, std::string linker,
98 std::string packer)
override {
Build metadata config file.
CBuildHashV2(std::string target_id)
virtual int compare_and_set_output_file(std::string out) override
Compare output file name and update metadata.
virtual void set_target_meta(std::vector< std::string > cargs, std::vector< std::string > largs, std::string out, std::string compiler, std::string linker, std::string packer) override
Set the target meta.
virtual int compare_and_set_largs(std::vector< std::string > largs) override
Compare link args and update metadata.
virtual int compare_and_set_commands(std::string compiler, std::string linker, std::string packer) override
Compare shell commands used for compilation and update metadata.
virtual lib::map< std::string, std::string > get_files_for_recompilation(std::vector< std::string > file_list, std::vector< std::string > objects_list) override
Pass a list of source files and coresponding object files and get a map of source-object that need to...
virtual int compare_and_set_cargs(std::vector< std::string > cargs) override
Compare compile args and update metadata.
Simple map implementation with some stack operation added.
Hasher base class and some helper functions This file implements some helper funtions,...
Custom implementation of map datatype.
Filebuffer for CBuild ecosystem.
void void printf_full(color fg, const char *fmt,...) __attribute__((format(printf
Some poor printf implementation for verbouse-only prints.
int read_target_metadata(std::string target_id, CBuild::target_metadata_file *metadata)
Load metadata for a full target.
int write_target_metadata(std::string target_id, CBuild::target_metadata_file *metadata)
Write a metadata for a full target.
Custom print that support color codes.