Branch: refs/heads/master Author: Jiří Techet techet@gmail.com Committer: Jiří Techet techet@gmail.com Date: Sat, 01 Jul 2023 18:17:59 UTC Commit: 3fe1edda6a33ea1d335d906480d4ac698f35e02f https://github.com/geany/geany-plugins/commit/3fe1edda6a33ea1d335d906480d4ac...
Log Message: ----------- vimode: Don't build the viw binary on Windows
With the latest version of msys, the viw binary fails to link (most probably it should be built as a C++ binary instead of the current plain C binary).
Since this binary is used just for testing purposes, there's no need to build it on Windows so this patch skips the build there to avoid this problem.
Modified Paths: -------------- vimode/src/Makefile.am
Modified: vimode/src/Makefile.am 14 lines changed, 8 insertions(+), 6 deletions(-) =================================================================== @@ -3,8 +3,6 @@ plugin = vimode
geanyplugins_LTLIBRARIES = vimode.la
-noinst_PROGRAMS = viw - vi_srcs = \ vi.h \ vi.c \ @@ -42,19 +40,23 @@ vi_srcs = \ vimode_la_SOURCES = \ backends/backend-geany.c \ $(vi_srcs) - -viw_SOURCES = \ - backends/backend-viw.c \ - $(vi_srcs)
vimode_la_CPPFLAGS = $(AM_CPPFLAGS) \ -DG_LOG_DOMAIN="Vimode" vimode_la_CFLAGS = $(AM_CFLAGS) vimode_la_LIBADD = $(COMMONLIBS)
+if !MINGW +noinst_PROGRAMS = viw + +viw_SOURCES = \ + backends/backend-viw.c \ + $(vi_srcs) + viw_CPPFLAGS = $(AM_CPPFLAGS) \ -DG_LOG_DOMAIN="Vimode" viw_CFLAGS = $(AM_CFLAGS) viw_LDADD = $(COMMONLIBS) +endif
include $(top_srcdir)/build/cppcheck.mk
-------------- This E-Mail was brought to you by github_commit_mail.py (Source: https://github.com/geany/infrastructure).