local.mk.example 2.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  1. # Copy this to 'local.mk' in the repository root.
  2. # Individual entries must be uncommented to take effect.
  3. # By default, the installation prefix is '/usr/local'.
  4. # CMAKE_EXTRA_FLAGS += -DCMAKE_INSTALL_PREFIX=/usr/local/nvim-latest
  5. # These CFLAGS can be used in addition to those specified in CMakeLists.txt:
  6. # CMAKE_EXTRA_FLAGS="-DCMAKE_C_FLAGS=-ftrapv -Wlogical-op"
  7. # By default, the jemalloc family of memory allocation functions are used.
  8. # Uncomment the following to instead use libc memory allocation functions.
  9. # CMAKE_EXTRA_FLAGS += -DENABLE_JEMALLOC=OFF
  10. # Sets the build type; defaults to Debug. Valid values:
  11. #
  12. # - Debug: Disables optimizations (-O0), enables debug information.
  13. #
  14. # - RelWithDebInfo: Enables optimizations (-Og or -O2) with debug information.
  15. #
  16. # - MinSizeRel: Enables all -O2 optimization that do not typically
  17. # increase code size, and performs further optimizations
  18. # designed to reduce code size (-Os).
  19. # Disables debug information.
  20. #
  21. # - Release: Same as RelWithDebInfo, but disables debug information.
  22. #
  23. # CMAKE_BUILD_TYPE := Debug
  24. # Log levels: 0 (DEBUG), 1 (INFO), 2 (WARNING), 3 (ERROR)
  25. # Default is 1 (INFO) unless CMAKE_BUILD_TYPE is Release or RelWithDebInfo.
  26. # CMAKE_EXTRA_FLAGS += -DMIN_LOG_LEVEL=1
  27. # By default, nvim uses bundled versions of its required third-party
  28. # dependencies.
  29. # Uncomment these entries to instead use system-wide installations of
  30. # them.
  31. #
  32. # DEPS_CMAKE_FLAGS += -DUSE_BUNDLED_BUSTED=OFF
  33. # DEPS_CMAKE_FLAGS += -DUSE_BUNDLED_JEMALLOC=OFF
  34. # DEPS_CMAKE_FLAGS += -DUSE_BUNDLED_LIBTERMKEY=OFF
  35. # DEPS_CMAKE_FLAGS += -DUSE_BUNDLED_LIBUV=OFF
  36. # DEPS_CMAKE_FLAGS += -DUSE_BUNDLED_LIBVTERM=OFF
  37. # DEPS_CMAKE_FLAGS += -DUSE_BUNDLED_LUAJIT=OFF
  38. # DEPS_CMAKE_FLAGS += -DUSE_BUNDLED_LUAROCKS=OFF
  39. # DEPS_CMAKE_FLAGS += -DUSE_BUNDLED_MSGPACK=OFF
  40. # DEPS_CMAKE_FLAGS += -DUSE_BUNDLED_UNIBILIUM=OFF
  41. #
  42. # Or disable all bundled dependencies at once.
  43. #
  44. # DEPS_CMAKE_FLAGS += -DUSE_BUNDLED=OFF
  45. # By default, bundled libraries are statically linked to nvim.
  46. # This has no effect for non-bundled deps, which are always dynamically linked.
  47. # Uncomment these entries to instead use dynamic linking.
  48. #
  49. # CMAKE_EXTRA_FLAGS += -DLIBTERMKEY_USE_STATIC=OFF
  50. # CMAKE_EXTRA_FLAGS += -DLIBUNIBILIUM_USE_STATIC=OFF
  51. # CMAKE_EXTRA_FLAGS += -DLIBUV_USE_STATIC=OFF
  52. # CMAKE_EXTRA_FLAGS += -DLIBVTERM_USE_STATIC=OFF
  53. # CMAKE_EXTRA_FLAGS += -DLUAJIT_USE_STATIC=OFF
  54. # CMAKE_EXTRA_FLAGS += -DMSGPACK_USE_STATIC=OFF
  55. #
  56. #
  57. # .DEFAULT_GOAL := nvim
  58. #
  59. # Run doxygen over the source code.
  60. # Output will be in build/doxygen
  61. #
  62. # doxygen:
  63. # doxygen src/Doxyfile