Lines Matching refs:out
68 def PrintVariableSection(self, out, name, files): argument
70 out.write('%s := \\\n' % name)
72 out.write(' %s\\\n' % f)
73 out.write('\n')
170 def PrintVariableSection(self, out, name, files): argument
171 out.write('set(%s\n' % name)
177 out.write(' ${BORINGSSL_ROOT}%s\n' % f)
178 out.write(')\n')
185 with open('android-sources.cmake', 'w+') as out:
186 out.write(self.header)
188 self.PrintVariableSection(out, 'crypto_sources', files['crypto'])
189 self.PrintVariableSection(out, 'crypto_sources_asm', files['crypto_asm'])
190 self.PrintVariableSection(out, 'crypto_sources_nasm',
192 self.PrintVariableSection(out, 'ssl_sources', files['ssl'])
193 self.PrintVariableSection(out, 'tool_sources', files['tool'])
194 self.PrintVariableSection(out, 'test_support_sources',
196 self.PrintVariableSection(out, 'crypto_test_sources',
198 self.PrintVariableSection(out, 'crypto_test_data',
200 self.PrintVariableSection(out, 'ssl_test_sources', files['ssl_test'])
213 def PrintVariableSection(self, out, name, files): argument
215 out.write('\n')
218 out.write('%s = [\n' % name)
220 out.write(' "%s",\n' % PathOf(f))
221 out.write(']\n')
224 with open('BUILD.generated.bzl', 'w+') as out:
225 out.write(self.header)
227 self.PrintVariableSection(out, 'ssl_headers', files['ssl_headers'])
228 self.PrintVariableSection(out, 'fips_fragments', files['fips_fragments'])
230 out, 'ssl_internal_headers', files['ssl_internal_headers'])
231 self.PrintVariableSection(out, 'ssl_sources', files['ssl'])
232 self.PrintVariableSection(out, 'crypto_headers', files['crypto_headers'])
234 out, 'crypto_internal_headers', files['crypto_internal_headers'])
235 self.PrintVariableSection(out, 'crypto_sources', files['crypto'])
236 self.PrintVariableSection(out, 'crypto_sources_asm', files['crypto_asm'])
237 self.PrintVariableSection(out, 'crypto_sources_nasm', files['crypto_nasm'])
238 self.PrintVariableSection(out, 'pki_headers', files['pki_headers'])
240 out, 'pki_internal_headers', files['pki_internal_headers'])
241 self.PrintVariableSection(out, 'pki_sources', files['pki'])
242 self.PrintVariableSection(out, 'rust_bssl_sys', files['rust_bssl_sys'])
243 self.PrintVariableSection(out, 'rust_bssl_crypto', files['rust_bssl_crypto'])
244 self.PrintVariableSection(out, 'tool_sources', files['tool'])
245 self.PrintVariableSection(out, 'tool_headers', files['tool_headers'])
247 with open('BUILD.generated_tests.bzl', 'w+') as out:
248 out.write(self.header)
250 out.write('test_support_sources = [\n')
256 out.write(' "%s",\n' % PathOf(filename))
258 out.write(']\n')
260 self.PrintVariableSection(out, 'crypto_test_sources',
262 self.PrintVariableSection(out, 'ssl_test_sources', files['ssl_test'])
263 self.PrintVariableSection(out, 'pki_test_sources',
265 self.PrintVariableSection(out, 'crypto_test_data',
267 self.PrintVariableSection(out, 'pki_test_data',
269 self.PrintVariableSection(out, 'urandom_test_sources',
281 def PrintVariableSection(self, out, name, files): argument
282 out.write('%s := \\\n' % name)
284 out.write(' %s\\\n' % f)
285 out.write('\n')
310 def PrintVariableSection(self, out, name, files): argument
312 out.write('\n')
316 out.write('%s = []\n' % name)
318 out.write('%s = [ "%s" ]\n' % (name, files[0]))
320 out.write('%s = [\n' % name)
322 out.write(' "%s",\n' % f)
323 out.write(']\n')
326 with open('BUILD.generated.gni', 'w+') as out:
327 out.write(self.header)
329 self.PrintVariableSection(out, 'crypto_sources',
332 self.PrintVariableSection(out, 'crypto_sources_asm', files['crypto_asm'])
333 self.PrintVariableSection(out, 'crypto_sources_nasm',
335 self.PrintVariableSection(out, 'crypto_headers', files['crypto_headers'])
336 self.PrintVariableSection(out, 'rust_bssl_sys', files['rust_bssl_sys'])
337 self.PrintVariableSection(out, 'rust_bssl_crypto',
339 self.PrintVariableSection(out, 'ssl_sources',
341 self.PrintVariableSection(out, 'ssl_headers', files['ssl_headers'])
342 self.PrintVariableSection(out, 'pki_sources', files['pki'])
343 self.PrintVariableSection(out, 'pki_internal_headers',
345 self.PrintVariableSection(out, 'pki_headers', files['pki_headers'])
346 self.PrintVariableSection(out, 'tool_sources',
351 self.PrintVariableSection(out, 'fuzzers', fuzzers)
353 with open('BUILD.generated_tests.gni', 'w+') as out:
355 out.write(self.header)
357 self.PrintVariableSection(out, 'test_support_sources',
360 self.PrintVariableSection(out, 'crypto_test_sources',
362 self.PrintVariableSection(out, 'crypto_test_data',
364 self.PrintVariableSection(out, 'pki_test_data',
366 self.PrintVariableSection(out, 'ssl_test_sources', files['ssl_test'])
367 self.PrintVariableSection(out, 'pki_test_sources', files['pki_test'])
378 def PrintVariableSection(self, out, name, files): argument
379 out.write(' \'%s\': [\n' % name)
381 out.write(' \'%s\',\n' % f)
382 out.write(' ],\n')
475 def PrintLibrary(self, out, name, files, libs=[]): argument
476 out.write('add_library(\n')
477 out.write(' %s\n\n' % name)
480 out.write(' %s\n' % PathOf(f))
482 out.write(')\n\n')
484 out.write('target_link_libraries(%s %s)\n\n' % (name, ' '.join(libs)))
486 def PrintExe(self, out, name, files, libs): argument
487 out.write('add_executable(\n')
488 out.write(' %s\n\n' % name)
491 out.write(' %s\n' % PathOf(f))
493 out.write(')\n\n')
494 out.write('target_link_libraries(%s %s)\n\n' % (name, ' '.join(libs)))
496 def PrintVariable(self, out, name, files): argument
497 out.write('set(\n')
498 out.write(' %s\n\n' % name)
500 out.write(' %s\n' % PathOf(f))
501 out.write(')\n\n')