您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

12345678910111213141516171819202122232425262728
  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. [1] http://martine.github.io/ninja/