Setting up and building a Chilli Source project is easy. First of all download the latest version of the engine from github. Once downloaded a new project can be created using the Project Generator java tool. This can be found at
java -jar CSProjectGenerator.jar --projectname --packagename --output --logginglevel verbose
This will have created everything required in a Chilli Source project, including the project files for all platforms. If there are any platforms you do not want to support the relevant directory can be deleted from:
The following will detail how to open and run the project on each target platform.
iOS
Requirements
- XCode 6+
- iOS 5.1+
- Java 8
- python 2.7.5+
Building
Building the project for iOS is very easy:
- Open the project file at:
/Projects/iOS/ .xcodeproj. - Ensure your project target is selected rather than Chilli Source.
- Build and run the project.
Android
Requirements
Building
The following describes how to build a Chilli Source project for Android:
- Ensure the project is in the root of your Eclipse workspace.
- Open Eclipse and go to File > Import > Existing Project Into Workspace. Select
/Projects/Android as the root directory and your project should appear in the list. Open it. - Also import the version of Google Play Services provided with the engine. Go to File > Import > Existing Project Into Workspace again, and select Select
/ChilliSource/Libraries/Core/Android/Projects/google-play-services_lib/ and open the project. - Eclipse may auto-build then fail. If this happens, manually build Google Play Services then build the project again.
- Run the project as an Android Project.
Unfortunately Chilli Source does not support Android Studio yet. Once Android Studio fully supports NDK builds, Chilli Source will move over to it.
Windows
Requirements
Building
Building in Visual Studio is also easy:
- Open the solution file at:
/Projects/Windows/ .sln - Ensure the solution has your project set as the startup project rather than Chilli Source–it should be bold. If not, open the solution properties and select your project in the “Single Startup Project” drop down menu.
- Build and run the project.