You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

34 lines
1.1 KiB

  1. mkdir build
  2. cd build
  3. cmake ..
  4. make
  5. Note that the default build flags in the top-leve CMakeLists.txt are for
  6. debugging - optimisation isn't enabled.
  7. If you'll be building a lot, then installing Ninja[1] is highly recommended.
  8. Wipe out the build directory and recreate it, but using:
  9. cmake -GNinja ..
  10. ninja
  11. If you want to cross-compile then there are example toolchain files for 32-bit
  12. Intel and ARM in util/. Wipe out the build directory, recreate it and run cmake
  13. like this:
  14. cmake -DCMAKE_TOOLCHAIN_FILE=../util/arm-toolchain.cmake -GNinja ..
  15. If you want to build as a shared library you need to tweak the STATIC tags in
  16. the CMakeLists.txts and also define BORINGSSL_SHARED_LIBRARY and
  17. BORINGSSL_IMPLEMENTATION. On Windows, where functions need to be tagged with
  18. "dllimport" when coming from a shared library, you need just
  19. BORINGSSL_SHARED_LIBRARY defined in the code which #includes the BoringSSL
  20. headers.
  21. To build on Windows, Yasm[2] is required for assembly. Either ensure yasm.exe
  22. is in %PATH% or configure CMAKE_ASM_NASM_COMPILER appropriately. Note that
  23. full Windows support is still in progress.
  24. [1] http://martine.github.io/ninja/
  25. [2] http://yasm.tortall.net/