From 43068b6e596d55c5f1e601a9d38a5f4466e4d25c Mon Sep 17 00:00:00 2001 From: Ilya Matveev Date: Fri, 31 Mar 2017 16:55:03 +0700 Subject: [PATCH] samples: Mention Gradle build in READMEs --- samples/csvparser/README.md | 1 + samples/gitchurn/README.md | 1 + samples/libcurl/README.md | 1 + samples/opengl/README.md | 1 + samples/socket/README.md | 4 ++++ samples/tetris/README.md | 19 ++++++++++++++++--- 6 files changed, 24 insertions(+), 3 deletions(-) diff --git a/samples/csvparser/README.md b/samples/csvparser/README.md index 1305efecff6..7e8e28b690e 100644 --- a/samples/csvparser/README.md +++ b/samples/csvparser/README.md @@ -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 diff --git a/samples/gitchurn/README.md b/samples/gitchurn/README.md index dc6c15122e7..4bf58c7a3ae 100644 --- a/samples/gitchurn/README.md +++ b/samples/gitchurn/README.md @@ -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 diff --git a/samples/libcurl/README.md b/samples/libcurl/README.md index 73a8cf00e5e..d37b4a5a75a 100644 --- a/samples/libcurl/README.md +++ b/samples/libcurl/README.md @@ -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 diff --git a/samples/opengl/README.md b/samples/opengl/README.md index de89d21b723..c8174d8ec97 100644 --- a/samples/opengl/README.md +++ b/samples/opengl/README.md @@ -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 diff --git a/samples/socket/README.md b/samples/socket/README.md index 1fd7216cb9d..5e3e877065e 100644 --- a/samples/socket/README.md +++ b/samples/socket/README.md @@ -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 & diff --git a/samples/tetris/README.md b/samples/tetris/README.md index 7420ae14daa..efdbaf585df 100644 --- a/samples/tetris/README.md +++ b/samples/tetris/README.md @@ -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.