https://github.com/simonrw/sublimeclangprojectbuilder
Builds SublimeClang project files with the includes for a cmake-based project
https://github.com/simonrw/sublimeclangprojectbuilder
Last synced: 9 months ago
JSON representation
Builds SublimeClang project files with the includes for a cmake-based project
- Host: GitHub
- URL: https://github.com/simonrw/sublimeclangprojectbuilder
- Owner: simonrw
- Created: 2012-02-02T10:59:08.000Z (over 14 years ago)
- Default Branch: master
- Last Pushed: 2012-02-02T11:11:37.000Z (over 14 years ago)
- Last Synced: 2025-06-06T07:37:53.287Z (about 1 year ago)
- Language: Python
- Homepage:
- Size: 89.8 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.mkd
Awesome Lists containing this project
README
## Description
The script contains the code to create a [SublimeClang][1] project file
for the [Sublime Text 2][2] editor. It allows for automatic parsing of
the [CMake][3] path files to get the required include paths for the
clang compiler.
**WARNING**: This code is incredibly loosely held together and not
tested. I had great dreams of writing proper OO code with unit tests,
but I should have been doing something else that day, so I present it
here 'as is'.
## Requirements
* [Python][4]
* CMake
* Sublime Text 2
* [clang][5]
* A cmake project
## Usage
The script takes a source directory (defaults to the current directory if not given),
the "out of source" build directory and an output stub. The project file will be
located at `output_stub`.sublime-project.
usage: SublimeProjectFileCreator [-h] -b BUILDDIR [-s SOURCEDIR] -o OUTPUT
optional arguments:
-h, --help show this help message and exit
-b BUILDDIR, --builddir BUILDDIR
Build directory
-s SOURCEDIR, --sourcedir SOURCEDIR
Source directory
-o OUTPUT, --output OUTPUT
Name of project file
[1]: https://github.com/quarnster/SublimeClang "SublimeClang Github page"
[2]: http://www.sublimetext.com/2 "Sublime Text 2"
[3]: http://www.cmake.org "CMake homepage"
[4]: http://www.python.org "Python homepage"
[5]: http://clang.llvm.org "Clang homepage"