summaryrefslogtreecommitdiffstats
path: root/Source/cmWin32LibrariesRule.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'Source/cmWin32LibrariesRule.cxx')
-rw-r--r--Source/cmWin32LibrariesRule.cxx25
1 files changed, 25 insertions, 0 deletions
diff --git a/Source/cmWin32LibrariesRule.cxx b/Source/cmWin32LibrariesRule.cxx
new file mode 100644
index 0000000..bb32110
--- /dev/null
+++ b/Source/cmWin32LibrariesRule.cxx
@@ -0,0 +1,25 @@
+#include "cmWin32LibrariesRule.h"
+cmWin32LibrariesRule::cmWin32LibrariesRule()
+{
+#ifndef _WIN32
+ this->SetEnableOff();
+#endif
+}
+
+
+// cmWin32LibrariesRule
+bool cmWin32LibrariesRule::Invoke(std::vector<std::string>& args)
+{
+ if(args.size() < 1 )
+ {
+ this->SetError("Called with incorrect number of arguments");
+ return false;
+ }
+ for(std::vector<std::string>::iterator i = args.begin();
+ i != args.end(); ++i)
+ {
+ m_Makefile->AddLinkLibrary((*i).c_str());
+ }
+ return true;
+}
+