aboutsummaryrefslogtreecommitdiffstats
path: root/Configurations/00-base-templates.conf
diff options
context:
space:
mode:
authorRichard Levitte <levitte@openssl.org>2015-05-18 14:31:49 +0200
committerRichard Levitte <levitte@openssl.org>2016-01-22 00:58:56 +0100
commit88087414def54cd55dfebc172f17f79ed7d3034a (patch)
treef375deb9a16124f804d8b676abe51da727881c26 /Configurations/00-base-templates.conf
parent9e0724a1805fba20a897f6c7f95336f0da017ccf (diff)
downloadopenssl-88087414def54cd55dfebc172f17f79ed7d3034a.tar.gz
Refactor config - @MK1MF_Builds out, general build scheme in
Time to get rid of @MK1MF_Builds and introduce a more flexible 'build_scheme' configuration key. Its value may be a string or an array of strings, meaning we need to teach resolve_config how to handle ARRAY referenses. The build scheme is a word that selects a function to create the appropriate result files for a certain configuration. Currently valid build schemes aer "mk1mf" and "unixmake", the plan is however to add at least one other for a more universal build scheme. Incidently, this also adds the functions 'add' and 'add_before', which can be used in a configuration, so instead of having to repeatedly write a sub like this: key1 => sub { join(" ", @_, "myvalues"); }, key2 => sub { join(" ", "myvalues", @_); }, one could write this: key1 => add(" ", "myvalues"), key2 => add_before(" ", "myvalues"), The good point with 'add' and 'add_before' is that they handle inheritances where the values are a misture of scalars and ARRAYs. If there are any ARRAY to be found, the resulting value will be an ARRAY, otherwise it will be a scalar with all the incoming valued joined together with the separator given as first argument to add/add_before. Reviewed-by: Rich Salz <rsalz@openssl.org>
Diffstat (limited to 'Configurations/00-base-templates.conf')
-rw-r--r--Configurations/00-base-templates.conf1
1 files changed, 1 insertions, 0 deletions
diff --git a/Configurations/00-base-templates.conf b/Configurations/00-base-templates.conf
index 064648f15a..90633c4abf 100644
--- a/Configurations/00-base-templates.conf
+++ b/Configurations/00-base-templates.conf
@@ -20,6 +20,7 @@
poly1305_obj => "",
unistd => "<unistd.h>",
+ build_scheme => "unixmake",
},
x86_asm => {