2015-05-11 19:50:26 -07:00
|
|
|
# Copy this to 'local.mk' in the repository root.
|
2015-03-07 17:49:16 -07:00
|
|
|
# Individual entries must be uncommented to take effect.
|
|
|
|
|
|
|
|
# By default, the installation prefix is '/usr/local'.
|
2016-10-16 03:17:00 -07:00
|
|
|
# CMAKE_EXTRA_FLAGS += -DCMAKE_INSTALL_PREFIX=/usr/local/nvim-latest
|
2015-03-07 17:49:16 -07:00
|
|
|
|
2015-04-14 15:29:26 -07:00
|
|
|
# These CFLAGS can be used in addition to those specified in CMakeLists.txt:
|
|
|
|
# CMAKE_EXTRA_FLAGS="-DCMAKE_C_FLAGS=-ftrapv -Wlogical-op"
|
|
|
|
|
2019-06-10 08:20:41 -07:00
|
|
|
# To turn compiler warnings into errors:
|
|
|
|
# CMAKE_EXTRA_FLAGS += "-DCMAKE_C_FLAGS=${CMAKE_C_FLAGS} -Werror"
|
|
|
|
|
2015-03-07 17:49:16 -07:00
|
|
|
# Sets the build type; defaults to Debug. Valid values:
|
|
|
|
#
|
2017-06-29 00:29:40 -07:00
|
|
|
# - Debug: Disables optimizations (-O0), enables debug information.
|
2015-03-07 17:49:16 -07:00
|
|
|
#
|
2017-06-29 00:29:40 -07:00
|
|
|
# - RelWithDebInfo: Enables optimizations (-Og or -O2) with debug information.
|
2015-03-07 17:49:16 -07:00
|
|
|
#
|
|
|
|
# - MinSizeRel: Enables all -O2 optimization that do not typically
|
|
|
|
# increase code size, and performs further optimizations
|
2015-04-14 15:29:26 -07:00
|
|
|
# designed to reduce code size (-Os).
|
2017-06-29 00:29:40 -07:00
|
|
|
# Disables debug information.
|
2015-03-07 17:49:16 -07:00
|
|
|
#
|
|
|
|
# - Release: Same as RelWithDebInfo, but disables debug information.
|
|
|
|
#
|
|
|
|
# CMAKE_BUILD_TYPE := Debug
|
|
|
|
|
2019-09-26 14:43:49 -07:00
|
|
|
# With non-Debug builds interprocedural optimization (IPO) (which includes
|
|
|
|
# link-time optimization (LTO)) is enabled by default, which causes the link
|
|
|
|
# step to take a significant amount of time, which is relevant when building
|
|
|
|
# often. You can disable it explicitly:
|
|
|
|
# CMAKE_EXTRA_FLAGS += -DENABLE_LTO=OFF
|
|
|
|
|
2023-02-26 04:51:03 -07:00
|
|
|
# Log levels: DEBUG, INFO, WARNING, ERROR
|
|
|
|
# For Debug builds all log levels are used
|
|
|
|
# For Release and RelWithDebInfo builds only WARNING and ERROR are used, unless:
|
|
|
|
# CMAKE_EXTRA_FLAGS += -DLOG_DEBUG
|
2014-12-08 13:00:54 -07:00
|
|
|
|
2015-05-11 19:50:26 -07:00
|
|
|
# By default, nvim uses bundled versions of its required third-party
|
|
|
|
# dependencies.
|
|
|
|
# Uncomment these entries to instead use system-wide installations of
|
|
|
|
# them.
|
|
|
|
#
|
|
|
|
# DEPS_CMAKE_FLAGS += -DUSE_BUNDLED_BUSTED=OFF
|
|
|
|
# DEPS_CMAKE_FLAGS += -DUSE_BUNDLED_LIBTERMKEY=OFF
|
|
|
|
# DEPS_CMAKE_FLAGS += -DUSE_BUNDLED_LIBUV=OFF
|
|
|
|
# DEPS_CMAKE_FLAGS += -DUSE_BUNDLED_LIBVTERM=OFF
|
|
|
|
# DEPS_CMAKE_FLAGS += -DUSE_BUNDLED_LUAJIT=OFF
|
|
|
|
# DEPS_CMAKE_FLAGS += -DUSE_BUNDLED_LUAROCKS=OFF
|
|
|
|
# DEPS_CMAKE_FLAGS += -DUSE_BUNDLED_MSGPACK=OFF
|
|
|
|
# DEPS_CMAKE_FLAGS += -DUSE_BUNDLED_UNIBILIUM=OFF
|
2019-09-28 19:44:02 -07:00
|
|
|
# DEPS_CMAKE_FLAGS += -DUSE_BUNDLED_UTF8PROC=OFF
|
2018-04-16 12:21:44 -07:00
|
|
|
#
|
|
|
|
# Or disable all bundled dependencies at once.
|
|
|
|
#
|
|
|
|
# DEPS_CMAKE_FLAGS += -DUSE_BUNDLED=OFF
|
2015-05-11 19:50:26 -07:00
|
|
|
|
2017-02-27 15:51:45 -07:00
|
|
|
# .DEFAULT_GOAL := nvim
|
|
|
|
#
|
|
|
|
# Run doxygen over the source code.
|
|
|
|
# Output will be in build/doxygen
|
|
|
|
#
|
|
|
|
# doxygen:
|
|
|
|
# doxygen src/Doxyfile
|