]> git.ipfire.org Git - thirdparty/openssl.git/commit - Configure
Configuration: Simplify generating list of generated files in build file templates
authorRichard Levitte <levitte@openssl.org>
Wed, 11 Apr 2018 11:13:22 +0000 (13:13 +0200)
committerRichard Levitte <levitte@openssl.org>
Wed, 11 Apr 2018 18:52:14 +0000 (20:52 +0200)
commit8258975c94398930e7b5406b8a3af53a662d1354
tree9720de44c3c65ae8d2e80a93258b70a0202e2021
parentc12a2d2728fd9eb555ab347049ebdddef9d81d7f
Configuration: Simplify generating list of generated files in build file templates

Computing the value of the GENERATED variable in the build file
templates is somewhat overcomplicated, and because of possible
duplication errors, changes are potentially error prone.

Looking more closely at how this list is determined, it can be
observed that the exact list of files to check is consistently
available in all the values found in the %unified_info tables
'depends', 'sources' and 'shared_sources', and all that's needed is to
filter those values so only those present as keys in the 'generate'
table are left.

This computation is also common for all build files, so due to its
apparent complexity, we move it to common0.tmpl, with the result left
in a global variable (@generated), to be consumed by all build file
templates.

common0.tmpl is included among the files to process when creating
build files, but unlike common.tmpl, it comes first of all.

Reviewed-by: Andy Polyakov <appro@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/5930)
Configurations/common0.tmpl [new file with mode: 0644]
Configurations/descrip.mms.tmpl
Configurations/unix-Makefile.tmpl
Configurations/windows-makefile.tmpl
Configure