local.mk.example 2.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  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. # To turn compiler warnings into errors:
  8. # CMAKE_EXTRA_FLAGS += "-DCMAKE_C_FLAGS=${CMAKE_C_FLAGS} -Werror"
  9. # Sets the build type; defaults to Debug. Valid values:
  10. #
  11. # - Debug: Disables optimizations (-O0), enables debug information.
  12. #
  13. # - RelWithDebInfo: Enables optimizations (-Og or -O2) with debug information.
  14. #
  15. # - MinSizeRel: Enables all -O2 optimization that do not typically
  16. # increase code size, and performs further optimizations
  17. # designed to reduce code size (-Os).
  18. # Disables debug information.
  19. #
  20. # - Release: Same as RelWithDebInfo, but disables debug information.
  21. #
  22. # CMAKE_BUILD_TYPE := Debug
  23. # With non-Debug builds interprocedural optimization (IPO) (which includes
  24. # link-time optimization (LTO)) is enabled by default, which causes the link
  25. # step to take a significant amount of time, which is relevant when building
  26. # often. You can disable it explicitly:
  27. # CMAKE_EXTRA_FLAGS += -DENABLE_LTO=OFF
  28. # Log levels: 0 (DEBUG), 1 (INFO), 2 (WARNING), 3 (ERROR)
  29. # Default is 1 (INFO) unless CMAKE_BUILD_TYPE is Release or RelWithDebInfo.
  30. # CMAKE_EXTRA_FLAGS += -DMIN_LOG_LEVEL=1
  31. # By default, nvim uses bundled versions of its required third-party
  32. # dependencies.
  33. # Uncomment these entries to instead use system-wide installations of
  34. # them.
  35. #
  36. # DEPS_CMAKE_FLAGS += -DUSE_BUNDLED_BUSTED=OFF
  37. # DEPS_CMAKE_FLAGS += -DUSE_BUNDLED_LIBTERMKEY=OFF
  38. # DEPS_CMAKE_FLAGS += -DUSE_BUNDLED_LIBUV=OFF
  39. # DEPS_CMAKE_FLAGS += -DUSE_BUNDLED_LIBVTERM=OFF
  40. # DEPS_CMAKE_FLAGS += -DUSE_BUNDLED_LUAJIT=OFF
  41. # DEPS_CMAKE_FLAGS += -DUSE_BUNDLED_LUAROCKS=OFF
  42. # DEPS_CMAKE_FLAGS += -DUSE_BUNDLED_MSGPACK=OFF
  43. # DEPS_CMAKE_FLAGS += -DUSE_BUNDLED_UNIBILIUM=OFF
  44. # DEPS_CMAKE_FLAGS += -DUSE_BUNDLED_UTF8PROC=OFF
  45. #
  46. # Or disable all bundled dependencies at once.
  47. #
  48. # DEPS_CMAKE_FLAGS += -DUSE_BUNDLED=OFF
  49. # .DEFAULT_GOAL := nvim
  50. #
  51. # Run doxygen over the source code.
  52. # Output will be in build/doxygen
  53. #
  54. # doxygen:
  55. # doxygen src/Doxyfile