• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1{
2  'variables': {
3    'openssl_sources': [
4%%- foreach $src (@libssl_srcs) {
5  $OUT .= "      'openssl/$src',\n";
6}
7foreach $src (@libcrypto_srcs) {
8  $OUT .= "      'openssl/$src',\n";
9} -%%    ],
10    'openssl_sources_%%-$arch-%%': [
11%%- foreach $src (@generated_srcs) {
12  $OUT .= "      './config/archs/$arch/$asm/$src',\n";
13} -%%    ],
14    'openssl_defines_%%-$arch-%%': [
15%%- foreach $define (@{$config{defines}}) {
16      $OUT .= "      '$define',\n";
17    }
18    foreach $define (@lib_cppflags) {
19      $OUT .= "      '$define',\n";
20    }
21    foreach $define (@{$target{defines}}) {
22      $OUT .= "      '$define',\n";
23    }
24    foreach $define (@{lib_defines}) {
25      $OUT .= "      '$define',\n";
26    }
27    foreach $define (@{$config{lib_defines}}) {
28  $OUT .= "      '$define',\n";
29} -%%    ],
30    'openssl_cflags_%%-$arch-%%': [
31%%- foreach $cflag (@cflags) {
32      $OUT .= "      '$cflag',\n";
33} -%%    ],
34    'openssl_ex_libs_%%-$arch-%%': [
35      '%%-$target{ex_libs}-%%',
36    ],
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)'],
48  'libraries': ['<@(openssl_ex_libs_$arch)'],";
49} -%%
50  'sources': ['<@(openssl_sources)', '<@(openssl_sources_%%-$arch-%%)'],
51  'direct_dependent_settings': {
52    'include_dirs': ['./include', '.'],
53    'defines': ['<@(openssl_defines_%%-$arch-%%)'],
54  },
55}
56