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 /tools/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 'tools/meson.build')
-rw-r--r-- | tools/meson.build | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/tools/meson.build b/tools/meson.build new file mode 100644 index 00000000..37a3be76 --- /dev/null +++ b/tools/meson.build @@ -0,0 +1,5 @@ +executable('gen-script-for-lang', 'gen-script-for-lang.c', + dependencies: pango_deps + [ libpango_dep ], + c_args: common_cflags + pango_debug_cflags + [ '-DPANGO_DISABLE_DEPRECATED' ], + include_directories: root_inc, + install: false) |