{ 'variables': { 'openssl_sources': [ %%- foreach $src (@libssl_srcs) { $OUT .= " 'openssl/$src',\n"; } foreach $src (@libcrypto_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 (@{lib_defines}) { $OUT .= " '$define',\n"; } foreach $define (@{$config{lib_defines}}) { $OUT .= " '$define',\n"; } -%% ], 'openssl_cflags_%%-$arch-%%': [ %%- foreach $cflag (@cflags) { $OUT .= " '$cflag',\n"; } -%% ], 'openssl_ex_libs_%%-$arch-%%': [ '%%-$target{ex_libs}-%%', ], }, 'include_dirs': [ '.', './include', './crypto', './crypto/include/internal', './providers/common/include', ], 'defines': ['<@(openssl_defines_%%-$arch-%%)'], %%- if (!$is_win) { $OUT = " 'cflags' : ['<@(openssl_cflags_$arch)'], 'libraries': ['<@(openssl_ex_libs_$arch)'],"; } -%% 'sources': ['<@(openssl_sources)', '<@(openssl_sources_%%-$arch-%%)'], 'direct_dependent_settings': { 'include_dirs': ['./include', '.'], 'defines': ['<@(openssl_defines_%%-$arch-%%)'], }, }