[build] Add ccache install reminder and docs (#9520)

This commit is contained in:
Jason Wray
2017-07-18 12:36:22 -04:00
committed by GitHub
parent 964287e5a4
commit 05df451f3c
2 changed files with 10 additions and 4 deletions

View File

@@ -119,6 +119,8 @@ if(CCACHE_PROGRAM)
# Clang also thinks that ccache isn't interactive, so we explicitly need to enable color.
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Qunused-arguments -fcolor-diagnostics")
endif()
else()
message(STATUS "Can't find ccache — consider installing ccache to improve recompilation performance")
endif()
if(NOT EXISTS ${CMAKE_SOURCE_DIR}/platform/${MBGL_PLATFORM}/config.cmake)

View File

@@ -11,14 +11,14 @@ Your journey will start with getting the source code, then installing the
dependencies, and then setting up a development environment, which varies
depending on your operating system and what platform you want to develop for.
## 1: Getting the Source
## 1: Getting the source
Clone the git repository:
git clone https://github.com/mapbox/mapbox-gl-native.git
cd mapbox-gl-native
## 2: Installing Dependencies
## 2: Installing dependencies
These dependencies are required for all operating systems and all platform
targets.
@@ -34,17 +34,21 @@ targets.
Depending on your operating system and target, you'll need additional
dependencies:
### Additional Dependencies for Linux
### Additional dependencies for Linux
- [`libcurl`](http://curl.haxx.se/libcurl/) (depends on OpenSSL)
### Additional Dependencies for macOS
### Additional dependencies for macOS
- Apple Command Line Tools (available at [Apple Developer](https://developer.apple.com/download/more/))
- [Homebrew](http://brew.sh)
- [Cask](http://caskroom.io/) (if building for Android)
- [xcpretty](https://github.com/supermarin/xcpretty) (`gem install xcpretty`)
### Optional dependencies
- [ccache](https://ccache.samba.org) (for build only; improves recompilation performance)
## 3: Setting up a development environment & building
See the relevant SDK documentation for next steps: