diff options
author | Emmanuele Bassi <ebassi@gnome.org> | 2017-05-16 12:08:25 +0100 |
---|---|---|
committer | Emmanuele Bassi <ebassi@gnome.org> | 2017-05-19 17:23:47 +0100 |
commit | 5d3af9bf597cf42bd39bf2e4275c7f0746a947b5 (patch) | |
tree | 7878cef8e2c6cd67232001f3ef27c0091e2ca83d /examples/meson.build | |
parent | 4819027c6e072c2e9e45228f8afd5d0767545026 (diff) | |
download | pango-5d3af9bf597cf42bd39bf2e4275c7f0746a947b5.tar.gz |
build: Add Meson build system
Meson is a meta build system that is:
- fast
- simpler to understand and use
- portable to multiple platforms through different backends
- well integrated with the GNOME platform
- well maintained
Using Meson allows us to build Pango much more quickly, and on all the
platforms we currently target, without any loss of functionality,
compared to Autotools.
Some timing comparisons with hot ccache for both build systems:
* autogen.sh: * meson
real 0m11.149s real 0m2.525s
user 0m8.153s user 0m1.609s
sys 0m2.363s sys 0m1.206s
* make -j$(($(nproc) + 2)) * ninja
real 0m9.186s real 0m3.387s
user 0m16.295s user 0m6.887s
sys 0m5.337s sys 0m1.318s
--------------------------------------------------------------
* autotools * meson + ninja
real 0m27.669s real 0m5.772s
user 0m45.622s user 0m8.465s
sys 0m10.698s sys 0m2.357s
System: Intel Core i7-7500U, SSD, 16GB of RAM
Diffstat (limited to 'examples/meson.build')
-rw-r--r-- | examples/meson.build | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/examples/meson.build b/examples/meson.build new file mode 100644 index 00000000..ebcec9b8 --- /dev/null +++ b/examples/meson.build @@ -0,0 +1,22 @@ +examples = [] + +if pango_cairo_backends.contains('png') + examples += [ + 'cairoshape', + 'cairosimple', + 'cairotwisted', + ] +endif + +examples_deps = [ libpango_dep, libpangocairo_dep, ] + +if pango_font_backends.contains('freetype') + examples_deps += libpangoft2_dep +endif + +foreach e: examples + executable(e, '@0@.c'.format(e), + dependencies: examples_deps + pango_deps, + include_directories: root_inc, + install: false) +endforeach |