nitg: Extract exec_and_check from Android

Signed-off-by: Djomanix <johan.kayser@viacesi.fr>
nitg: Fixed the copyright notice on android_platform

Signed-off-by: Djomanix <johan.kayser@viacesi.fr>
nitg: Use template::write_to_file in android_platform

Signed-off-by: Djomanix <johan.kayser@viacesi.fr>
nitg: Added PNaCl support for Nit

Signed-off-by: Djomanix <johan.kayser@viacesi.fr>
nitg: Added comment for exec_and_check

Signed-off-by: Djomanix <johan.kayser@viacesi.fr>
Example : Added a pnacl example

Signed-off-by: Djomanix <johan.kayser@viacesi.fr>
Merge branch 'master' into pnacl_integration
pnacl: remove duplicated check to create project directory

Signed-off-by: Alexis Laferrière <alexis.laf@xymus.net>
pncal: clean up generated Makefile

Signed-off-by: Alexis Laferrière <alexis.laf@xymus.net>
pnacl: make conditionnal file creation a "one liner" to fix indentation

Signed-off-by: Alexis Laferrière <alexis.laf@xymus.net>
nitg/pnacl: automate option no_main

Signed-off-by: Alexis Laferrière <alexis.laf@xymus.net>
pnacl: disable clang warnings on generated code

Signed-off-by: Alexis Laferrière <alexis.laf@xymus.net>
pnacl: generate all files right in .nit_compile

Signed-off-by: Alexis Laferrière <alexis.laf@xymus.net>
pnacl: compile each compilation unit before linking

Signed-off-by: Alexis Laferrière <alexis.laf@xymus.net>
example/pnacl: remove copiler args that are no more necessary

Signed-off-by: Alexis Laferrière <alexis.laf@xymus.net>
examples/pnacl: add server option to Makefile

Signed-off-by: Alexis Laferrière <alexis.laf@xymus.net>
tests: add example converter to tests (and not pnacl)

Signed-off-by: Alexis Laferrière <alexis.laf@xymus.net>
Modified the generated Makefile for some options,
and added a kind of hack for poll.

Signed-off-by: Djomanix <johan.kayser@viacesi.fr>
Merge: nitg: Added PNaCl support for Nit

Added pnacl_platform.nit in order to generate all minimum files when compiling the nit.
Added pnacl.nit, it's the module providing the tools for PNaCl support in Nit.

Modified nitg.nit to register the pnacl_platform.
Modified abstract_compiler.nit for a specific main generation and to add an option.

Signed-off-by: Djomanix <johan.kayser@viacesi.fr>

Pull-Request: #416
Reviewed-by: Jean Privat <jean@pryen.org>
Reviewed-by: Alexis Laferrière <alexis.laf@xymus.net>
Reviewed-by: Alexandre Terrasa <alexandre@moz-code.org>