diff options
author | K.Takata <kentkt@csc.jp> | 2022-03-06 14:01:52 +0000 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2022-03-06 14:01:52 +0000 |
commit | 9eccee0e856e9fc77c343028b516dfe5df8fd1ed (patch) | |
tree | 0276e40d642ce9d51523e55480572526513f00b7 /src/Make_cyg_ming.mak | |
parent | 525eba00ef818f50fb3ba71c54409a7a8962b344 (diff) | |
download | vim-git-9eccee0e856e9fc77c343028b516dfe5df8fd1ed.tar.gz |
patch 8.2.4517: MS-Windows: cannot specify location of sodium libraryv8.2.4517
Problem: MS-Windows: cannot specify location of sodium library.
Solution: Allow for using a path for SODIUM. (Ken Takata, closes #9896)
Diffstat (limited to 'src/Make_cyg_ming.mak')
-rw-r--r-- | src/Make_cyg_ming.mak | 27 |
1 files changed, 14 insertions, 13 deletions
diff --git a/src/Make_cyg_ming.mak b/src/Make_cyg_ming.mak index 11b4c3af7..7c1cbd9c9 100644 --- a/src/Make_cyg_ming.mak +++ b/src/Make_cyg_ming.mak @@ -32,30 +32,31 @@ # Set to TINY to make minimal version (few features). FEATURES=HUGE -# set to yes for a debug build +# Set to yes for a debug build. DEBUG=no -# set to yes to create a mapfile +# Set to yes to create a mapfile. #MAP=yes -# set to yes to measure code coverage +# Set to yes to measure code coverage. COVERAGE=no -# better encryption support using libsodium +# Better encryption support using libsodium. +# Set to yes or specify the path to the libsodium directory to enable it. #SODIUM=yes -# set to SIZE for size, SPEED for speed, MAXSPEED for maximum optimization +# Set to SIZE for size, SPEED for speed, MAXSPEED for maximum optimization. OPTIMIZE=MAXSPEED -# set to yes to make gvim, no for vim +# Set to yes to make gvim, no for vim. GUI=yes -# set to yes to enable the DLL support (EXPERIMENTAL). +# Set to yes to enable the DLL support (EXPERIMENTAL). # Creates vim{32,64}.dll, and stub gvim.exe and vim.exe. # "GUI" should be also set to "yes". #VIMDLL=yes -# set to no if you do not want to use DirectWrite (DirectX) +# Set to no if you do not want to use DirectWrite (DirectX). # MinGW-w64 is needed, and ARCH should be set to i686 or x86-64. DIRECTX=yes @@ -524,10 +525,6 @@ CXXFLAGS = -std=gnu++11 WINDRES_FLAGS = EXTRA_LIBS = -ifdef SODIUM -DEFINES += -DHAVE_SODIUM -endif - ifdef GETTEXT DEFINES += -DHAVE_GETTEXT -DHAVE_LOCALE_H GETTEXTINCLUDE = $(GETTEXT)/include @@ -671,7 +668,11 @@ DEFINES += -DFEAT_DIRECTX_COLOR_EMOJI endif endif -ifeq ($(SODIUM),yes) +ifdef SODIUM +DEFINES += -DHAVE_SODIUM + ifneq ($(SODIUM),yes) +CFLAGS += -I $(SODIUM)/include + endif ifndef DYNAMIC_SODIUM DYNAMIC_SODIUM=yes endif |