tm_properties file found in the root of the source tree). If the current file is a test file then the target to build is changed to build the library to which the test belongs (this is done by setting TM_NINJA_TARGET in the. As there is full session restore, it is safe to relaunch even with unsaved changes. This will relaunch TextMate but when called from within TextMate, a dialog will appear before the current instance is killed. In case you haven't already you also need to set up the PATH variable either in Preferences → Variables or ~/.tm_properties so it can find ninja and related tools an example could be $PATH:/opt/local/bin. Both can be installed via Preferences → Bundles.Īfter this you can press ⌘B to build from within TextMate. You should install the Ninja and CxxTest bundles. Or using homebrew: brew install -HEAD llvm -with-clang If you don’t have it, you can build clang 3.2 from MacPorts: sudo port install clang-3.2 clang_select This should be included with Xcode 4.4+ (available for both Lion and Mountain Lion). Or using homebrew: brew install proctools To install using MacPorts: sudo port install proctools If you are on OS X 10.7 you need pgrep and pkill (used by the “relaunch” build targets). In practice hg ( mercurial) is only required for the SCM library’s tests so you can skip this dependency if you don’t mind a failing test. You can also install the above using homebrew: brew install ragel boost multimarkdown hg ninja If port fails with a build error then likely you need to agree (system-wide) to Apple’s Xcode license: sudo xcodebuild -license To install using MacPorts run: sudo port install ninja ragel boost multimarkdown mercurial
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |