Build tool
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

build.h 525B

123456789101112131415161718192021222324
  1. #pragma once
  2. #include <string>
  3. #include "SourceFile.h"
  4. #include "BBParser.h"
  5. #include "toolchain.h"
  6. namespace build {
  7. struct BuildConf {
  8. std::string outDir;
  9. int numJobs;
  10. BBParser::Variables variables;
  11. std::string targetName;
  12. std::vector<SourceFile> sources;
  13. };
  14. BuildConf readBuildConf(std::string outDir, int numJobs, const std::vector<std::string> &args);
  15. bool compile(const BuildConf &conf);
  16. void link(const BuildConf &conf, toolchain::TargetType targetType);
  17. void writeCompileCommands(const BuildConf &conf);
  18. }