Building and testing

You only need this to work on the wrapper itself. Julia users get it pre-built as libgiac_julia_jll through Giac.jl.

Requirements

The wrapper is tested against Giac 2.0.x. wrapper_version() reports meson.project_version(), so it cannot drift from the build (#2).

Building

julia -e 'using Pkg; Pkg.add(["CxxWrap", "GIAC_jll"])'
CXXWRAP_PREFIX=$(julia -e 'using CxxWrap; print(CxxWrap.prefix_path())')
GIAC_ARTIFACT=$(julia -e 'using GIAC_jll; print(GIAC_jll.artifact_dir)')
meson setup builddir \
  --cmake-prefix-path="$CXXWRAP_PREFIX" \
  -Dgiac_include_dir="$GIAC_ARTIFACT/include/giac"
meson compile -C builddir

Against a system Giac

julia -e 'using Pkg; Pkg.add("CxxWrap")'
meson setup builddir \
  --cmake-prefix-path="$(julia -e 'using CxxWrap; print(CxxWrap.prefix_path())')"
meson compile -C builddir

Override the header location with -Dgiac_include_dir=... if needed.

With just

just setup    # meson setup builddir, against a system Giac
just build    # meson compile -C builddir

For GIAC_jll, use the explicit meson setup command above.

Testing

meson test -C builddir                                 # C++ test suites (or: just test)
julia --project=tests/julia tests/julia/runtests.jl    # Julia tests of the bindings

The C++ suites (tests/cpp/) exercise the library directly. The Julia tests (tests/julia/) load builddir/src/libgiac_wrapper through CxxWrap and check the bindings; CI runs both. Most of the coverage from Julia lives in Giac.jl’s own test suite.

Releases

A release bumps version in meson.build, is tagged, and is then built for every platform by the Yggdrasil recipe, which publishes libgiac_julia_jll.