From 3639036268e8dace3f62181830510034b858d453 Mon Sep 17 00:00:00 2001 From: Jérôme Leclercq Date: Tue, 30 Mar 2021 16:55:18 +0200 Subject: Make vsxmake.autoupdate autoupdate with header files as well --- xmake/rules/plugin/vsxmake/xmake.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xmake/rules/plugin/vsxmake/xmake.lua b/xmake/rules/plugin/vsxmake/xmake.lua index c1e9506ce..5da644be4 100644 --- a/xmake/rules/plugin/vsxmake/xmake.lua +++ b/xmake/rules/plugin/vsxmake/xmake.lua @@ -44,7 +44,7 @@ rule("plugin.vsxmake.autoupdate") if os.getenv("XMAKE_IN_VSTUDIO") then local sourcefiles = {} for _, target in pairs(project.targets()) do - table.join2(sourcefiles, (target:sourcefiles())) + table.join2(sourcefiles, target:headerfiles(), target:sourcefiles()) end table.sort(sourcefiles) depend.on_changed(function () -- cgit v1.3.1 From 601752bff01bf632b179e35c367fc386de755907 Mon Sep 17 00:00:00 2001 From: Jérôme Leclercq Date: Tue, 30 Mar 2021 17:39:39 +0200 Subject: Update xmake.lua --- xmake/rules/plugin/vsxmake/xmake.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xmake/rules/plugin/vsxmake/xmake.lua b/xmake/rules/plugin/vsxmake/xmake.lua index 5da644be4..1821e5dfb 100644 --- a/xmake/rules/plugin/vsxmake/xmake.lua +++ b/xmake/rules/plugin/vsxmake/xmake.lua @@ -44,7 +44,7 @@ rule("plugin.vsxmake.autoupdate") if os.getenv("XMAKE_IN_VSTUDIO") then local sourcefiles = {} for _, target in pairs(project.targets()) do - table.join2(sourcefiles, target:headerfiles(), target:sourcefiles()) + table.join2(sourcefiles, target:sourcefiles(), target:headerfiles()) end table.sort(sourcefiles) depend.on_changed(function () -- cgit v1.3.1