summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorruki <[email protected]>2016-08-09 14:48:38 +0800
committerruki <[email protected]>2016-08-09 14:48:38 +0800
commit1ccefd32e302e9266446b15facf711d0ff46659f (patch)
tree67ff8ed7123216138085cb800230e7327d3f4f04
parent125beebc5d48c5c1a884472cfd2b9cb449761f3c (diff)
add vs2002 and vs2003 option
-rwxr-xr-xxmake/plugins/project/vstudio/vs2002.lua38
-rwxr-xr-xxmake/plugins/project/vstudio/vs2003.lua38
-rwxr-xr-xxmake/plugins/project/xmake.lua2
3 files changed, 78 insertions, 0 deletions
diff --git a/xmake/plugins/project/vstudio/vs2002.lua b/xmake/plugins/project/vstudio/vs2002.lua
new file mode 100755
index 000000000..7cc11c6f2
--- /dev/null
+++ b/xmake/plugins/project/vstudio/vs2002.lua
@@ -0,0 +1,38 @@
+--!The Make-like Build Utility based on Lua
+--
+-- XMake is free software; you can redistribute it and/or modify
+-- it under the terms of the GNU Lesser General Public License as published by
+-- the Free Software Foundation; either version 2.1 of the License, or
+-- (at your option) any later version.
+--
+-- XMake is distributed in the hope that it will be useful,
+-- but WITHOUT ANY WARRANTY; without even the implied warranty of
+-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+-- GNU Lesser General Public License for more details.
+--
+-- You should have received a copy of the GNU Lesser General Public License
+-- along with XMake;
+-- If not, see <a href="http://www.gnu.org/licenses/"> http://www.gnu.org/licenses/</a>
+--
+-- Copyright (C) 2015 - 2016, ruki All rights reserved.
+--
+-- @author ruki
+-- @file vs2003.lua
+--
+
+-- imports
+import("impl.vs200x")
+
+-- make
+function make(outputdir)
+
+ -- init vstudio info
+ local vsinfo =
+ {
+ vstudio_version = "2002"
+ , solution_version = "7"
+ }
+
+ -- make project
+ vs200x.make(outputdir, vsinfo)
+end
diff --git a/xmake/plugins/project/vstudio/vs2003.lua b/xmake/plugins/project/vstudio/vs2003.lua
new file mode 100755
index 000000000..9b71f4121
--- /dev/null
+++ b/xmake/plugins/project/vstudio/vs2003.lua
@@ -0,0 +1,38 @@
+--!The Make-like Build Utility based on Lua
+--
+-- XMake is free software; you can redistribute it and/or modify
+-- it under the terms of the GNU Lesser General Public License as published by
+-- the Free Software Foundation; either version 2.1 of the License, or
+-- (at your option) any later version.
+--
+-- XMake is distributed in the hope that it will be useful,
+-- but WITHOUT ANY WARRANTY; without even the implied warranty of
+-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+-- GNU Lesser General Public License for more details.
+--
+-- You should have received a copy of the GNU Lesser General Public License
+-- along with XMake;
+-- If not, see <a href="http://www.gnu.org/licenses/"> http://www.gnu.org/licenses/</a>
+--
+-- Copyright (C) 2015 - 2016, ruki All rights reserved.
+--
+-- @author ruki
+-- @file vs2003.lua
+--
+
+-- imports
+import("impl.vs200x")
+
+-- make
+function make(outputdir)
+
+ -- init vstudio info
+ local vsinfo =
+ {
+ vstudio_version = "2003"
+ , solution_version = "8"
+ }
+
+ -- make project
+ vs200x.make(outputdir, vsinfo)
+end
diff --git a/xmake/plugins/project/xmake.lua b/xmake/plugins/project/xmake.lua
index b215a4b28..b978ce046 100755
--- a/xmake/plugins/project/xmake.lua
+++ b/xmake/plugins/project/xmake.lua
@@ -42,6 +42,8 @@ task("project")
{
{'k', "kind", "kv", "makefile", "Set the project kind."
, " - makefile"
+ , " - vs2002"
+ , " - vs2003"
, " - vs2005"
, " - vs2008" }
, {nil, "outputdir", "v", ".", "Set the output directory." }