ryan-robeson / homebrew-gimp

Brings libgimp2.0 to macOS
4 stars 7 forks source link

GIMP is switching to Meson #3

Open ryan-robeson opened 4 years ago

ryan-robeson commented 4 years ago

GIMP is switching to Meson and the libgimp2.0 formula needs to be updated accordingly.

See: https://wiki.gimp.org/wiki/Hacking:Building#Meson_build

Relevant section:

Meson build

Numerous options are available to configure the build.

You should read the file meson_options.txt to know the options specific to this project. Meson also provides some useful options, such as :

warning_level=[1, 2, 3] : The level of compiler warnings
b_lto=true|false : Enable link-time optimizations
b_coverage=true|false : Enable coverage tools.
b_pgo=off|generate|use : Enable profile guided optimizations
b_sanitize=none|address|thread|undefined|memory|address,undefined : Use a code sanitizer
cd gimp
meson _build \
    --prefix=${GIMP_PREFIX} \
    --buildtype=release \
    -Djavascript=always \
    -Dlua=always \
    -Dpython=always

cd _build
ninja
ninja install

Useful build options

You can customize the Gimp settings directory. This prevents any interference with other GIMP installations on the same computer.

Autotools build : --with-gimpdir=GIMP/git-master Meson build : -Dgimpdir=GIMP/git-master