mirror of https://github.com/nodejs/node.git
59 lines
1.6 KiB
Cheetah
59 lines
1.6 KiB
Cheetah
{
|
|
'variables': {
|
|
'openssl_sources': [
|
|
%%- foreach $src (@libfips_srcs) {
|
|
$OUT .= " 'openssl/$src',\n";
|
|
} -%%
|
|
],
|
|
'openssl_sources_%%-$arch-%%': [
|
|
%%- foreach $src (@generated_srcs) {
|
|
$OUT .= " './config/archs/$arch/$asm/$src',\n";
|
|
} -%%
|
|
],
|
|
'openssl_defines_%%-$arch-%%': [
|
|
%%- foreach $define (@{$config{defines}}) {
|
|
$OUT .= " '$define',\n";
|
|
}
|
|
foreach $define (@lib_cppflags) {
|
|
$OUT .= " '$define',\n";
|
|
}
|
|
foreach $define (@{$target{defines}}) {
|
|
$OUT .= " '$define',\n";
|
|
}
|
|
foreach $define (@{libfips_defines}) {
|
|
$OUT .= " '$define',\n";
|
|
}
|
|
foreach $define (@{$config{libfips_defines}}) {
|
|
$OUT .= " '$define',\n";
|
|
} -%% ],
|
|
'openssl_cflags_%%-$arch-%%': [
|
|
%%- foreach $cflag (@cflags) {
|
|
$OUT .= " '$cflag',\n";
|
|
} -%% ],
|
|
'openssl_ex_libs_%%-$arch-%%': [
|
|
'%%-$target{ex_libs}-%%',
|
|
],
|
|
'linker_script': '%%-$linker_script-%%'
|
|
},
|
|
'include_dirs': [
|
|
'.',
|
|
'./include',
|
|
'./crypto',
|
|
'./crypto/include/internal',
|
|
'./providers/common/include',
|
|
],
|
|
'defines': ['<@(openssl_defines_%%-$arch-%%)'],
|
|
%%- if (!$is_win) {
|
|
$OUT .= " 'cflags': ['<@(openssl_cflags_$arch)'],\n";
|
|
$OUT .= " 'libraries': ['<@(openssl_ex_libs_$arch)'],\n";
|
|
if ($linker_script ne "") {
|
|
$OUT .= " 'ldflags': ['-Wl,--version-script=<@(linker_script)'],";
|
|
}
|
|
} -%%
|
|
'sources': ['<@(openssl_sources)', '<@(openssl_sources_%%-$arch-%%)'],
|
|
'direct_dependent_settings': {
|
|
'include_dirs': ['./include', '.'],
|
|
'defines': ['<@(openssl_defines_%%-$arch-%%)'],
|
|
},
|
|
}
|