2017-10-11 15:33:04 -07:00
|
|
|
Examples
|
|
|
|
========
|
|
|
|
|
2017-12-13 13:59:49 -08:00
|
|
|
A group of new, clean examples that demonstrate EFL in various
|
|
|
|
languages.
|
|
|
|
|
|
|
|
EFL usage in here should be using the latest APIs where possible and use
|
|
|
|
supported languages and build systems.
|
2017-10-11 15:33:04 -07:00
|
|
|
|
2017-10-23 03:20:07 -07:00
|
|
|
For C we are using meson to build - the standard steps are:
|
|
|
|
|
2017-11-09 10:18:52 -08:00
|
|
|
* meson build/
|
2017-10-23 03:20:07 -07:00
|
|
|
* cd build
|
|
|
|
* ninja
|
|
|
|
|
2017-12-13 13:59:49 -08:00
|
|
|
If, however, you have Edi installed then the edi_build command will run
|
|
|
|
the appropriate steps automatically.
|
2017-10-11 15:33:04 -07:00
|
|
|
|
2017-12-13 14:02:10 -08:00
|
|
|
Directory naming is <type>/<language>/<name> please be careful to
|
2017-12-13 13:59:49 -08:00
|
|
|
namespace example binaries in case they are installed by the user.
|
2017-10-11 15:33:04 -07:00
|
|
|
|
2018-11-19 07:25:02 -08:00
|
|
|
Building the whole set of Examples
|
|
|
|
==================================
|
|
|
|
|
|
|
|
You can build all examples at once, all you have to do is:
|
|
|
|
|
|
|
|
./setup.py
|
|
|
|
|
|
|
|
This will create a folder called subprojects, all examples are
|
|
|
|
then sym-linked into this directory, a corresponding meson.build
|
|
|
|
file is generated, which uses every example as a subproject.
|
|
|
|
|
|
|
|
After that you can build the meson project with:
|
|
|
|
|
|
|
|
* mkdir build
|
|
|
|
* meson build/
|
|
|
|
* cd build
|
|
|
|
* ninja all
|