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.

LinkStep.h 610B

12345678910111213141516171819202122232425
  1. #pragma once
  2. #include <string>
  3. #include "DepNode.h"
  4. #include "toolchain.h"
  5. class LinkStep: public DepNode {
  6. public:
  7. LinkStep(std::string path, toolchain::TargetType type):
  8. path_(path), type_(type) {}
  9. private:
  10. std::string path_;
  11. toolchain::TargetType type_;
  12. bool checkHasChanged(const std::string &outDir) override;
  13. void doBuild(const std::string &outDir) override;
  14. bool hasLinkCommand_ = false;
  15. std::vector<std::string> linkCommand_;
  16. std::vector<std::string> &linkCommand(const std::string &outDir);
  17. std::string confPath(const std::string &outDir) { return outDir + '/' + path_ + ".bx"; }
  18. };