samples: Mention Gradle build in READMEs

This commit is contained in:
Ilya Matveev
2017-03-31 16:55:03 +07:00
committed by ilmat192
parent 0d24a49f8c
commit 43068b6e59
6 changed files with 24 additions and 3 deletions
+1
View File
@@ -5,6 +5,7 @@ A sample data [European Mammals Red List for 2009] (https://data.europa.eu/euodp
from EU is being used.
To build use `./build.sh` script without arguments (or specify `TARGET` variable if cross-compiling).
You also may use Gradle to build this sample: `../gradlew build`.
To run use
+1
View File
@@ -4,6 +4,7 @@
libgit2 is required for this to work (`apt-get install libgit2-dev`).
To build use `./build.sh` script without arguments (or specify `TARGET` variable if cross-compiling).
You also may use Gradle to build this sample: `../gradlew build`.
To run use
+1
View File
@@ -2,6 +2,7 @@
This example shows how to communicate with libcurl, HTTP/HTTPS/FTP/etc client library.
To build use `./build.sh` script without arguments (or specify `TARGET` variable if cross-compiling).
You also may use Gradle to build this sample: `../gradlew build`.
To run use
+1
View File
@@ -4,6 +4,7 @@
MacOS shall work as is.
To build use `./build.sh` script without arguments (or specify `TARGET` variable if cross-compiling).
You also may use Gradle to build this sample: `../gradlew build`.
To run use
+4
View File
@@ -4,6 +4,10 @@ Compile the echo server (in EAP only supported on Mac host):
./build.sh
You also may use Gradle to build the server:
../gradlew build
Run the server:
./EchoServer.kexe 3000 &
+16 -3
View File
@@ -11,13 +11,26 @@ Install SDL2 development files (see https://www.libsdl.org/download-2.0.php). Fo
copy `SDL2.framework` to `$HOME/Library/Frameworks`. For Debian-like Linux -
use `apt-get install libsdl2-dev`.
To build Tetris application for your host platform use
./build.sh
note that SDL2 must be installed on the host.
To build Tetris application for your host platform use
./build.sh
You also may use gradle to build this sample: `../gradlew buildMacbook` or `../gradlew buildLinux`.
Note that SDL2 must be installed on the host.
For cross-compilation to iOS (on Mac host) use
TARGET=iphone ./build.sh
or
../gradlew buildIphone
For cross-compilation to Raspberry Pi (on Linux host) use
TARGET=raspberrypi ./build.sh
or
../gradlew buildRaspberry
During build process compilation script creates interoperability bindings to SDL2, using SDL C headers,
and then compiles an application with the produced bindings.