21#ifndef __BUILD_DATA_HPP__
22#define __BUILD_DATA_HPP__
51 std::vector<std::string>
deps;
Filebuffer for CBuild ecosystem.
uint64_t hash(std::string str)
FNV-1a hashing function for std::string.
int write_file_hash(std::string target_id, std::string file, uint64_t *hash)
int read_file_metadata_direct(std::string target_id, std::string file, CBuild::source_metadata_file *metadata)
Load metadata for source file.
int write_file_metadata(std::string target_id, std::string src_file, CBuild::source_metadata_file *metadata)
Write a metadata for a file to a file.
int read_file_metadata(std::string target_id, std::string src_file, CBuild::source_metadata_file *metadata)
Load metadata for source file.
int read_target_metadata(std::string target_id, CBuild::target_metadata_file *metadata)
Load metadata for a full target.
std::string get_target_metadata_path(std::string target_id)
Get the path to a target metadata file.
int read_target_metadata_direct(std::string path, CBuild::target_metadata_file *metadata)
Load metadata for a full target using path to metdata file.
std::string get_file_metadata_path(std::string target_id, std::string file)
Get the path to a file metadata file.
int write_target_metadata(std::string target_id, CBuild::target_metadata_file *metadata)
Write a metadata for a full target.
int read_file_hash(std::string target_id, std::string file, uint64_t *hash)
Get a file hash (internally uses read_file_metadata, so no performance benefits, but easiier to use i...