Skip to content

Commit cef298e

Browse files
committed
vcxproj: handle libreftable_test, too
Since ef8a6c6 (reftable: utility functions, 2021-10-07) we not only have a libreftable, but also a libreftable_test. Signed-off-by: Johannes Schindelin <[email protected]>
1 parent 109b543 commit cef298e

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

contrib/buildsystems/Generators/Vcxproj.pm

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ sub createProject {
7777
my $libs_release = "\n ";
7878
my $libs_debug = "\n ";
7979
if (!$static_library && $name ne 'headless-git') {
80-
$libs_release = join(";", sort(grep /^(?!libgit\.lib|xdiff\/lib\.lib|vcs-svn\/lib\.lib|reftable\/libreftable\.lib)/, @{$$build_structure{"$prefix${name}_LIBS"}}));
80+
$libs_release = join(";", sort(grep /^(?!libgit\.lib|xdiff\/lib\.lib|vcs-svn\/lib\.lib|reftable\/libreftable(_test)?\.lib)/, @{$$build_structure{"$prefix${name}_LIBS"}}));
8181
$libs_debug = $libs_release;
8282
$libs_debug =~ s/zlib\.lib/zlibd\.lib/g;
8383
$libs_debug =~ s/libexpat\.lib/libexpatd\.lib/g;
@@ -258,6 +258,7 @@ EOM
258258
if ((!$static_library || $target =~ 'vcs-svn' || $target =~ 'xdiff') && !($name =~ /headless-git/)) {
259259
my $uuid_libgit = $$build_structure{"LIBS_libgit_GUID"};
260260
my $uuid_libreftable = $$build_structure{"LIBS_reftable/libreftable_GUID"};
261+
my $uuid_libreftable_test = $$build_structure{"LIBS_reftable/libreftable_test_GUID"};
261262
my $uuid_xdiff_lib = $$build_structure{"LIBS_xdiff/lib_GUID"};
262263

263264
print F << "EOM";
@@ -269,10 +270,14 @@ EOM
269270
EOM
270271
if (!($name =~ /xdiff|libreftable/)) {
271272
print F << "EOM";
272-
<ProjectReference Include="$cdup\\reftable\\libreftable\\libreftable.vcxproj">
273+
<ProjectReference Include="$cdup\\reftable\\libreftable.proj\\libreftable.vcxproj">
273274
<Project>$uuid_libreftable</Project>
274275
<ReferenceOutputAssembly>false</ReferenceOutputAssembly>
275276
</ProjectReference>
277+
<ProjectReference Include="$cdup\\reftable\\libreftable_test.proj\\libreftable_test.vcxproj">
278+
<Project>$uuid_libreftable_test</Project>
279+
<ReferenceOutputAssembly>false</ReferenceOutputAssembly>
280+
</ProjectReference>
276281
EOM
277282
}
278283
if (!($name =~ 'xdiff')) {

0 commit comments

Comments
 (0)