2018-03-07 13:38:23 +01:00
|
|
|
{
|
|
|
|
'variables': {
|
|
|
|
'openssl_defines_%%-$arch-%%': [
|
|
|
|
%%- foreach $define (@{$config{defines}}) {
|
2018-05-05 16:49:07 +02:00
|
|
|
$OUT .= " '$define',\n";
|
|
|
|
}
|
|
|
|
foreach $define (@lib_cppflags) {
|
|
|
|
$OUT .= " '$define',\n";
|
|
|
|
}
|
|
|
|
foreach $define (@{$target{defines}}) {
|
|
|
|
$OUT .= " '$define',\n";
|
|
|
|
}
|
2021-04-14 11:19:54 +02:00
|
|
|
foreach $define (@{lib_defines}) {
|
|
|
|
$OUT .= " '$define',\n";
|
|
|
|
}
|
2018-05-05 16:49:07 +02:00
|
|
|
foreach $define (@{$config{lib_defines}}) {
|
2018-03-07 13:38:23 +01:00
|
|
|
$OUT .= " '$define',\n";
|
|
|
|
} -%% ],
|
|
|
|
'openssl_cflags_%%-$arch-%%': [
|
2018-11-15 11:18:53 +01:00
|
|
|
%%- foreach $cflag (@cflags) {
|
2018-05-05 16:49:07 +02:00
|
|
|
$OUT .= " '$cflag',\n";
|
2018-11-15 11:18:53 +01:00
|
|
|
} -%% ],
|
2018-03-07 13:38:23 +01:00
|
|
|
'openssl_ex_libs_%%-$arch-%%': [
|
|
|
|
'%%-$target{ex_libs}-%%',
|
|
|
|
],
|
|
|
|
'openssl_cli_srcs_%%-$arch-%%': [
|
|
|
|
%%- foreach $src (@apps_openssl_srcs) {
|
2021-04-14 11:19:54 +02:00
|
|
|
if ($src eq 'apps/progs.c') {
|
|
|
|
$OUT .= " './config/archs/$arch/$asm/$src',\n";
|
|
|
|
} else {
|
|
|
|
unless ($src eq "apps/openssl.rc") {
|
|
|
|
$OUT .= " 'openssl/$src',\n";
|
|
|
|
}
|
2018-11-01 19:56:07 +01:00
|
|
|
}
|
2018-03-07 13:38:23 +01:00
|
|
|
}
|
|
|
|
foreach $src (@libapps_srcs) {
|
|
|
|
$OUT .= " 'openssl/$src',\n";
|
|
|
|
} -%% ],
|
|
|
|
},
|
|
|
|
'defines': ['<@(openssl_defines_%%-$arch-%%)'],
|
|
|
|
'include_dirs': [
|
|
|
|
'./include',
|
|
|
|
],
|
|
|
|
%%- if (!$is_win) {
|
|
|
|
$OUT = " 'cflags' : ['<@(openssl_cflags_$arch)'],
|
|
|
|
'libraries': ['<@(openssl_ex_libs_$arch)'],";
|
|
|
|
} -%%
|
|
|
|
'sources': ['<@(openssl_cli_srcs_%%-$arch-%%)'],
|
|
|
|
}
|