summaryrefslogtreecommitdiff
path: root/xmake/plugins/project/vstudio/impl/vs201x.lua
diff options
context:
space:
mode:
authorruki <[email protected]>2016-08-25 09:08:13 +0800
committerruki <[email protected]>2016-08-25 09:08:13 +0800
commit226e6a0594469ca7eff931c0c9da703637bdb762 (patch)
tree9b55c944d0d55a74bae708ea1af49d5eee5b8821 /xmake/plugins/project/vstudio/impl/vs201x.lua
parent503d201bb94ba0de2e9e61ab66e52c1cee648064 (diff)
generate vs201x empty project
Diffstat (limited to 'xmake/plugins/project/vstudio/impl/vs201x.lua')
-rwxr-xr-xxmake/plugins/project/vstudio/impl/vs201x.lua47
1 files changed, 47 insertions, 0 deletions
diff --git a/xmake/plugins/project/vstudio/impl/vs201x.lua b/xmake/plugins/project/vstudio/impl/vs201x.lua
new file mode 100755
index 000000000..618413056
--- /dev/null
+++ b/xmake/plugins/project/vstudio/impl/vs201x.lua
@@ -0,0 +1,47 @@
+--!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 vs201x.lua
+--
+
+-- imports
+import("core.project.project")
+import("vs200x_solution")
+import("vs201x_vcxproj")
+
+-- make vstudio project
+function make(outputdir, vsinfo)
+
+ -- enter project directory
+ local olddir = os.cd(project.directory())
+
+ -- init solution directory
+ vsinfo.solution_dir = path.join(outputdir, "vs" .. vsinfo.vstudio_version)
+
+ -- make solution
+ vs200x_solution.make(vsinfo)
+
+ -- make vsprojs
+ for _, target in pairs(project.targets()) do
+ vs201x_vcxproj.make(vsinfo, target)
+ end
+
+ -- leave project directory
+ os.cd(olddir)
+end