mirror of
https://github.com/openssl/openssl.git
synced 2024-12-15 06:01:37 +08:00
2000281dad
Reviewed-by: Nicola Tuveri <nic.tuv@gmail.com> Reviewed-by: Tim Hudson <tjh@openssl.org> Reviewed-by: Paul Dale <ppzgs1@gmail.com> Reviewed-by: Tom Cosgrove <tom.cosgrove@arm.com> (Merged from https://github.com/openssl/openssl/pull/24047)
38 lines
767 B
Perl
Executable File
38 lines
767 B
Perl
Executable File
#!/usr/bin/env perl
|
|
#
|
|
|
|
use File::Copy;
|
|
use File::Path;
|
|
use Fcntl ':flock';
|
|
use strict;
|
|
use warnings;
|
|
|
|
#open STDOUT, '>&STDERR';
|
|
|
|
chdir "demos/http3";
|
|
open(my $fh, '>>', './build.info') or die "Could not open build.info - $!";
|
|
flock($fh, LOCK_EX) or die "Could not lock build.info - $!";
|
|
|
|
if (-d "./nghttp3") {
|
|
rmtree("./nghttp3") or die "Cannot remove nghttp3: $!";
|
|
}
|
|
system("git clone https://github.com/ngtcp2/nghttp3.git");
|
|
|
|
chdir "nghttp3";
|
|
mkdir "build";
|
|
system("git submodule init ./lib/sfparse ./tests/munit");
|
|
system("git submodule update");
|
|
system("cmake -DENABLE_LIB_ONLY=1 -S . -B build");
|
|
system("cmake --build build");
|
|
|
|
my $libs="./build/lib/libnghttp*";
|
|
|
|
for my $file (glob $libs) {
|
|
copy($file, "..");
|
|
}
|
|
|
|
chdir "../../..";
|
|
close($fh);
|
|
|
|
exit(0);
|