Nevar pievienot vairāk kā 25 tēmas Tēmai ir jāsākas ar burtu vai ciparu, tā var saturēt domu zīmes ('-') un var būt līdz 35 simboliem gara.
 
 
 
 
 
 

77 rindas
2.7 KiB

  1. Build Prerequisites:
  2. * CMake[1] 2.8.8 or later is required.
  3. * Perl 5.6.1 or later is required. On Windows, Strawberry Perl and MSYS Perl
  4. have both been reported to work. If not found by CMake, it may be configured
  5. explicitly by setting PERL_EXECUTABLE.
  6. * On Windows you currently must use Ninja[2] to build; on other platforms,
  7. it is not required, but recommended, because it makes builds faster.
  8. * If you need to build Ninja from source, then a recent version of
  9. Python[3] is required (Python 2.7.5 works).
  10. * On Windows only, Yasm[4] is required. If not found by CMake, it may be
  11. configured explicitly by setting CMAKE_ASM_NASM_COMPILER.
  12. * A C compiler is required. On Windows, MSVC 12 (Visual Studio 2013) or later
  13. with Platform SDK 8.1 or later are supported. Recent versions of GCC and
  14. Clang should work on non-Windows platforms, and maybe on Windows too.
  15. * Go[5] is required. If not found by CMake, the go executable may be
  16. configured explicitly by setting GO_EXECUTABLE.
  17. Using Ninja (note the 'N' is capitalized in the cmake invocation):
  18. mkdir build
  19. cd build
  20. cmake -GNinja ..
  21. ninja
  22. Using makefiles (does not work on Windows):
  23. mkdir build
  24. cd build
  25. cmake ..
  26. make
  27. You usually don't need to run cmake again after changing CMakeLists.txt files
  28. because the build scripts will detect changes to them and rebuild themselves
  29. automatically.
  30. Note that the default build flags in the top-level CMakeLists.txt are for
  31. debugging - optimisation isn't enabled.
  32. If you want to cross-compile then there are example toolchain files for 32-bit
  33. Intel and ARM in util/. Wipe out the build directory, recreate it and run cmake
  34. like this:
  35. cmake -DCMAKE_TOOLCHAIN_FILE=../util/arm-toolchain.cmake -GNinja ..
  36. If you want to build as a shared library, pass -DBUILD_SHARED_LIBS=1. On
  37. Windows, where functions need to be tagged with "dllimport" when coming from a
  38. shared library, define BORINGSSL_SHARED_LIBRARY in any code which #includes the
  39. BoringSSL headers.
  40. Known Limitations on Windows:
  41. * Versions of cmake since 3.0.2 have a bug in its Ninja generator that causes
  42. yasm to output warnings "yasm: warning: can open only one input file, only
  43. the last file will be processed". These warnings can be safely ignored.
  44. The cmake bug is http://www.cmake.org/Bug/view.php?id=15253.
  45. * cmake can generate Visual Studio projects, but the generated project files
  46. don't have steps for assembling the assembly language source files, so they
  47. currently cannot be used to build BoringSSL.
  48. [1] http://www.cmake.org/download/
  49. [2] https://martine.github.io/ninja/
  50. [3] https://www.python.org/downloads/
  51. [4] http://yasm.tortall.net/
  52. [5] https://golang.org/dl/