Codebase list openssl / 8390062
Fix resource files Add it to apps as well as libraries. Fix the copyright year generation. Thanks to user RTT for pointing this out. Reviewed-by: Richard Levitte <levitte@openssl.org> (Merged from https://github.com/openssl/openssl/pull/5704) Rich Salz 6 years ago
4 changed file(s) with 26 addition(s) and 11 deletion(s). Raw diff Collapse all Expand all
20142014 $o = cleanfile($buildd, $o, $blddir);
20152015 $unified_info{sources}->{$ddest}->{$o} = 1;
20162016 $unified_info{sources}->{$o}->{$s} = 1;
2017 } elsif ($s =~ /\.rc$/) {
2018 # We also recognise resource files
2019 my $o = $_;
2020 $o =~ s/\.rc$/.res/; # Resource configuration
2021 my $o = cleanfile($buildd, $o, $blddir);
2022 $unified_info{sources}->{$ddest}->{$o} = 1;
2023 $unified_info{sources}->{$o}->{$s} = 1;
20172024 } else {
20182025 $unified_info{sources}->{$ddest}->{$s} = 1;
20192026 }
2222 INCLUDE[openssl]=.. ../include
2323 DEPEND[openssl]=libapps.a ../libssl
2424
25 IF[{- $config{target} =~ /^(?:Cygwin|mingw|VC-)/ -}]
26 GENERATE[openssl.rc]=../util/mkrc.pl openssl
27 SOURCE[openssl]=openssl.rc
28 ENDIF
29
2530 {- join("\n ", map { (my $x = $_) =~ s|\.c$|.o|; "DEPEND[$x]=progs.h" }
2631 @apps_openssl_src) -}
2732 GENERATE[progs.h]=progs.pl $(APPS_OPENSSL)
1616 my %commands = ();
1717 my $cmdre = qr/^\s*int\s+([a-z_][a-z0-9_]*)_main\(\s*int\s+argc\s*,/;
1818 my $apps_openssl = shift @ARGV;
19 my $YEAR = [localtime()]->[5] + 1900;
1920
2021 # because the program apps/openssl has object files as sources, and
2122 # they then have the corresponding C files as source, we need to chain
2223 # the lookups in %unified_info
2324 my @openssl_source =
2425 map { @{$unified_info{sources}->{$_}} }
26 grep { /\.o$/ }
2527 @{$unified_info{sources}->{$apps_openssl}};
2628
2729 foreach my $filename (@openssl_source) {
3537
3638 @ARGV = sort keys %commands;
3739
38 print <<'EOF';
40 print <<"EOF";
3941 /*
4042 * WARNING: do not edit!
4143 * Generated by apps/progs.pl
4244 *
43 * Copyright 1995-2018 The OpenSSL Project Authors. All Rights Reserved.
45 * Copyright 1995-$YEAR The OpenSSL Project Authors. All Rights Reserved.
4446 *
4547 * Licensed under the OpenSSL license (the "License"). You may not use
4648 * this file except in compliance with the License. You can obtain a copy
3838 close(FD);
3939
4040 my $filename = $ARGV[0];
41 $filename =~ /(.*)\.([^.]+)$/;
42 my $basename = $1;
43 my $extname = $2;
41 my $description = "OpenSSL library";
42 my $vft = "VFT_DLL";
43 if ( $filename =~ /openssl/i ) {
44 $description = "OpenSSL application";
45 $vft = "VFT_APP";
46 }
4447
45 my $description = "OpenSSL application";
46 $description = "OpenSSL shared library" if $extname =~ /dll/i;
47
48 my $YEAR = [localtime()]->[5] + 1900;
4849 print <<___;
4950 #include <winver.h>
5051
6061 FILEFLAGS 0x00L
6162 #endif
6263 FILEOS VOS__WINDOWS32
63 FILETYPE VFT_DLL
64 FILETYPE $vft
6465 FILESUBTYPE 0x0L
6566 BEGIN
6667 BLOCK "StringFileInfo"
7172 VALUE "CompanyName", "The OpenSSL Project, http://www.openssl.org/\\0"
7273 VALUE "FileDescription", "$description\\0"
7374 VALUE "FileVersion", "$version\\0"
74 VALUE "InternalName", "$basename\\0"
75 VALUE "InternalName", "$filename\\0"
7576 VALUE "OriginalFilename", "$filename\\0"
7677 VALUE "ProductName", "The OpenSSL Toolkit\\0"
7778 VALUE "ProductVersion", "$version\\0"
7879 // Optional:
7980 //VALUE "Comments", "\\0"
80 VALUE "LegalCopyright", "Copyright 1998-2016 The OpenSSL Authors. All rights reserved.\\0"
81 VALUE "LegalCopyright", "Copyright 1998-$YEAR The OpenSSL Authors. All rights reserved.\\0"
8182 //VALUE "LegalTrademarks", "\\0"
8283 //VALUE "PrivateBuild", "\\0"
8384 //VALUE "SpecialBuild", "\\0"