My favorites | Sign in
Project Home Issues
Checkout   Browse   Changes  
Changes to /wiki/Building.wiki
r8 vs. r9 Compare: vs.  Format:
Revision r9
Go to: 
Project members, sign in to write a code review
/wiki/Building.wiki   r8 /wiki/Building.wiki   r9
1 #summary How to build MacVim 1 #summary How to build MacVim
2 #labels Featured,Phase-Implementation 2 #labels Featured,Phase-Implementation
3 3
4 Make sure you have the Vim source code downloaded (you won't need the source at the moment, only the runtime files). Start Terminal and `cd` to the `src` directory of Vim, e.g. 4 First you need to get the Vim source code. In order to do this, start Terminal and type
5 {{{ 5 {{{
6 localhost~ user$ cd vim71/src 6 localhost~ user$ svn co https://vim.svn.sourceforge.net/svnroot/vim/vim7
7 }}} 7 }}}
8 This will create the folder vim7 and populate it with the Vim source (be patient, it can take a while).
8 9
9 Check out the MacVim source 10 The next thing is to download the MacVim source and put it in the `vim7/src` folder as follows:
10 {{{ 11 {{{
11 localhost~/vim71/src user$ svn co http://macvim.googlecode.com/svn/trunk MacVim 12 localhost~ user$ cd vim7/src
13 localhost~/vim7/src user$ svn co http://macvim.googlecode.com/svn/trunk MacVim
12 }}} 14 }}}
13 15
14 At the moment it only works to build the GUI, so download the latest snapshot in the 'Downloads' tab to the Desktop, unzip it and move MacVim.app to the desktop, then type 16 At the moment it only works to build the GUI, so download the latest snapshot in the 'Downloads' tab, unzip it and move MacVim.app to the desktop, then type
15 {{{ 17 {{{
16 localhost~/vim71/src user$ cp ~/Desktop/MacVim.app/Contents/MacOS/Vim . 18 localhost~/vim7/src user$ cp ~/Desktop/MacVim.app/Contents/MacOS/Vim .
17 }}} 19 }}}
18 The xcode project file expects the Vim executable to be there. As soon as I figure out how to, I will put up a patch file so that you can patch the Vim source and build the Vim executable yourself. 20 The Xcode project file expects the Vim executable to be there. As soon as I figure out how to, I will put up a patch file so that you can patch the Vim source and build the Vim executable yourself.
19 21
20 Open `MacVim.xcodeproj` (which is inside the `MacVim` folder), and click the 'Build' button (Cmd+B). This will build the application bundle `MacVim.app` inside `build/Release` (or `build/Debug`, depending on which build configuration is active). 22 Open `MacVim.xcodeproj` (which is inside the `MacVim` folder), and click the 'Build' button (Cmd+B). This will build the application bundle `MacVim.app` inside `build/Release` (or `build/Debug`, depending on which build configuration is active).
21 23
22 24
23 The project is set up to build a universal binary, this can be changed in the build settings. Also, once you've built the project once you might want to check the option 'Run script only when installing' inside the info window of 'Targets/MacVim/Run Script'. Doing this means that the Vim runtime files won't be copied every time you build or run the project (it can take some time). 25 The project is set up to build a universal binary, this can be changed in the build settings. Also, once you've built the project once you might want to check the option 'Run script only when installing' inside the info window of 'Targets -> MacVim -> Run Script'. Doing this means that the Vim runtime files won't be copied every time you build or run the project (it can take some time).
26
27
28
29
30
31
Powered by Google Project Hosting