summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOpportunityLiu <[email protected]>2019-08-14 22:30:31 +0800
committerOpportunityLiu <[email protected]>2019-08-14 22:30:31 +0800
commit786c94fb869b6bbcf310e93f3068b795b177fc0b (patch)
treedb8fe102bb8e846e7dd266086a7a5792d4168c43
parent636cc3ff586ca54a8dfdf222f502cd2f6db9ece1 (diff)
Add `XmakeSourceDirs`, add `s` for some props
-rw-r--r--xmake/plugins/project/vsxmake/getinfo.lua4
-rw-r--r--xmake/plugins/project/vsxmake/vsproj/Xmake.props6
-rw-r--r--xmake/plugins/project/vsxmake/vsproj/Xmake.targets6
-rw-r--r--xmake/plugins/project/vsxmake/vsproj/templates/vcxproj/XmakeConfig(mode,arch)3
-rw-r--r--xmake/plugins/project/vsxmake/vsproj/templates/vcxproj/XmakePath(mode,arch)3
5 files changed, 12 insertions, 10 deletions
diff --git a/xmake/plugins/project/vsxmake/getinfo.lua b/xmake/plugins/project/vsxmake/getinfo.lua
index 0c033b145..a5a621a5b 100644
--- a/xmake/plugins/project/vsxmake/getinfo.lua
+++ b/xmake/plugins/project/vsxmake/getinfo.lua
@@ -104,7 +104,7 @@ function _get_values(target, name)
for _, dep in irpairs(target:orderdeps()) do
local depinherit = target:extraconf("deps", dep:name(), "inherit")
if depinherit == nil or depinherit then
- table.join2(values, dep:get(name, {interface = true}))
+ table.join2(values, dep:get(name, { interface = true }))
end
end
@@ -159,7 +159,7 @@ function _make_targetinfo(mode, arch, target)
targetinfo.configfiledir = _make_dirs(target:get("configdir"))
targetinfo.includedirs = _make_dirs(_get_values(target, "includedirs"))
targetinfo.linkdirs = _make_dirs(_get_values(target, "linkdirs"))
- targetinfo.vcsourcepaths = _make_dirs(target:values("project.vsxmake.vcsourcepaths"))
+ targetinfo.sourcedirs = _make_dirs(_get_values(target, "project.vsxmake.sourcedirs"))
-- save defines
targetinfo.defines = _make_arrs(_get_values(target, "defines"))
diff --git a/xmake/plugins/project/vsxmake/vsproj/Xmake.props b/xmake/plugins/project/vsxmake/vsproj/Xmake.props
index 07c25eb22..3b4ae268e 100644
--- a/xmake/plugins/project/vsxmake/vsproj/Xmake.props
+++ b/xmake/plugins/project/vsxmake/vsproj/Xmake.props
@@ -120,11 +120,11 @@
</PropertyGroup>
<PropertyGroup Label="Path">
- <IncludePath>$(XmakeIncludeDir);$(IncludePath)</IncludePath>
- <LibraryPath>$(XmakeLinkDir);$(LibraryPath)</LibraryPath>
+ <IncludePath>$(XmakeIncludeDirs);$(IncludePath)</IncludePath>
+ <LibraryPath>$(XmakeLinkDirs);$(LibraryPath)</LibraryPath>
<OutDir>$(XmakeTargetDir)\</OutDir>
<IntDir>$(XmakeBuilDir)\.vs\$(TargetName)\$(XmakeArch)\$(XmakeMode)\</IntDir>
- <SourcePath>$(VC_SourcePath);$(XmakeVCSourcePaths);</SourcePath>
+ <SourcePath>$(XmakeSourceDirs);$(SourcePath)</SourcePath>
</PropertyGroup>
<PropertyGroup Label="Debugger">
diff --git a/xmake/plugins/project/vsxmake/vsproj/Xmake.targets b/xmake/plugins/project/vsxmake/vsproj/Xmake.targets
index 6c61a33d4..0a74e5f45 100644
--- a/xmake/plugins/project/vsxmake/vsproj/Xmake.targets
+++ b/xmake/plugins/project/vsxmake/vsproj/Xmake.targets
@@ -127,8 +127,9 @@ MSBuild Properties:
XmakeMfcKind: $(XmakeMfcKind)
XmakeDefines: $(XmakeDefines)
XmakeLanguages: $(XmakeLanguages)
- XmakeIncludeDir: $(XmakeIncludeDir)
- XmakeLinkDir: $(XmakeLinkDir)
+ XmakeIncludeDirs: $(XmakeIncludeDirs)
+ XmakeLinkDirs: $(XmakeLinkDirs)
+ XmakeSourceDirs: $(XmakeSourceDirs)
Xmake Path:
XmakeProgramDir: $(XmakeProgramDir)
XmakeProjectDir: $(XmakeProjectDir)
@@ -171,6 +172,7 @@ MSBuild Properties:
MSBuildProjectName: $(MSBuildProjectName)
OutDir: $(OutDir)
IntDir: $(IntDir)
+ SourcePath: $(SourcePath)
TargetName: $(TargetName)
TargetExt: $(TargetExt)
PlatformToolset: $(PlatformToolset)
diff --git a/xmake/plugins/project/vsxmake/vsproj/templates/vcxproj/XmakeConfig(mode,arch) b/xmake/plugins/project/vsxmake/vsproj/templates/vcxproj/XmakeConfig(mode,arch)
index 317dc32e4..320a661fb 100644
--- a/xmake/plugins/project/vsxmake/vsproj/templates/vcxproj/XmakeConfig(mode,arch)
+++ b/xmake/plugins/project/vsxmake/vsproj/templates/vcxproj/XmakeConfig(mode,arch)
@@ -11,4 +11,7 @@
<XmakeMfcKind>#mfckind#</XmakeMfcKind>
<XmakeRunEnvs>#runenvs#</XmakeRunEnvs>
<XmakeConfigFlags>#configflags#</XmakeConfigFlags>
+ <XmakeIncludeDirs>#includedirs#</XmakeIncludeDirs>
+ <XmakeLinkDirs>#linkdirs#</XmakeLinkDirs>
+ <XmakeSourceDirs>#sourcedirs#</XmakeSourceDirs>
</PropertyGroup>
diff --git a/xmake/plugins/project/vsxmake/vsproj/templates/vcxproj/XmakePath(mode,arch) b/xmake/plugins/project/vsxmake/vsproj/templates/vcxproj/XmakePath(mode,arch)
index bc3c028b9..9afa8460f 100644
--- a/xmake/plugins/project/vsxmake/vsproj/templates/vcxproj/XmakePath(mode,arch)
+++ b/xmake/plugins/project/vsxmake/vsproj/templates/vcxproj/XmakePath(mode,arch)
@@ -3,8 +3,5 @@
<XmakeConfigDir>#configdir#</XmakeConfigDir>
<XmakeConfigFileDir>#configfiledir#</XmakeConfigFileDir>
<XmakeTargetDir>#targetdir#</XmakeTargetDir>
- <XmakeIncludeDir>#includedirs#</XmakeIncludeDir>
- <XmakeLinkDir>#linkdirs#</XmakeLinkDir>
<XmakeRunDir>#rundir#</XmakeRunDir>
- <XmakeVCSourcePaths>#vcsourcepaths#</XmakeVCSourcePaths>
</PropertyGroup>