11cb0ef41Sopenharmony_ci{
21cb0ef41Sopenharmony_ci  'variables': {
31cb0ef41Sopenharmony_ci    'openssl_defines_%%-$arch-%%': [
41cb0ef41Sopenharmony_ci%%- foreach $define (@{$config{defines}}) {
51cb0ef41Sopenharmony_ci      $OUT .= "      '$define',\n";
61cb0ef41Sopenharmony_ci    }
71cb0ef41Sopenharmony_ci    foreach $define (@lib_cppflags) {
81cb0ef41Sopenharmony_ci      $OUT .= "      '$define',\n";
91cb0ef41Sopenharmony_ci    }
101cb0ef41Sopenharmony_ci    foreach $define (@{$target{defines}}) {
111cb0ef41Sopenharmony_ci      $OUT .= "      '$define',\n";
121cb0ef41Sopenharmony_ci    }
131cb0ef41Sopenharmony_ci    foreach $define (@{lib_defines}) {
141cb0ef41Sopenharmony_ci      $OUT .= "      '$define',\n";
151cb0ef41Sopenharmony_ci    }
161cb0ef41Sopenharmony_ci    foreach $define (@{$config{lib_defines}}) {
171cb0ef41Sopenharmony_ci  $OUT .= "      '$define',\n";
181cb0ef41Sopenharmony_ci} -%%    ],
191cb0ef41Sopenharmony_ci    'openssl_cflags_%%-$arch-%%': [
201cb0ef41Sopenharmony_ci%%- foreach $cflag (@cflags) {
211cb0ef41Sopenharmony_ci      $OUT .= "      '$cflag',\n";
221cb0ef41Sopenharmony_ci} -%%    ],
231cb0ef41Sopenharmony_ci    'openssl_ex_libs_%%-$arch-%%': [
241cb0ef41Sopenharmony_ci      '%%-$target{ex_libs}-%%',
251cb0ef41Sopenharmony_ci    ],
261cb0ef41Sopenharmony_ci    'openssl_cli_srcs_%%-$arch-%%': [
271cb0ef41Sopenharmony_ci%%- foreach $src (@apps_openssl_srcs) {
281cb0ef41Sopenharmony_ci  if ($src eq 'apps/progs.c') {
291cb0ef41Sopenharmony_ci    $OUT .= "      './config/archs/$arch/$asm/$src',\n";
301cb0ef41Sopenharmony_ci  } else {
311cb0ef41Sopenharmony_ci    unless ($src eq "apps/openssl.rc") {
321cb0ef41Sopenharmony_ci      $OUT .= "      'openssl/$src',\n";
331cb0ef41Sopenharmony_ci    }
341cb0ef41Sopenharmony_ci  }
351cb0ef41Sopenharmony_ci}
361cb0ef41Sopenharmony_ciforeach $src (@libapps_srcs) {
371cb0ef41Sopenharmony_ci  $OUT .= "      'openssl/$src',\n";
381cb0ef41Sopenharmony_ci} -%%    ],
391cb0ef41Sopenharmony_ci  },
401cb0ef41Sopenharmony_ci  'defines': ['<@(openssl_defines_%%-$arch-%%)'],
411cb0ef41Sopenharmony_ci  'include_dirs': [
421cb0ef41Sopenharmony_ci    './include',
431cb0ef41Sopenharmony_ci  ],
441cb0ef41Sopenharmony_ci%%- if (!$is_win) {
451cb0ef41Sopenharmony_ci  $OUT = "  'cflags' : ['<@(openssl_cflags_$arch)'],
461cb0ef41Sopenharmony_ci  'libraries': ['<@(openssl_ex_libs_$arch)'],";
471cb0ef41Sopenharmony_ci} -%%
481cb0ef41Sopenharmony_ci  'sources': ['<@(openssl_cli_srcs_%%-$arch-%%)'],
491cb0ef41Sopenharmony_ci}
50