MayaFlux 1.0.0
Digital-First Multimedia Processing Framework
Loading...
Searching...
No Matches
CreatorBuild.hpp
Go to the documentation of this file.
1#pragma once
2
4
5/**
6 * @struct CreatorBuildOptions
7 * @brief What `mayaflux_signatures --build` needs to write the Creator files.
8 *
9 * root, registry and output mean what they do for the default mode. The
10 * compile command comes from compile_args when given, else from the database in
11 * build_path through translation_unit.
12 */
14 std::filesystem::path root;
15 std::filesystem::path registry;
16 std::filesystem::path output;
17 std::filesystem::path build_path;
18 std::filesystem::path translation_unit;
19 std::string resource_dir;
20 std::vector<std::string> extra_args;
21 std::vector<std::string> compile_args;
22 std::filesystem::path depfile;
23 std::string depfile_target;
24};
25
26/**
27 * @brief Writes the four Creator files, for a build step.
28 *
29 * Writes the same text the default mode writes, marks each file as modified, and
30 * writes a depfile of the registry and the headers the scan read when
31 * options.depfile is set.
32 *
33 * @return 0 on success, 1 with the reason on stderr otherwise.
34 */
35[[nodiscard]] int run_creator_build(const CreatorBuildOptions& options);
36
37}
int run_creator_build(const CreatorBuildOptions &options)
Writes the four Creator files, for a build step.
What mayaflux_signatures --build needs to write the Creator files.