Pete Williamson
unread,Aug 7, 2012, 2:48:44 PM8/7/12Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to David Holloway, wit...@google.com, Nico Weber, chromi...@chromium.org
Thanks, everyone!
It seems that my problem was that when running from the Dock on a mac, lots of normal path variables don't get set. A second problem is that often don't have the directory set to .../chromium/src. This is how I fixed it in my .emacs file, and it worked for me. I'm absolutely open if anyone has a better answer.
;; OS dependent settings at the top of my .emacs file
(setq depot-tools-path "~/depot_tools:")
(setq chromium-src-dir "/Source/chromium/src")
;; On the Mac
(when (string-equal system-type "darwin")
;; put things I need onto the global path, since the dock doesn't use $PATH
(setenv "PATH" (concat depot-tools-path (getenv "PATH")))
(push depot-tools-path exec-path))
;; set up ninja compilation
(setq-default my-ninja-command nil)
(defun ninja-c-mode-compile (command)
(interactive (list (read-string "target: " my-ninja-command)))
(setq my-ninja-command command)
(interactive)
(save-some-buffers t)
(compile (concat "ninja -C out/Debug " command)))
Then I can just run M-x ninja<tab> <target> to compile.