boringssl/ssl
Joshua Liebow-Feeser 8c7c6356e6 Support symbol prefixes
- In base.h, if BORINGSSL_PREFIX is defined, include
  boringssl_prefix_symbols.h
- In all .S files, if BORINGSSL_PREFIX is defined, include
  boringssl_prefix_symbols_asm.h
- In base.h, BSSL_NAMESPACE_BEGIN and BSSL_NAMESPACE_END are
  defined with appropriate values depending on whether
  BORINGSSL_PREFIX is defined; these macros are used in place
  of 'namespace bssl {' and '}'
- Add util/make_prefix_headers.go, which takes a list of symbols
  and auto-generates the header files mentioned above
- In CMakeLists.txt, if BORINGSSL_PREFIX and BORINGSSL_PREFIX_SYMBOLS
  are defined, run util/make_prefix_headers.go to generate header
  files
- In various CMakeLists.txt files, add "global_target" that all
  targets depend on to give us a place to hook logic that must run
  before all other targets (in particular, the header file generation
  logic)
- Document this in BUILDING.md, including the fact that it is
  the caller's responsibility to provide the symbol list and keep it
  up to date
- Note that this scheme has not been tested on Windows, and likely
  does not work on it; Windows support will need to be added in a
  future commit

Change-Id: If66a7157f46b5b66230ef91e15826b910cf979a2
Reviewed-on: https://boringssl-review.googlesource.com/31364
Commit-Queue: David Benjamin <davidben@google.com>
CQ-Verified: CQ bot account: commit-bot@chromium.org <commit-bot@chromium.org>
Reviewed-by: David Benjamin <davidben@google.com>
2018-09-06 20:07:52 +00:00
..
test Support symbol prefixes 2018-09-06 20:07:52 +00:00
bio_ssl.cc Switch a number of files to C++. 2017-07-12 20:54:02 +00:00
CMakeLists.txt Support symbol prefixes 2018-09-06 20:07:52 +00:00
d1_both.cc Support symbol prefixes 2018-09-06 20:07:52 +00:00
d1_lib.cc Support symbol prefixes 2018-09-06 20:07:52 +00:00
d1_pkt.cc Support symbol prefixes 2018-09-06 20:07:52 +00:00
d1_srtp.cc A bunch more scopers. 2018-07-06 19:43:08 +00:00
dtls_method.cc Remove trailing whitespace from ssl/. 2018-02-26 22:05:13 +00:00
dtls_record.cc Support symbol prefixes 2018-09-06 20:07:52 +00:00
handoff.cc Support symbol prefixes 2018-09-06 20:07:52 +00:00
handshake_client.cc Support symbol prefixes 2018-09-06 20:07:52 +00:00
handshake_server.cc Support symbol prefixes 2018-09-06 20:07:52 +00:00
handshake.cc Support symbol prefixes 2018-09-06 20:07:52 +00:00
internal.h Support symbol prefixes 2018-09-06 20:07:52 +00:00
s3_both.cc Support symbol prefixes 2018-09-06 20:07:52 +00:00
s3_lib.cc Support symbol prefixes 2018-09-06 20:07:52 +00:00
s3_pkt.cc Support symbol prefixes 2018-09-06 20:07:52 +00:00
span_test.cc Support symbol prefixes 2018-09-06 20:07:52 +00:00
ssl_aead_ctx.cc Support symbol prefixes 2018-09-06 20:07:52 +00:00
ssl_asn1.cc Support symbol prefixes 2018-09-06 20:07:52 +00:00
ssl_buffer.cc Support symbol prefixes 2018-09-06 20:07:52 +00:00
ssl_cert.cc Support symbol prefixes 2018-09-06 20:07:52 +00:00
ssl_cipher.cc Support symbol prefixes 2018-09-06 20:07:52 +00:00
ssl_file.cc Avoid modifying stack in sk_find. 2018-04-12 21:02:12 +00:00
ssl_key_share.cc Support symbol prefixes 2018-09-06 20:07:52 +00:00
ssl_lib.cc Support symbol prefixes 2018-09-06 20:07:52 +00:00
ssl_privkey.cc Support symbol prefixes 2018-09-06 20:07:52 +00:00
ssl_session.cc Support symbol prefixes 2018-09-06 20:07:52 +00:00
ssl_stat.cc Remove trailing whitespace from ssl/. 2018-02-26 22:05:13 +00:00
ssl_test.cc Support symbol prefixes 2018-09-06 20:07:52 +00:00
ssl_transcript.cc Support symbol prefixes 2018-09-06 20:07:52 +00:00
ssl_versions.cc Support symbol prefixes 2018-09-06 20:07:52 +00:00
ssl_x509.cc Support symbol prefixes 2018-09-06 20:07:52 +00:00
t1_enc.cc Support symbol prefixes 2018-09-06 20:07:52 +00:00
t1_lib.cc Support symbol prefixes 2018-09-06 20:07:52 +00:00
tls13_both.cc Support symbol prefixes 2018-09-06 20:07:52 +00:00
tls13_client.cc Support symbol prefixes 2018-09-06 20:07:52 +00:00
tls13_enc.cc Support symbol prefixes 2018-09-06 20:07:52 +00:00
tls13_server.cc Support symbol prefixes 2018-09-06 20:07:52 +00:00
tls_method.cc Support symbol prefixes 2018-09-06 20:07:52 +00:00
tls_record.cc Support symbol prefixes 2018-09-06 20:07:52 +00:00