diff options
| author | HapiFive <[email protected]> | 2024-05-15 09:10:38 +0800 |
|---|---|---|
| committer | HapiFive <[email protected]> | 2024-05-15 09:10:38 +0800 |
| commit | ad297826da3559b6a034ce339a10807119c2462d (patch) | |
| tree | bde8b9e9f5e0a5f81fe24379dc22737632d2d6bd | |
| parent | 1f76e280c4bb8a05746cd86fc38b2a4bf25478c6 (diff) | |
add ts for vsxmake
5 files changed, 9 insertions, 0 deletions
diff --git a/xmake/plugins/project/vsxmake/vsxmake.lua b/xmake/plugins/project/vsxmake/vsxmake.lua index bae206cee..2b3ded5d6 100644 --- a/xmake/plugins/project/vsxmake/vsxmake.lua +++ b/xmake/plugins/project/vsxmake/vsxmake.lua @@ -142,6 +142,9 @@ function _buildparams(info, target, default) elseif args.fileqrc then -- for qt/.qrc local files = info._targets[target].sourcefiles table.insert(r, _filter_files(files, {".qrc"})) + elseif args.filets then -- for qt/.ts + local files = info._targets[target].sourcefiles + table.insert(r, _filter_files(files, {".ts"})) elseif args.incc then local files = table.join(info._targets[target].headerfiles or {}, info._targets[target].extrafiles) table.insert(r, _filter_files(files, nil, {".natvis"})) diff --git a/xmake/scripts/vsxmake/vsproj/templates/vcxproj.filters/#target#.vcxproj.filters b/xmake/scripts/vsxmake/vsproj/templates/vcxproj.filters/#target#.vcxproj.filters index 217e32ed5..998c8af83 100644 --- a/xmake/scripts/vsxmake/vsproj/templates/vcxproj.filters/#target#.vcxproj.filters +++ b/xmake/scripts/vsxmake/vsproj/templates/vcxproj.filters/#target#.vcxproj.filters @@ -48,6 +48,7 @@ #Import(File.rc)# #Import(File.ui)# #Import(File.qrc)# +#Import(File.ts)# </ItemGroup> <Import Condition="Exists('$(MSBuildThisFileDirectory)\Xmake.Custom.files.filters')" Project="$(MSBuildThisFileDirectory)\Xmake.Custom.files.filters" /> diff --git a/xmake/scripts/vsxmake/vsproj/templates/vcxproj.filters/File.ts(filets) b/xmake/scripts/vsxmake/vsproj/templates/vcxproj.filters/File.ts(filets) new file mode 100644 index 000000000..9aee25191 --- /dev/null +++ b/xmake/scripts/vsxmake/vsproj/templates/vcxproj.filters/File.ts(filets) @@ -0,0 +1,3 @@ + <None Include="#path#"> + <Filter>#dir#</Filter> + </None> diff --git a/xmake/scripts/vsxmake/vsproj/templates/vcxproj/#target#.vcxproj b/xmake/scripts/vsxmake/vsproj/templates/vcxproj/#target#.vcxproj index 40b594b18..1918f4997 100644 --- a/xmake/scripts/vsxmake/vsproj/templates/vcxproj/#target#.vcxproj +++ b/xmake/scripts/vsxmake/vsproj/templates/vcxproj/#target#.vcxproj @@ -48,6 +48,7 @@ #Import(File.rc)# #Import(File.ui)# #Import(File.qrc)# +#Import(File.ts)# </ItemGroup> <!-- <ItemGroup> #Import(ProjectRef)# diff --git a/xmake/scripts/vsxmake/vsproj/templates/vcxproj/File.ts(filets) b/xmake/scripts/vsxmake/vsproj/templates/vcxproj/File.ts(filets) new file mode 100644 index 000000000..6429fe3e9 --- /dev/null +++ b/xmake/scripts/vsxmake/vsproj/templates/vcxproj/File.ts(filets) @@ -0,0 +1 @@ + <None Include="#path#" /> |
