Skip to content

Commit

Permalink
fix config
Browse files Browse the repository at this point in the history
  • Loading branch information
OpportunityLiu committed Jul 18, 2019
1 parent c0f6cb4 commit 286910c
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion xmake/plugins/project/vstudio/vs.lua
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
import("impl.vs200x")
import("impl.vs201x")
import("impl.vsinfo")
import("core.project.config")

-- make factory
function make(version)
Expand All @@ -34,7 +35,7 @@ function make(version)
-- get vs version info
local info = vsinfo(version)

if vsver < 2010 then
if version < 2010 then
return function(outputdir)
vs200x.make(outputdir, info)
end
Expand Down
2 changes: 1 addition & 1 deletion xmake/plugins/project/vsxmake/getinfo.lua
Original file line number Diff line number Diff line change
Expand Up @@ -242,7 +242,7 @@ function main(outputdir, vsinfo)
vsinfo.projectdir = project.directory()
vsinfo.sln_projectfile = path.relative(project.file(), vsinfo.solution_dir)
local projectfile = path.filename(project.file())
vsinfo.slnfile = project.name() or path.filename(project.directory())
vsinfo.slnfile = path.filename(project.directory())
-- write only if not default
if projectfile ~= "xmake.lua" then
vsinfo.projectfile = projectfile
Expand Down
1 change: 1 addition & 0 deletions xmake/plugins/project/vsxmake/vsxmake.lua
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ import("core.base.hashset")
import("vstudio.impl.vsinfo", { rootdir = path.directory(os.scriptdir()) })
import("render")
import("getinfo")
import("core.project.config")

local template_root = path.join(os.scriptdir(), "vsproj", "templates")
local template_sln = path.join(template_root, "sln", "vsxmake.sln")
Expand Down

0 comments on commit 286910c

Please sign in to comment.