Add a build target to compile the 'core' package
This commit is contained in:
parent
5af9e1543b
commit
bc72fe47a4
20
build.el
20
build.el
|
@ -1,4 +1,4 @@
|
||||||
:;exec emacs --no-site-file --no-site-lisp --batch -L ./ -l "$0" -f main "$(cd "$(dirname "$0")/." >/dev/null 2>&1 ; pwd -P)" "$@"
|
:;exec `echo $EMACS` --no-site-file --no-site-lisp --batch -L ./ -l "$0" -f main "$(cd "$(dirname "$0")/." >/dev/null 2>&1 ; pwd -P)" "$@"
|
||||||
;;; Buid --- The builder for FG42 -*- lexical-binding: t; -*-
|
;;; Buid --- The builder for FG42 -*- lexical-binding: t; -*-
|
||||||
;;
|
;;
|
||||||
;; Copyright (c) 2010-2021 Sameer Rahmani & Contributors
|
;; Copyright (c) 2010-2021 Sameer Rahmani & Contributors
|
||||||
|
@ -29,8 +29,10 @@
|
||||||
|
|
||||||
(setq debug-on-error t)
|
(setq debug-on-error t)
|
||||||
|
|
||||||
|
(defconst fg42/CORE_DIR (concat (getenv "HOME") "/.fg42/core"))
|
||||||
|
|
||||||
(setq user-emacs-directory (concat (getenv "HOME") "/.fg42/emacs.d"))
|
(setq user-emacs-directory (concat (getenv "HOME") "/.fg42/emacs.d"))
|
||||||
(add-to-list 'load-path (concat (getenv "HOME") "/.fg42/core"))
|
(add-to-list 'load-path fg42/CORE_DIR)
|
||||||
|
|
||||||
|
|
||||||
(require 'fg42/build/core)
|
(require 'fg42/build/core)
|
||||||
|
@ -98,6 +100,20 @@ PARAMS:
|
||||||
(do-command
|
(do-command
|
||||||
(require 'fg42/build/docs)
|
(require 'fg42/build/docs)
|
||||||
(fg42/build-docs build-dir)))
|
(fg42/build-docs build-dir)))
|
||||||
|
|
||||||
|
((string= command "compile")
|
||||||
|
(do-command
|
||||||
|
(native-compile-async fg42/CORE_DIR 'recursively)
|
||||||
|
(native-compile-async "~/.fg42.v3.el")
|
||||||
|
|
||||||
|
(print "Compiling FG42 files ...")
|
||||||
|
(while (or comp-files-queue
|
||||||
|
(> (comp-async-runnings) 0))
|
||||||
|
(print ".")
|
||||||
|
(sleep-for 1))
|
||||||
|
|
||||||
|
(message "Done")))
|
||||||
|
|
||||||
(t (print-help command)))))
|
(t (print-help command)))))
|
||||||
|
|
||||||
(provide 'build)
|
(provide 'build)
|
||||||
|
|
Loading…
Reference in New Issue