aboutsummaryrefslogtreecommitdiffstats
path: root/lisp/cedet/ede/cpp-root.el
diff options
context:
space:
mode:
authorKenichi Handa2010-09-27 14:42:43 +0900
committerKenichi Handa2010-09-27 14:42:43 +0900
commitb3253cd4b4bcbe1ab4ad1fdc98b30c33af70332c (patch)
tree4d55005558f96dfb44bfcd746098ed0882aff2d0 /lisp/cedet/ede/cpp-root.el
parent4be9765d4bad14d68cdfee2a2c6afe1001d9516a (diff)
parente5fa38990bca723fc3ef1d0ede792e8ff84b84f7 (diff)
downloademacs-b3253cd4b4bcbe1ab4ad1fdc98b30c33af70332c.tar.gz
emacs-b3253cd4b4bcbe1ab4ad1fdc98b30c33af70332c.zip
merge trunk
Diffstat (limited to 'lisp/cedet/ede/cpp-root.el')
-rw-r--r--lisp/cedet/ede/cpp-root.el29
1 files changed, 28 insertions, 1 deletions
diff --git a/lisp/cedet/ede/cpp-root.el b/lisp/cedet/ede/cpp-root.el
index cae4d090a39..1c850f7ad95 100644
--- a/lisp/cedet/ede/cpp-root.el
+++ b/lisp/cedet/ede/cpp-root.el
@@ -131,7 +131,7 @@
131;; (add-to-list 'ede-project-class-files 131;; (add-to-list 'ede-project-class-files
132;; (ede-project-autoload "cpp-root" 132;; (ede-project-autoload "cpp-root"
133;; :name "CPP ROOT" 133;; :name "CPP ROOT"
134;; :file 'ede-cpp-root 134;; :file 'ede/cpp-root
135;; :proj-file 'MY-FILE-FOR-DIR 135;; :proj-file 'MY-FILE-FOR-DIR
136;; :proj-root 'MY-ROOT-FCN 136;; :proj-root 'MY-ROOT-FCN
137;; :load-type 'MY-LOAD 137;; :load-type 'MY-LOAD
@@ -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: