boringssl.cmake 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. # Copyright 2018 Google
  2. #
  3. # Licensed under the Apache License, Version 2.0 (the "License");
  4. # you may not use this file except in compliance with the License.
  5. # You may obtain a copy of the License at
  6. #
  7. # http://www.apache.org/licenses/LICENSE-2.0
  8. #
  9. # Unless required by applicable law or agreed to in writing, software
  10. # distributed under the License is distributed on an "AS IS" BASIS,
  11. # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  12. # See the License for the specific language governing permissions and
  13. # limitations under the License.
  14. include(ExternalProject)
  15. if(TARGET boringssl)
  16. return()
  17. endif()
  18. # This ExternalProject unpacks itself inside the gRPC source tree. CMake clears
  19. # the SOURCE_DIR when unpacking so this must come after grpc despite the fact
  20. # that grpc logically depends upon this.
  21. # grpc v1.24.3 includes boringssl at b29b21a81b32ec273f118f589f46d56ad3332420
  22. # (2018-05-22). This is woefully out of date, so pin to a newer one.
  23. set(commit 9638f8fba961a593c064e3036bb580bdace29e8f) # master@{2019-10-01}
  24. ExternalProject_Add(
  25. boringssl
  26. DEPENDS
  27. grpc-download
  28. DOWNLOAD_DIR ${FIREBASE_DOWNLOAD_DIR}
  29. DOWNLOAD_NAME boringssl-${commit}.tar.gz
  30. URL https://github.com/google/boringssl/archive/${commit}.tar.gz
  31. URL_HASH SHA256=cfd843fda9fdf9ea92b1ae5f5d379ec7d7cb09d5c7d41197ee935a0e30aecb23
  32. PREFIX ${PROJECT_BINARY_DIR}
  33. SOURCE_DIR ${PROJECT_BINARY_DIR}/src/grpc/third_party/boringssl
  34. CONFIGURE_COMMAND ""
  35. BUILD_COMMAND ""
  36. INSTALL_COMMAND ""
  37. TEST_COMMAND ""
  38. )