feat add spdlog
Some checks failed
sm-rpc / build (Debug, aarch64-linux-gnu) (push) Failing after 29s
sm-rpc / build (Debug, arm-linux-gnueabihf) (push) Failing after 16s
sm-rpc / build (Debug, host.gcc) (push) Failing after 11s
sm-rpc / build (Debug, mipsel-linux-gnu) (push) Failing after 12s
sm-rpc / build (Release, aarch64-linux-gnu) (push) Failing after 11s
sm-rpc / build (Release, arm-linux-gnueabihf) (push) Failing after 11s
sm-rpc / build (Release, host.gcc) (push) Failing after 12s
sm-rpc / build (Release, mipsel-linux-gnu) (push) Failing after 16s
Some checks failed
sm-rpc / build (Debug, aarch64-linux-gnu) (push) Failing after 29s
sm-rpc / build (Debug, arm-linux-gnueabihf) (push) Failing after 16s
sm-rpc / build (Debug, host.gcc) (push) Failing after 11s
sm-rpc / build (Debug, mipsel-linux-gnu) (push) Failing after 12s
sm-rpc / build (Release, aarch64-linux-gnu) (push) Failing after 11s
sm-rpc / build (Release, arm-linux-gnueabihf) (push) Failing after 11s
sm-rpc / build (Release, host.gcc) (push) Failing after 12s
sm-rpc / build (Release, mipsel-linux-gnu) (push) Failing after 16s
This commit is contained in:
71
third_party/prometheus/3rdparty/civetweb/VisualStudio/buildRelease.pl
vendored
Normal file
71
third_party/prometheus/3rdparty/civetweb/VisualStudio/buildRelease.pl
vendored
Normal file
@@ -0,0 +1,71 @@
|
||||
#!/usr/bin/perl
|
||||
#
|
||||
# Copyright (c) 2013 No Face Press, LLC
|
||||
# License http://opensource.org/licenses/mit-license.php MIT License
|
||||
#
|
||||
|
||||
# This script builds and packages a Windows release.
|
||||
# It requires ActiveState Perl to use and is intended
|
||||
# to be run from the its directory under the
|
||||
# VS Developer Command Prompt.
|
||||
|
||||
# Create a Zip file
|
||||
use Archive::Zip qw( :ERROR_CODES :CONSTANTS );
|
||||
my $zip = Archive::Zip->new();
|
||||
|
||||
my $src = "..";
|
||||
|
||||
sub getCivetwebVersion {
|
||||
print "Fetching CivetWeb version...\n";
|
||||
open HEADER, "${src}/include/civetweb.h";
|
||||
while (<HEADER>) {
|
||||
if (m/define\s+CIVETWEB_VERSION\s+"(.+)"/) {
|
||||
close HEADER;
|
||||
return $1;
|
||||
}
|
||||
}
|
||||
close HEADER;
|
||||
return "UNKNOWN_VERSION";
|
||||
}
|
||||
|
||||
my $CIVETWEB_VERSION = getCivetwebVersion();
|
||||
my $basename = "civetweb-$CIVETWEB_VERSION";
|
||||
my $dir = "${basename}";
|
||||
|
||||
sub build32() {
|
||||
print "\nBuilding Win32 Release version...\n";
|
||||
system("msbuild /p:Configuration=Release /p:Platform=Win32 civetweb.sln");
|
||||
}
|
||||
|
||||
sub build64() {
|
||||
print "\nBuilding x64 Release version...\n";
|
||||
system("msbuild /p:Configuration=Release /p:Platform=x64 civetweb.sln");
|
||||
}
|
||||
|
||||
sub writeArchive() {
|
||||
my $archive = "${basename}-win.zip";
|
||||
print "Creating archive $archive ...\n";
|
||||
|
||||
$zip->addDirectory("${dir}/");
|
||||
|
||||
$zip->addFile( "${src}/LICENSE.md", "${dir}/LICENSE.md" );
|
||||
$zip->addFile( "${src}/README.md", "${dir}/README.md" );
|
||||
$zip->addFile( "${src}/resources/systray.ico", "${dir}/systray.ico" );
|
||||
$zip->addFile( "${src}/resources/civetweb_64x64.png",
|
||||
"${dir}/civetweb_64x64.png" );
|
||||
$zip->addFile( "${src}/resources/itworks.html", "${dir}/index.html" );
|
||||
$zip->addFile( "${src}/VS2012/Release/Win32/civetweb_lua.exe",
|
||||
"${dir}/civetweb32.exe" );
|
||||
$zip->addFile( "${src}/VS2012/Release/x64/civetweb_lua.exe",
|
||||
"${dir}/civetweb64.exe" );
|
||||
|
||||
unless ( $zip->writeToFileNamed($archive) == AZ_OK ) {
|
||||
die 'write error';
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
build32();
|
||||
build64();
|
||||
writeArchive();
|
||||
exit 0;
|
Reference in New Issue
Block a user