examples/calculator: add rule to build iOS version
[nit.git] / examples / calculator / README.md
1 Portable calculator built using _app.nit_
2
3 # Project structure
4
5 * `calculator_logic` defines `CalculatorContext` with all the business logic of a calculator.
6   It takes as input operations and numbers, and outputs the text to display.
7 * `calculator` implements the portable graphical interface using the _app.nit_ framework
8 * `calculator_test` test `CalculatorContext` as a black box.
9
10 # Compilation
11
12 * Compile and run on the desktop (GNU/Linux and OS X) with:
13
14         ~~~
15         make
16         bin/calculator
17         ~~~
18
19 * Compile for Android and install on a device or emulator with:
20
21         ~~~
22         make bin/android.apk
23         adb install -r bin/calculator.apk
24         ~~~
25
26 * Compile for iOS and run on the simulator with:
27
28         ~~~
29         make bin/android.app
30         ios-sim launch bin/calculator.app
31         ~~~