-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This patch decouples the build from OSX, Xcode, and Brew. This represents the theoretical state of dependencies: there's no dependency on OSX, Xcode or Brew! These build parameters are expressed as fallback values: they are only used if the user has not provided their own parameters. Refactor CMakeLists in a way that is more configurable - allow the user to provide a boost installation - allow the user to provide a sourcekit installation Now, all source code related operations of the build system are governed by CMake: bootstrapping just calls configure and build. The fact that it defaults to homebrew for boost isn't really a requirement, but it is what it uses for now. This is a marginal default and I added a FIXME, to improve it in the future. Note: As of writing, my development environments meet these requirements and it seems like sensible default for many potential users. As much as I don't enjoy Xcode, this is pragmatic for reasons described in the README, and CMakeLists, and Swift YCMD RFC.
- Loading branch information
1 parent
2ec34a8
commit abde37e
Showing
3 changed files
with
73 additions
and
46 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,22 +2,6 @@ | |
set -e | ||
cd `dirname $0` | ||
|
||
# System Dependencies | ||
if [[ ! -d /Applications/Xcode.app/ ]]; then | ||
>&2 echo "Needs OSX and Xcode for SourceKitD" | ||
exit 1 | ||
fi | ||
|
||
# Use boost is installed via brew for now | ||
EXPECTED_BOOST=/usr/local/Cellar/boost/1.64.0_1 | ||
if [[ ! -d $EXPECTED_BOOST ]]; then | ||
echo "Missing Boost $EXPECTED_BOOST. \ | ||
trying $ brew install boost 1.64" | ||
brew install [email protected] | ||
fi | ||
|
||
echo "Deps satisfied.." | ||
|
||
echo "Configure.." | ||
./configure | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
#!/bin/bash | ||
set -e | ||
|
||
EXPECTED_BOOST=/usr/local/include/boost/ | ||
if [[ ! -d $EXPECTED_BOOST ]]; then | ||
echo "Missing Boost $EXPECTED_BOOST. \ | ||
trying $ brew install boost 1.64" | ||
brew install [email protected] | ||
fi | ||
|
FIXME: this isn't actually
XCODE_PATH