cmWin32DefinesRule.cxx 494 B

12345678910111213141516171819202122232425262728
  1. #include "cmWin32DefinesRule.h"
  2. cmWin32DefinesRule::cmWin32DefinesRule()
  3. {
  4. #ifndef _WIN32
  5. this->EnabledOff();
  6. #endif
  7. }
  8. // cmWin32DefinesRule
  9. bool cmWin32DefinesRule::Invoke(std::vector<std::string>& args)
  10. {
  11. if(args.size() < 1 )
  12. {
  13. this->SetError("called with incorrect number of arguments");
  14. return false;
  15. }
  16. for(std::vector<std::string>::iterator i = args.begin();
  17. i != args.end(); ++i)
  18. {
  19. m_Makefile->AddDefineFlag((*i).c_str());
  20. }
  21. return true;
  22. }