Skip to content

Commit c85077c

Browse files
committed
Support for zstd configuration option in Windows build
1 parent e39141c commit c85077c

File tree

2 files changed

+15
-2
lines changed

2 files changed

+15
-2
lines changed

src/tools/msvc/Solution.pm

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -263,6 +263,10 @@ sub GenerateFiles
263263
print O "#define HAVE_RL_FILENAME_COMPLETION_FUNCTION\n";
264264
print O "#define HAVE_RL_COMPLETION_MATCHES\n";
265265
}
266+
if ($self->{options}->{zstd})
267+
{
268+
print O "#define CFS_COMPRESSION 6\n";
269+
}
266270
print O "#define VAL_CONFIGURE \""
267271
. $self->GetFakeConfigure() . "\"\n";
268272
print O "#endif /* IGNORE_CONFIGURED_SETTINGS */\n";
@@ -604,6 +608,13 @@ sub AddProject
604608
$proj->AddLibrary($self->{options}->{libedit} . "\\" .
605609
($self->{platform} eq 'x64'? 'lib64': 'lib32').'\edit.lib');
606610
}
611+
if ($self->{options}->{zstd})
612+
{
613+
$proj->AddIncludeDir($self->{options}->{zstd});
614+
$proj->AddLibrary($self->{options}->{zstd}. "\\".
615+
($self->{platform} eq 'x64'? "zstdlib_x64.lib" : "zstdlib_x86.lib")
616+
);
617+
}
607618
return $proj;
608619
}
609620

@@ -715,7 +726,8 @@ sub GetFakeConfigure
715726
$cfg .= ' --with-tcl' if ($self->{options}->{tcl});
716727
$cfg .= ' --with-perl' if ($self->{options}->{perl});
717728
$cfg .= ' --with-python' if ($self->{options}->{python});
718-
$cfg .=' --with-icu' if ($self->{options}->{icu});
729+
$cfg .= ' --with-icu' if ($self->{options}->{icu});
730+
$cfg .= ' --with-zstd' if ($self->{options}->{zstd});
719731
return $cfg;
720732
}
721733

src/tools/msvc/config_default.pl

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,8 @@
2727
xslt => undef, # --with-libxslt=<path>
2828
iconv => undef, # (not in configure, path to iconv)
2929
zlib => undef, # --with-zlib=<path>
30-
icu => undef # --with-icu=<path>
30+
icu => undef, # --with-icu=<path>
31+
zstd => undef # --with-zstd=<path>
3132
};
3233

3334
1;

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy