21 run_dir = os.path.dirname(sys.argv[0])
22 sources_path = os.path.abspath(
24 '../../third_party/boringssl-with-bazel/sources.json'))
26 with open(sources_path,
'r')
as s:
27 sources = json.load(s)
29 sources_path = os.path.abspath(
31 '../../../../third_party/openssl/boringssl/sources.json'))
32 with open(sources_path,
'r')
as s:
33 sources = json.load(s)
37 return 'third_party/boringssl-with-bazel/' + filename
41 """Adapter for boring-SSL json sources files. """
48 test_binaries = [
'ssl_test',
'crypto_test']
50 key: value
for key, value
in files.items()
if any(
51 f.endswith(
".S")
or f.endswith(
".asm")
for f
in value)
55 'generated with src/boringssl/gen_build_yaml.py',
56 'raw_boringssl_build_output_for_debugging': {
71 map_dir(f)
for f
in files[
'ssl'] + files[
'crypto']),
74 ]
for k, value
in asm_outputs.items()
81 for f
in files[
'ssl_headers'] +
82 files[
'ssl_internal_headers'] +
83 files[
'crypto_headers'] +
84 files[
'crypto_internal_headers'] +
85 files[
'fips_fragments']),
92 'name':
'boringssl_test_util',
97 'defaults':
'boringssl',
98 'src': [
map_dir(f)
for f
in sorted(files[
'test_support'])],
102 'name':
'boringssl_%s' % test,
107 'src': sorted(
map_dir(f)
for f
in files[test]),
108 'vs_proj_dir':
'test/boringssl',
110 'defaults':
'boringssl',
112 'boringssl_test_util',
115 }
for test
in test_binaries],
117 'name':
'boringssl_%s' % test,
119 'exclude_configs': [
'asan',
'ubsan'],
120 'ci_platforms': [
'linux',
'mac',
'posix',
'windows'],
121 'platforms': [
'linux',
'mac',
'posix',
'windows'],
126 'defaults':
'boringssl',
128 }
for test
in test_binaries]
133 print(yaml.dump(grpc_platform.yaml))