Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2236)

Unified Diff: docs/linux_sublime_dev.md

Issue 2017013002: Re-ordered Sublime Text documentation to move SublimeClang instructions (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: docs/linux_sublime_dev.md
diff --git a/docs/linux_sublime_dev.md b/docs/linux_sublime_dev.md
index 3205e571ae3c233be2689cfb424f29ddde7d8b23..d06af8000f15ad87d1ada0ac2bab25a24a7ec9c4 100644
--- a/docs/linux_sublime_dev.md
+++ b/docs/linux_sublime_dev.md
@@ -313,6 +313,57 @@ page](https://github.com/quarnster/SublimeClang).
your settings file will print more to the console (accessed with ``Ctrl + ` ``)
which can be helpful when debugging.
+### Mac (not working)
+
+1. Install cmake if you don't already have it
+1. Install XCode
+1. Copy libclang.dylib from XCode to the SublimeClang/internals folder:
+
+ ```shell
+ cd ~/Library/Application\ Support/Sublime\ Text\ 3/Packages
+ git clone --recursive https://github.com/quarnster/SublimeClang SublimeClang
+ cd SublimeClang
+ cp /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/libclang.dylib internals/libclang.dylib
+ # Remove i386 from the build file since XCode's libclang.dylib is only a 64-bit version
+ sed -ie 's/CMAKE_OSX_ARCHITECTURES i386 x86_64/CMAKE_OSX_ARCHITECTURES x86_64/' src/CMakeLists.txt
+ # Copy libclang.dylib to the internals dir
+ # Make the project - should be really quick, since libclang.dylib is already built
+ cd src && mkdir build && cd build
+ cmake ..
+ make
+ ```
+
+1. The rest of the instructions are the same, but when adding your project
+ settings, add these extra arguments to `sublimeclang_options`:
+
+ ```json
+ "sublimeclang_options":
+ [
+ ...
+ // MAC-ONLY: Include these options, replacing the paths with the correct installed SDK
+ "-isystem", "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.10.sdk/usr/include/",
+ "-isystem", "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.10.sdk/usr/include/c++/4.2.1",
+ "-F/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.10.sdk/System/Library/Frameworks/",
+ "isysroot", "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.10.sdk",
+ "-mmacosx-version-min=10.7",
+ "-stdlib=libc++",
+ "-isystem", "/usr/include",
+ "-isystem", "/usr/include/c++/*",
+ ]
+ ```
+
+### Windows (not working)
+
+You'll need cl.exe which can be installed with [the Visual C++ Build Tools
+2015](https://blogs.msdn.microsoft.com/vcblog/2016/03/31/announcing-the-official-release-of-the-visual-c-build-tools-2015/).
+You should have cl.exe on your `$PATH`, which you can get by running `C:\Program
+Files (x86)\Microsoft Visual C++ Build Tools\Visual C++ 2015 x64 Native Build
+Tools Command Prompt`.
+
+Then you'll need a copy of libclang.so, which can be found on the [LLVM
+website](http://llvm.org/releases/download.html). The instructions should be the
+same as Linux from there.
+
## Alternative: Code Completion with Ctags
For a fast way to look up symbols, we recommend installing the CTags plugin.
@@ -372,57 +423,6 @@ then add to your `Preferences > Keybindings - User` file:
You can then press those key combinations to compile the current file in the
given target build.
-### Mac (not working)
-
-1. Install cmake if you don't already have it
-1. Install XCode
-1. Copy libclang.dylib from XCode to the SublimeClang/internals folder:
-
- ```shell
- cd ~/Library/Application\ Support/Sublime\ Text\ 3/Packages
- git clone --recursive https://github.com/quarnster/SublimeClang SublimeClang
- cd SublimeClang
- cp /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/libclang.dylib internals/libclang.dylib
- # Remove i386 from the build file since XCode's libclang.dylib is only a 64-bit version
- sed -ie 's/CMAKE_OSX_ARCHITECTURES i386 x86_64/CMAKE_OSX_ARCHITECTURES x86_64/' src/CMakeLists.txt
- # Copy libclang.dylib to the internals dir
- # Make the project - should be really quick, since libclang.dylib is already built
- cd src && mkdir build && cd build
- cmake ..
- make
- ```
-
-1. The rest of the instructions are the same, but when adding your project
- settings, add these extra arguments to `sublimeclang_options`:
-
- ```json
- "sublimeclang_options":
- [
- ...
- // MAC-ONLY: Include these options, replacing the paths with the correct installed SDK
- "-isystem", "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.10.sdk/usr/include/",
- "-isystem", "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.10.sdk/usr/include/c++/4.2.1",
- "-F/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.10.sdk/System/Library/Frameworks/",
- "isysroot", "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.10.sdk",
- "-mmacosx-version-min=10.7",
- "-stdlib=libc++",
- "-isystem", "/usr/include",
- "-isystem", "/usr/include/c++/*",
- ]
- ```
-
-### Windows (not working)
-
-You'll need cl.exe which can be installed with [the Visual C++ Build Tools
-2015](https://blogs.msdn.microsoft.com/vcblog/2016/03/31/announcing-the-official-release-of-the-visual-c-build-tools-2015/).
-You should have cl.exe on your `$PATH`, which you can get by running `C:\Program
-Files (x86)\Microsoft Visual C++ Build Tools\Visual C++ 2015 x64 Native Build
-Tools Command Prompt`.
-
-Then you'll need a copy of libclang.so, which can be found on the [LLVM
-website](http://llvm.org/releases/download.html). The instructions should be the
-same as Linux from there.
-
## Building inside Sublime
To build inside Sublime Text, we first have to create a new build system.
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698