From 42d76bb3c765d9ba577ce170d2c70526b9242bd1 Mon Sep 17 00:00:00 2001 From: Karen Arutyunov Date: Tue, 5 Mar 2019 20:01:04 +0300 Subject: Drop usage of def prerequisite-specific include variable in buildfiles --- libcrypto/libcrypto/buildfile | 18 +++++++++++------- 1 file changed, 11 insertions(+), 7 deletions(-) (limited to 'libcrypto') diff --git a/libcrypto/libcrypto/buildfile b/libcrypto/libcrypto/buildfile index b8503a1..eb9990b 100644 --- a/libcrypto/libcrypto/buildfile +++ b/libcrypto/libcrypto/buildfile @@ -17,6 +17,7 @@ lib{crypto}: {h }{** -buildinf-body} \ -mdc2/** \ -poly1305/poly1305_ieee754 \ -poly1305/poly1305_base2_44} \ + { def}{libcrypto} \ crypto/{file}{LPdir_*.c des/ncbc_enc.c} \ {file}{libcrypto.map} @@ -37,13 +38,8 @@ gcc = ($c.class == 'gcc') msvc = ($c.class == 'msvc') mingw = ($c.target.system == 'mingw32') -lib{crypto}: def{libcrypto}: include = $windows - -# See bootstrap.build for details. +# Build options. # -lib_version = ($version.pre_release ? "$version.project_id" : "$abi_version") -lib{crypto}: bin.lib.version = @"-$lib_version" - # Drop -DOPENSSL_PIC and -D{L|B}_ENDIAN preprocessor options and define # OPENSSL_PIC and {L|B}_ENDIAN macros in downstream/openssl/opensslconf.h. # Pass -DLIBCRYPTO_BUILD to define the above macros only while building the @@ -101,7 +97,7 @@ if $msvc # c.coptions += /wd4090 /wd4129 /wd4164 /wd4244 /wd4267 /wd4311 } -else +elif $gcc { # Disable warnings that pop up with -Wall -Wextra. Upstream doesn't seem to # care about these and it is not easy to disable specific warnings in a way @@ -129,6 +125,8 @@ else # Overall, the thinking is that if any of these directories are actually # needed, then one should probably be using the system-installed OpenSSL. # +lib_version = ($version.pre_release ? "$version.project_id" : "$abi_version") + if! $windows { root = ($install.root != [null] \ @@ -227,8 +225,14 @@ else c.libs += advapi32.lib } +# Export options. +# lib{crypto}: cc.export.poptions = "-I$src_base/downstream" "-I$src_base" +# See bootstrap.build for details. +# +lib{crypto}: bin.lib.version = @"-$lib_version" + # Install headers from the upstream and downstream openssl/ subdirectories # only. # -- cgit v1.1