aboutsummaryrefslogtreecommitdiffstats
path: root/lisp/cedet/ede/cpp-root.el
diff options
context:
space:
mode:
Diffstat (limited to 'lisp/cedet/ede/cpp-root.el')
-rw-r--r--lisp/cedet/ede/cpp-root.el27
1 files changed, 27 insertions, 0 deletions
diff --git a/lisp/cedet/ede/cpp-root.el b/lisp/cedet/ede/cpp-root.el
index cae4d090a39..5ef3323cfd5 100644
--- a/lisp/cedet/ede/cpp-root.el
+++ b/lisp/cedet/ede/cpp-root.el
@@ -237,6 +237,18 @@ ROOTPROJ is nil, since there is only one project."
237 ;; Snoop through our master list. 237 ;; Snoop through our master list.
238 (ede-cpp-root-file-existing dir)) 238 (ede-cpp-root-file-existing dir))
239 239
240;;;###autoload
241(add-to-list 'ede-project-class-files
242 (ede-project-autoload "cpp-root"
243 :name "CPP ROOT"
244 :file 'ede-cpp-root
245 :proj-file 'ede-cpp-root-project-file-for-dir
246 :proj-root 'ede-cpp-root-project-root
247 :load-type 'ede-cpp-root-load
248 :class-sym 'ede-cpp-root
249 :new-p nil)
250 t)
251
240;;; CLASSES 252;;; CLASSES
241;; 253;;
242;; EDE sets up projects with two kinds of objects. 254;; EDE sets up projects with two kinds of objects.
@@ -504,6 +516,21 @@ Also set up the lexical preprocessor map."
504 "Get the pre-processor map for project THIS." 516 "Get the pre-processor map for project THIS."
505 (ede-preprocessor-map (ede-target-parent this))) 517 (ede-preprocessor-map (ede-target-parent this)))
506 518
519;;; Quick Hack
520(defun ede-create-lots-of-projects-under-dir (dir projfile &rest attributes)
521 "Create a bunch of projects under directory DIR.
522PROJFILE is a file name sans directory that indicates a subdirectory
523is a project directory.
524Generic ATTRIBUTES, such as :include-path can be added.
525Note: This needs some work."
526 (let ((files (directory-files dir t)))
527 (dolist (F files)
528 (if (file-exists-p (expand-file-name projfile F))
529 `(ede-cpp-root-project (file-name-nondirectory F)
530 :name (file-name-nondirectory F)
531 :file (expand-file-name projfile F)
532 attributes)))))
533
507(provide 'ede/cpp-root) 534(provide 'ede/cpp-root)
508 535
509;; Local variables: 536;; Local variables: