• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1{
2  'variables': {
3    'openssl_sources': [
4%%- foreach $src (@libfips_srcs) {
5  $OUT .= "      'openssl/$src',\n";
6} -%%
7    ],
8    'openssl_sources_%%-$arch-%%': [
9%%- foreach $src (@generated_srcs) {
10  $OUT .= "      './config/archs/$arch/$asm/$src',\n";
11} -%%
12    ],
13    'openssl_defines_%%-$arch-%%': [
14%%- foreach $define (@{$config{defines}}) {
15      $OUT .= "      '$define',\n";
16    }
17    foreach $define (@lib_cppflags) {
18      $OUT .= "      '$define',\n";
19    }
20    foreach $define (@{$target{defines}}) {
21      $OUT .= "      '$define',\n";
22    }
23    foreach $define (@{libfips_defines}) {
24      $OUT .= "      '$define',\n";
25    }
26    foreach $define (@{$config{libfips_defines}}) {
27  $OUT .= "      '$define',\n";
28} -%%    ],
29    'openssl_cflags_%%-$arch-%%': [
30%%- foreach $cflag (@cflags) {
31      $OUT .= "      '$cflag',\n";
32} -%%    ],
33    'openssl_ex_libs_%%-$arch-%%': [
34      '%%-$target{ex_libs}-%%',
35    ],
36    'linker_script': '%%-$linker_script-%%'
37  },
38  'include_dirs': [
39    '.',
40    './include',
41    './crypto',
42    './crypto/include/internal',
43    './providers/common/include',
44  ],
45  'defines': ['<@(openssl_defines_%%-$arch-%%)'],
46%%- if (!$is_win) {
47      $OUT .= "  'cflags': ['<@(openssl_cflags_$arch)'],\n";
48      $OUT .= "  'libraries': ['<@(openssl_ex_libs_$arch)'],\n";
49      if ($linker_script ne "") {
50        $OUT .= "  'ldflags': ['-Wl,--version-script=<@(linker_script)'],";
51      }
52} -%%
53  'sources': ['<@(openssl_sources)', '<@(openssl_sources_%%-$arch-%%)'],
54  'direct_dependent_settings': {
55    'include_dirs': ['./include', '.'],
56    'defines': ['<@(openssl_defines_%%-$arch-%%)'],
57  },
58}
59