From 3e3d8d6c13e6b4207a97aee117236b8ca70b9fbe Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?John=20Ankarstr=C3=B6m?= Date: Fri, 26 Aug 2022 09:10:38 +0200 Subject: Use CMake. I don't love it, but it makes it possible to support Visual Studio in addition to MinGW GCC. --- eb.el | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) (limited to 'eb.el') diff --git a/eb.el b/eb.el index 594c4e3..52c67f6 100644 --- a/eb.el +++ b/eb.el @@ -4,11 +4,21 @@ ;;; Code: +(defcustom eb-system "vs2019" + "Build system (mingw/vs2019)." + :group 'eb + :type 'string) + (defcustom eb-cwd "b" "Working directory for executable." :group 'eb :type 'directory) +(defcustom eb-cppclean-argv (list "cppclean") + "Argument vector for cppclean." + :group 'eb + :type 'sexp) + ;;;###autoload (defun eb-run () "Launch built executable, displaying its output in a buffer." @@ -16,7 +26,10 @@ (require 'project) (let ((buf (get-buffer-create "*eb-run*")) (exe (concat (project-root (project-current)) - "/b/EpisodeBrowser.exe")) + "/b/" + eb-system + (if (not (string-equal eb-system "mingw")) "/Debug/" "") + "EpisodeBrowser.exe")) (default-directory eb-cwd)) (with-current-buffer buf (compilation-mode)) -- cgit v1.2.3