Browse Source

Add |tool_headers| to Bazel output of generate_build_files.py

Bazel wants to know the header files of the targets that it builds too,
so output that in the generated BUILD files.

Change-Id: I5b90908342fc8819ae6bc7ff91eb6f5afc0ddf54
Reviewed-on: https://boringssl-review.googlesource.com/8570
Reviewed-by: David Benjamin <davidben@google.com>
kris/onging/CECPQ3_patch15
Adam Langley 8 years ago
committed by David Benjamin
parent
commit
f11f2336ef
1 changed files with 3 additions and 0 deletions
  1. +3
    -0
      util/generate_build_files.py

+ 3
- 0
util/generate_build_files.py View File

@@ -142,6 +142,7 @@ class Bazel(object):
out, 'crypto_internal_headers', files['crypto_internal_headers'])
self.PrintVariableSection(out, 'crypto_sources', files['crypto'])
self.PrintVariableSection(out, 'tool_sources', files['tool'])
self.PrintVariableSection(out, 'tool_headers', files['tool_headers'])

for ((osname, arch), asm_files) in asm_outputs:
self.PrintVariableSection(
@@ -545,6 +546,7 @@ def main(platforms):
crypto_c_files = FindCFiles(os.path.join('src', 'crypto'), NoTests)
ssl_c_files = FindCFiles(os.path.join('src', 'ssl'), NoTests)
tool_c_files = FindCFiles(os.path.join('src', 'tool'), NoTests)
tool_h_files = FindHeaderFiles(os.path.join('src', 'tool'), AllFiles)

# Generate err_data.c
with open('err_data.c', 'w+') as err_data:
@@ -608,6 +610,7 @@ def main(platforms):
'ssl_headers': ssl_h_files,
'ssl_internal_headers': ssl_internal_h_files,
'tool': tool_c_files,
'tool_headers': tool_h_files,
'test': test_c_files,
'test_support': test_support_h_files + test_support_c_files,
'tests': tests,


Loading…
Cancel
Save