summaryrefslogtreecommitdiffstats
path: root/src/util/generate_build_files.py
diff options
context:
space:
mode:
authorAdam Langley <agl@google.com>2015-06-09 00:31:54 +0000
committerAndroid Git Automerger <android-git-automerger@android.com>2015-06-09 00:31:54 +0000
commit9d4bc055d8634ee6203925335464b4d9bec34be2 (patch)
tree2aa613266128178591aa10ef500a92702ddbe054 /src/util/generate_build_files.py
parent907362640544fea73968f6adf34f2b2b5e9b5a00 (diff)
parentf4e427204234da139fd0585def4b4e22502e33f0 (diff)
downloadexternal_boringssl-9d4bc055d8634ee6203925335464b4d9bec34be2.zip
external_boringssl-9d4bc055d8634ee6203925335464b4d9bec34be2.tar.gz
external_boringssl-9d4bc055d8634ee6203925335464b4d9bec34be2.tar.bz2
am f4e42720: Bump revision of BoringSSL.
* commit 'f4e427204234da139fd0585def4b4e22502e33f0': Bump revision of BoringSSL.
Diffstat (limited to 'src/util/generate_build_files.py')
-rw-r--r--src/util/generate_build_files.py22
1 files changed, 18 insertions, 4 deletions
diff --git a/src/util/generate_build_files.py b/src/util/generate_build_files.py
index 94de546..e534a56 100644
--- a/src/util/generate_build_files.py
+++ b/src/util/generate_build_files.py
@@ -90,6 +90,7 @@ class Chromium(object):
],
'sources': [
'%s',
+ '<@(boringssl_test_support_sources)',
],
# TODO(davidben): Fix size_t truncations in BoringSSL.
# https://crbug.com/429039
@@ -99,9 +100,12 @@ class Chromium(object):
test_names.sort()
- test_gypi.write(""" ],
- 'variables': {
- 'boringssl_test_targets': [\n""")
+ test_gypi.write(' ],\n \'variables\': {\n')
+
+ self.PrintVariableSection(
+ test_gypi, 'boringssl_test_support_sources', files['test_support'])
+
+ test_gypi.write(' \'boringssl_test_targets\': [\n')
for test in test_names:
test_gypi.write(""" '%s',\n""" % test)
@@ -174,10 +178,16 @@ def OnlyTests(dent, is_dir):
"""Filter function that can be passed to FindCFiles in order to remove
non-test sources."""
if is_dir:
- return True
+ return dent != 'test'
return '_test.' in dent or dent.startswith('example_')
+def AllFiles(dent, is_dir):
+ """Filter function that can be passed to FindCFiles in order to include all
+ sources."""
+ return True
+
+
def FindCFiles(directory, filter_func):
"""Recurses through directory and returns a list of paths to all the C source
files that pass filter_func."""
@@ -304,6 +314,9 @@ def main(platform):
stdout=err_data)
crypto_c_files.append('err_data.c')
+ test_support_cc_files = FindCFiles(os.path.join('src', 'crypto', 'test'),
+ AllFiles)
+
test_c_files = FindCFiles(os.path.join('src', 'crypto'), OnlyTests)
test_c_files += FindCFiles(os.path.join('src', 'ssl'), OnlyTests)
@@ -312,6 +325,7 @@ def main(platform):
'ssl': ssl_c_files,
'tool': tool_cc_files,
'test': test_c_files,
+ 'test_support': test_support_cc_files,
}
asm_outputs = sorted(WriteAsmFiles(ReadPerlAsmOperations()).iteritems())