• Home
  • Raw
  • Download

Lines Matching full:files

17 """Enumerates source files for consumption by various build systems."""
65 def PrintVariableSection(self, out, name, files): argument
67 for f in sorted(files):
71 def WriteFiles(self, files): argument
76 # Separate out BCM files to allow different compilation rules (specific to Android FIPS)
77 bcm_c_files = files['bcm_crypto']
78 non_bcm_c_files = [file for file in files['crypto'] if file not in bcm_c_files]
79 non_bcm_asm = self.FilterBcmAsm(files['crypto_asm'], False)
80 bcm_asm = self.FilterBcmAsm(files['crypto_asm'], True)
84 self.PrintDefaults(blueprint, 'libssl_sources', files['ssl'])
85 self.PrintDefaults(blueprint, 'bssl_sources', files['tool'])
86 self.PrintDefaults(blueprint, 'boringssl_test_support_sources', files['test_support'])
87 …f.PrintDefaults(blueprint, 'boringssl_crypto_test_sources', files['crypto_test'], data=files['cryp…
88 self.PrintDefaults(blueprint, 'boringssl_ssl_test_sources', files['ssl_test'])
89 self.PrintDefaults(blueprint, 'libpki_sources', files['pki'])
95 self.PrintVariableSection(makefile, 'crypto_sources', files['crypto'])
97 files['crypto_asm'])
99 def PrintDefaults(self, blueprint, name, files, asm_files=[], data=[]): argument
100 """Print a cc_defaults section from a list of C files and optionally assembly outputs"""
112 for f in sorted(files):
144 want_bcm: If true then include BCM files, otherwise do not
147 A copy of |asm| with files filtered according to |want_bcm|
165 def PrintVariableSection(self, out, name, files): argument
167 for f in sorted(files):
175 def WriteFiles(self, files): argument
183 self.PrintVariableSection(out, 'crypto_sources', files['crypto'])
184 self.PrintVariableSection(out, 'crypto_sources_asm', files['crypto_asm'])
186 files['crypto_nasm'])
187 self.PrintVariableSection(out, 'ssl_sources', files['ssl'])
188 self.PrintVariableSection(out, 'tool_sources', files['tool'])
190 files['test_support'])
192 files['crypto_test'])
193 self.PrintVariableSection(out, 'ssl_test_sources', files['ssl_test'])
197 """Bazel outputs files suitable for including in Bazel files."""
206 def PrintVariableSection(self, out, name, files): argument
212 for f in sorted(files):
216 def WriteFiles(self, files): argument
220 self.PrintVariableSection(out, 'ssl_headers', files['ssl_headers'])
221 self.PrintVariableSection(out, 'fips_fragments', files['fips_fragments'])
223 out, 'ssl_internal_headers', files['ssl_internal_headers'])
224 self.PrintVariableSection(out, 'ssl_sources', files['ssl'])
225 self.PrintVariableSection(out, 'crypto_headers', files['crypto_headers'])
227 out, 'crypto_internal_headers', files['crypto_internal_headers'])
228 self.PrintVariableSection(out, 'crypto_sources', files['crypto'])
229 self.PrintVariableSection(out, 'crypto_sources_asm', files['crypto_asm'])
230 self.PrintVariableSection(out, 'crypto_sources_nasm', files['crypto_nasm'])
231 self.PrintVariableSection(out, 'pki_headers', files['pki_headers'])
233 out, 'pki_internal_headers', files['pki_internal_headers'])
234 self.PrintVariableSection(out, 'pki_sources', files['pki'])
235 self.PrintVariableSection(out, 'rust_bssl_sys', files['rust_bssl_sys'])
236 self.PrintVariableSection(out, 'rust_bssl_crypto', files['rust_bssl_crypto'])
237 self.PrintVariableSection(out, 'tool_sources', files['tool'])
238 self.PrintVariableSection(out, 'tool_headers', files['tool_headers'])
244 for filename in sorted(files['test_support'] +
245 files['test_support_headers'] +
246 files['crypto_internal_headers'] +
247 files['pki_internal_headers'] +
248 files['ssl_internal_headers']):
254 files['crypto_test'])
255 self.PrintVariableSection(out, 'ssl_test_sources', files['ssl_test'])
257 files['pki_test'])
259 files['crypto_test_data'])
261 files['pki_test_data'])
263 files['urandom_test'])
274 def PrintVariableSection(self, out, name, files): argument
276 for f in sorted(files):
280 def WriteFiles(self, files): argument
285 self.PrintVariableSection(makefile, 'crypto_sources', files['crypto'])
287 files['crypto_asm'])
289 files['crypto_nasm'])
290 self.PrintVariableSection(makefile, 'ssl_sources', files['ssl'])
291 self.PrintVariableSection(makefile, 'tool_sources', files['tool'])
303 def PrintVariableSection(self, out, name, files): argument
308 if len(files) == 0:
310 elif len(files) == 1:
311 out.write('%s = [ "%s" ]\n' % (name, files[0]))
314 for f in sorted(files):
318 def WriteFiles(self, files): argument
323 files['crypto'] +
324 files['crypto_internal_headers'])
325 self.PrintVariableSection(out, 'crypto_sources_asm', files['crypto_asm'])
327 files['crypto_nasm'])
328 self.PrintVariableSection(out, 'crypto_headers', files['crypto_headers'])
329 self.PrintVariableSection(out, 'rust_bssl_sys', files['rust_bssl_sys'])
331 files['rust_bssl_crypto'])
333 files['ssl'] + files['ssl_internal_headers'])
334 self.PrintVariableSection(out, 'ssl_headers', files['ssl_headers'])
335 self.PrintVariableSection(out, 'pki_sources', files['pki'])
337 files['pki_internal_headers'])
338 self.PrintVariableSection(out, 'pki_headers', files['pki_headers'])
340 files['tool'] + files['tool_headers'])
343 for fuzzer in files['fuzz']]
351 files['test_support'] +
352 files['test_support_headers'])
354 files['crypto_test'])
356 files['crypto_test_data'])
358 files['pki_test_data'])
359 self.PrintVariableSection(out, 'ssl_test_sources', files['ssl_test'])
360 self.PrintVariableSection(out, 'pki_test_sources', files['pki_test'])
371 def PrintVariableSection(self, out, name, files): argument
373 for f in sorted(files):
377 def WriteFiles(self, files): argument
382 files['ssl'] + files['ssl_headers'] +
383 files['ssl_internal_headers'])
385 files['crypto'] + files['crypto_headers'] +
386 files['crypto_internal_headers'])
388 files['crypto_asm'])
390 files['crypto_nasm'])
468 def PrintLibrary(self, out, name, files, libs=[]): argument
472 for f in sorted(files):
479 def PrintExe(self, out, name, files, libs): argument
483 for f in sorted(files):
489 def PrintVariable(self, out, name, files): argument
492 for f in sorted(files):
496 def WriteFiles(self, files): argument
500 self.PrintVariable(cmake, 'CRYPTO_SOURCES_ASM', files['crypto_asm'])
501 self.PrintVariable(cmake, 'CRYPTO_SOURCES_NASM', files['crypto_nasm'])
514 files['crypto'] + ['${CRYPTO_SOURCES_ASM_USED}'])
516 self.PrintLibrary(cmake, 'ssl', files['ssl'], ['crypto'])
517 self.PrintExe(cmake, 'bssl', files['tool'], ['ssl', 'crypto'])
532 def WriteFiles(self, files): argument
534 json.dump(files, f, sort_keys=True, indent=2)
556 order to exclude test runner files."""
557 # NOTE(martinkr): This prevents .h/.cc files in src/ssl/test/runner, which
558 # are in their own subpackage, from being included in boringssl/BUILD files.
564 files that pass filter_func."""
585 files."""
599 …"""Recurses through directory and returns a list of paths to all the header files that pass filter…
618 def PrefixWithSrc(files): argument
619 return ['src/' + x for x in files]
632 # all the assembly files as part of libcrypto. Merge them for now, but we
640 files = {
672 platform.WriteFiles(files)
692 help='For Bazel, prepend argument to all source files')