summary refs log tree commit diff stats
path: root/examples/cross_calculator/readme.txt
diff options
context:
space:
mode:
authorGrzegorz Adam Hankiewicz <gradha@imap.cc>2012-09-06 20:20:34 +0200
committerGrzegorz Adam Hankiewicz <gradha@imap.cc>2012-09-08 22:41:17 +0200
commit116c54a8dd83c01a77d394f74bbe2372a8928cb8 (patch)
treeff99dcc92fb31fed3bc77368f0fca02298f128f4 /examples/cross_calculator/readme.txt
parent46f652b93eec44f25de25df9e9362448d857bfbe (diff)
downloadNim-116c54a8dd83c01a77d394f74bbe2372a8928cb8.tar.gz
Splits nimrod and lazarus files into separate directories.
Diffstat (limited to 'examples/cross_calculator/readme.txt')
-rw-r--r--examples/cross_calculator/readme.txt11
1 files changed, 11 insertions, 0 deletions
diff --git a/examples/cross_calculator/readme.txt b/examples/cross_calculator/readme.txt
new file mode 100644
index 000000000..e59cb7e54
--- /dev/null
+++ b/examples/cross_calculator/readme.txt
@@ -0,0 +1,11 @@
+The cross platform calculator illustrates how to use Nimrod to create a backend

+called by different native user interfaces.

+

+Since the purpose of the example is to show how the cross platform code

+interacts with Nimrod the actual backend code is just a simple addition proc.

+By keeping your program logic in Nimrod you can easily reuse it in different

+platforms.

+

+To avoid duplication of code, the backend code lies in a separate directory and

+each platform compiles it with a different custom build process, usually

+generating C code in a temporary build directory.

re>

                  
                                                                                              

      
 
                                     




                               
                                                   
# Some debug info
echo "Running on $CI_RUNNER_ID ($CI_RUNNER_DESCRIPTION) with tags $CI_RUNNER_TAGS."

# Packages
apt-get update -qq
apt-get install -y -qq build-essential git libcurl4-openssl-dev libsdl1.2-dev libgc-dev nodejs

gcc -v

export PATH=$(pwd)/bin${PATH:+:$PATH}

# Nimble deps
nim e install_nimble.nims
nim e tests/test_nimscript.nims
nimble update
nimble install zip opengl sdl1 jester@#head niminst