Some portions of this repository are portable beyond iOS and can be built using CMake.
You need:
- A C++ compiler
cmake
You need Xcode, which you can get from the Mac App Store.
You can get other development tools via homebrew. Adjust as needed for other package managers.
brew install cmake
Ubuntu Trusty includes CMake 2.8.12 which should be sufficient. Newer versions are fine too.
sudo apt-get install cmake
An easy way to get development tools is via Chocolatey.
Unfortunately, the cmake.install
package is semi-broken, so use the portable
version.
choco install cmake.portable
CMake builds out-of source, so create a separate build directory for the target you want to work on.
mkdir build
cd build
cmake ..
You only need to do this once.
The first build will download, compile all dependencies of the project, and run an initial battery of tests.
To perform the initial build, you can use CMake
cmake --build .
or use the underlying build system, e.g.
make -j all
Once the initial build has completed, you can work with a specific subproject to make changes and test just that project in isolation.
For example, to work with just Firestore,
cd build/Firestore
make -j all test