Skip to content
  • Emmanuele Bassi's avatar
    build: Add Meson build system · 5d3af9bf
    Emmanuele Bassi authored
    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
    5d3af9bf