Skip to content
  • tfarina's avatar
    include boringssl headers from third_party explicitly · 29a3a174
    tfarina authored
    This also allow us to participate in DEPS checking, which will help
    catch instances of directories including BoringSSL without adding to
    build targets.
    
    This patch was partly generated by the following command lines:
    
    $ g grep -l -e '^#[[:blank:]]*include <\(openssl[^>]*\)>' | xargs sed -i
    '/^#[[:blank:]]*include/s/<\(openssl[^>]*\)>/"\1"/'
    $ g grep -l "#include \"openssl/" | xargs sed -i -e 's/\(#.*
    \)"\(openssl\/.*\)"/\1"third_party\/boringssl\/src\/include\/\2"/'
    
    The regex were taken from http://stackoverflow.com/a/25378698 and
    https://svn.boost.org/trac/boost/ticket/12057, and adapted to suit our
    needs.
    
    Then the includes were put in their right places with some manual editing and
    the help of tools/sort-headers.py.
    
    BUG=446558
    R=davidben@chromium.org,thestig@chromium.org,jochen@chromium.org,slan@chromium.org
    
    Review-Url: https://codereview.chromium.org/2449873005
    Cr-Commit-Position: refs/heads/master@{#428442}
    29a3a174