summaryrefslogtreecommitdiffstats
path: root/apps/build.info
diff options
context:
space:
mode:
authorRich Salz <rsalz@akamai.com>2020-03-04 16:52:22 -0500
committerBernd Edlinger <bernd.edlinger@hotmail.de>2020-04-10 15:24:02 +0200
commit1ae56f2f43d36618e54cbb8dd47a7107b74505b6 (patch)
treea2704c85168a338361457a3b9765fcb02d9d2bb3 /apps/build.info
parentfa4d3fe46dfb4909c3c18c9d6141bb3b60a09eed (diff)
Don't compile commands if disabled
Rather than wrapping whole files in "ifndef OPENSSL_NO_xxx" we handle the changes in build.info Reviewed-by: Paul Dale <paul.dale@oracle.com> Reviewed-by: Bernd Edlinger <bernd.edlinger@hotmail.de> (Merged from https://github.com/openssl/openssl/pull/11250)
Diffstat (limited to 'apps/build.info')
-rw-r--r--apps/build.info35
1 files changed, 30 insertions, 5 deletions
diff --git a/apps/build.info b/apps/build.info
index 2186de3a27..06b5ca46d8 100644
--- a/apps/build.info
+++ b/apps/build.info
@@ -13,15 +13,40 @@ ENDIF
$OPENSSLSRC=\
openssl.c progs.c \
asn1pars.c ca.c ciphers.c cms.c crl.c crl2p7.c dgst.c \
- ec.c ecparam.c enc.c engine.c errstr.c \
- genpkey.c kdf.c mac.c nseq.c ocsp.c passwd.c pkcs12.c pkcs7.c \
+ enc.c errstr.c \
+ genpkey.c kdf.c mac.c nseq.c passwd.c pkcs7.c \
pkcs8.c pkey.c pkeyparam.c pkeyutl.c prime.c rand.c req.c \
s_client.c s_server.c s_time.c sess_id.c smime.c speed.c \
- spkac.c srp.c ts.c verify.c version.c x509.c rehash.c storeutl.c \
+ spkac.c verify.c version.c x509.c rehash.c storeutl.c \
list.c info.c provider.c fipsinstall.c
+IF[{- !$disabled{'des'} -}]
+ $OPENSSLSRC=$OPENSSLSRC pkcs12.c
+ENDIF
+IF[{- !$disabled{'ec'} -}]
+ $OPENSSLSRC=$OPENSSLSRC ec.c ecparam.c
+ENDIF
+IF[{- !$disabled{'ocsp'} -}]
+ $OPENSSLSRC=$OPENSSLSRC ocsp.c
+ENDIF
+IF[{- !$disabled{'srp'} -}]
+ $OPENSSLSRC=$OPENSSLSRC srp.c
+ENDIF
+IF[{- !$disabled{'ts'} -}]
+ $OPENSSLSRC=$OPENSSLSRC ts.c
+ENDIF
IF[{- !$disabled{'deprecated-3.0'} -}]
- $OPENSSLSRC=$OPENSSLSRC \
- dhparam.c dsa.c dsaparam.c gendsa.c rsa.c rsautl.c genrsa.c
+ IF[{- !$disabled{'dh'} -}]
+ $OPENSSLSRC=$OPENSSLSRC dhparam.c
+ ENDIF
+ IF[{- !$disabled{'dsa'} -}]
+ $OPENSSLSRC=$OPENSSLSRC dsa.c dsaparam.c gendsa.c
+ ENDIF
+ IF[{- !$disabled{'engine'} -}]
+ $OPENSSLSRC=$OPENSSLSRC engine.c
+ ENDIF
+ IF[{- !$disabled{'rsa'} -}]
+ $OPENSSLSRC=$OPENSSLSRC rsa.c rsautl.c genrsa.c
+ ENDIF
ENDIF
IF[{- !$disabled{'cmp'} -}]
$OPENSSLSRC=$OPENSSLSRC cmp_mock_srv.c