mirror of
https://github.com/chinmaygarde/radar.git
synced 2025-12-08 01:20:55 -08:00
Experiments in User Interfaces and Composition
| .circleci | ||
| Library | ||
| Licenses | ||
| Platforms | ||
| Samples | ||
| ThirdParty | ||
| Tools/CMake | ||
| .clang-format | ||
| .gitattributes | ||
| .gitignore | ||
| CMakeLists.txt | ||
| CPPLINT.cfg | ||
| Dockerfile | ||
| LICENSE | ||
| Radar.sublime-project | ||
| Rakefile | ||
| README.md | ||
| Vagrantfile | ||
Radar
Prerequisites
Mac
- Xcode 7.2 or newer.
- CMake
brew install cmake
Linux
- A C++ 11 compiler:
GCC 4.9or above orClang 3.6or newer. - CMake, SDL 2, OpenGLES 2.
apt-get install -y cmake libgles2-mesa-dev libsdl2-dev ninja-build.- There is also a preconfigured
Vagrantfilein source root if that is your style.vagrant up linux; vagrant ssh linux; cd /vagrant;.- Limitation: In the Vagrant environment, you wont be able to run the desktop application, only build the tools, run tests, etc..
Build Instructions
Building on Mac OSX
- Create a directory called
buildin the source root and move into it.mkdir build; cd build;
- Generate the
Xcodeproject for all targets.cmake ../ -G Xcode; cd ../
- Open
build/Radar.xcodeprojand run the scheme you want.
Building on Linux
- Create a directory and move into it.
mkdir build; cd build;
- Generate either the
MakefileorNinjaproject viaCMake- For a
Makefileproject:cmake ../ - For a
Ninjaproject:cmake ../ -G Ninja
- For a
- Build. You can also selectively build a particular target by specifying its name after the command.
make -j<jobs>ninja
Linters & Formatters
All tools are run from the source root and require rake
Formatters
- Make sure
clang-formatis installed.rake format
Linters
- Make sure
cpplintis installed.rake lint