diff options
author | John Ankarström <john@ankarstrom.se> | 2022-08-26 09:10:38 +0200 |
---|---|---|
committer | John Ankarström <john@ankarstrom.se> | 2022-08-26 09:11:35 +0200 |
commit | 3e3d8d6c13e6b4207a97aee117236b8ca70b9fbe (patch) | |
tree | 2c89e0f343d40280d0b1f715b10d4591e21725fc /eb.el | |
parent | eb7709d8617bec27349eebb43e8941b3aaaf453e (diff) | |
download | EpisodeBrowser-3e3d8d6c13e6b4207a97aee117236b8ca70b9fbe.tar.gz |
Use CMake.
I don't love it, but it makes it possible to support Visual Studio in
addition to MinGW GCC.
Diffstat (limited to 'eb.el')
-rw-r--r-- | eb.el | 15 |
1 files changed, 14 insertions, 1 deletions
@@ -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)) |